Get Cluster Health
NCache provides Get-ClusterHealth cmdlet that displays a list of all nodes registered on the specified cache. Along with the names, this cmdlet also shows the status of the cache, connection and the number of connected clients.
Get-ClusterHealth [-CacheName] [-Server] [-Continuous] [-SampleInterval] [-NoLogo]
The properties of Get-ClusterHealth
are explained in detail in the Properties section.
Examples
- Following command displays a list of all nodes, their status, connection and the number of connected clients for the cache demoCache.
Get-ClusterHealth -CacheName demoCache
- Following command displays a list of all nodes, their status, connection and the number of connected clients on the server 20.200.20.11 for the cache demoCache.
Get-ClusterHealth -CacheName demoCache -Server 20.200.20.11
- Following command displays a list of all nodes, their status, connection and the number of connected clients for the cache demoCache after every default interval.
Get-ClusterHealth -CacheName demoCache -Continuous
- Following command displays a list of all nodes, their status, connection and the number of connected clients for the cache demoCache after every 3 seconds.
Get-ClusterHealth -CacheName demoCache -Continuous -SampleInterval 3
Properties
Note: The parameters with an asterisk (*) with 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 in order 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 |
See Also
Verify Cache Health
Test-Stress Cache
PerfMon Counters
Monitor Cache Using PerfMon
Cache Logs