Get-ClusterHealth
This PowerShell Cmdlet displays the health status of all nodes registered on the specified cache. It provides details about the cache's status, connection information, and the number of connected clients, making it easier to monitor cache performance.
Note
This feature is also available in NCache Professional.
Get-ClusterHealth [-CacheName] [-Server] [-Continuous] [-SampleInterval] [-NoLogo]
Examples of Get-ClusterHealth
- This command displays the nodes of the cache, status, connection among them and connected client count for the cache demoCache.
Get-ClusterHealth -CacheName demoCache
- This command displays the nodes, status, connection information and connected clients on a specific server 20.200.20.11 for the cache demoCache.
Get-ClusterHealth -CacheName demoCache -Server 20.200.20.11
- This command displays the nodes of the cache, status, connection information and connected clients for the cache demoCache continuously after every 3 seconds.
Get-ClusterHealth -CacheName demoCache -Continuous
- This command displays the nodes of the cache, status, connection information and connected clients for the cache demoCache continuously after every 5 second iterval.
Get-ClusterHealth -CacheName demoCache -Continuous -SampleInterval 5
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the cache for which the cluster health needs to be displayed. | - |
-Server |
<String> |
Specifies the server name for which cluster health needs to be displayed. | Local Machine |
-Continuous |
<SwitchParameter> |
Specified to get the statistics continuously. | - |
-SampleInterval |
<Integer> |
Specifies the time between samples in seconds. Minimum value is 3 seconds. | 1 |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |