Stop Cache using Web Manager and PowerShell
You can stop a clustered cache on all the nodes altogether or stop it on a specific node.
Stop Cache on all Server Nodes
Using NCache Web Manager
Launch NCache Web Manager by browsing to
http://localhost:8251
(Windows) or<server-ip>:8251
(Windows + Linux).In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache which is to be stopped.
Check the box against the cache to stop.
- Method 1: Click on the button on the toolbar to stop cache.
- Method 2: Click on "..." against the cache and select Stop.
The icon against the cache servers will change from blue to grey, and a success notification will be received.
Stop Cache on a Particular Server Node
Using NCache Web Manager
Launch NCache Web Manager by browsing to
http://localhost:8251
(Windows) or<server-ip>:8251
(Windows + Linux).In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache server to stop. Against the cache name, click on View Details.
This opens up the detailed configuration page for the cache.
Under Server Nodes tab, check the box against the server node IP to stop.
- Method 1: Click on the button on the toolbar to stop the server.
- Method 2: Click on "..." against the server IP and select Stop.
The Status of the server will change from Running to Stopped, and a success notification will be received.
Using PowerShell
Stop-Cache
cmdlet enables users to stop the cache on a specified server. It also enables the users to stop multiple caches on specified server.
Stop-Cache [-Name] [-NoLogo] [-Port] [-Server]
The parameters along with their descriptions are explained below.
PowerShell Examples
- This command stops the cache named demoClusteredCache on local server.
Stop-Cache –Name demoClusteredCache
- This command stops caches demoCache and demoClusteredCache on local server.
Stop-Cache demoCache,demoClusteredCache
- This command stops the cache named demoClusteredCache on server node 20.200.20.30 using port 8250.
Stop-Cache –Name demoClusteredCache –Server 20.200.20.30 -Port 8250
Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Name* |
<String> |
Specifies one or more name(s) of caches separated by comma which are registered on the server. Those cache(s) is/are stopped on the server. Note: Comma separated cache names are to be specified in case of multiple caches only. | - |
-Server |
<String> |
Specifies the server name where NCache Service is running and the user wants to stop the cache on that particular server node | Local Machine |
-Port |
<Integer> |
Specifies the management port on which the NCache server is listening if the server channel is not using the default port. | 8250 |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |