Verify Cache Health
PowerShell provides the following command to get a list of all the caches registered on a particular server along with details like their topology, status (whether they are running or stopped) and their process ID.
Get-Caches [-Detail] [-NoLogo] [-Port] [-Server]
Examples
- To get a list of all the caches registered on the local server, run the following command:
Get-Caches
The result this cmdlet shows is shown here:
- The following command gets a list of all caches registered on the 20.200.20.29 server node:
Get-Caches –Server 20.200.20.29
- The following PowerShell command displays a list of all caches and their respective details on the server node 20.200.20.29:
Get-Caches –Detail –Server 20.200.20.29
On executing this command, following screen pops up:
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Server |
<String> |
Specifies the server node for which the user wants to get the list of caches registered. | - |
-Port |
<Integer> |
Specifies the server port if the server channel is not using the default port. | 8250 |
-Detail |
<SwitchParameter> |
Displays a comparatively detailed information about the caches registered on the server. This information includes Cache Name, Scheme, Status, Process ID, Cluster Size, Up Time, Capacity and Count. | False |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
See Also
Test-Stress Cache
PerfMon Counters
Monitor Cache Using PerfMon
Cache Logs