Set Bridge Cache Mode
This enables the user to change the mode Active/Passive of bridge cache.
Set-BridgeCacheMode [-Name] -CacheFullName -Mode {Active | Passive} [-Server] [-Port] [-Credentials] [-NoLogo]
Examples
- This command changes the mode of clustered cache demoCache.WestCoast to Active mode.
Set-BridgeCacheMode -Name demoBridge -Server 20.200.20.11 -CacheFullName demoCache.WestCoast -Mode Active
- This command changes the mode of clustered cache demoCache.WestCoast to Passive mode.
Set-BridgeCacheMode -Name demoBridge -Server 20.200.20.11 -CacheFullName demoCache.WestCoast -Mode Passive
Properties
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 the name of the bridge registered on the server. |
- |
-CacheFullName* |
<String> |
Specifies the name of the clustered cache with environment name which is to be added to the bridge. |
- |
-Mode* |
<BridgeCacheStateParam> |
Specifies the mode of the bridge. Can be either Active or Passive . |
Active |
-Server |
<String> |
Specifies the server name where the NCache bridge Service is running and a bridge with the specified bridge-name is registered. |
- |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. |
False |
-Port |
<Integer> |
Specifies the port on which the NCache bridge Service is listening. |
8260 |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user who has appropriate permissions at the node. |
- |
set-bridgecachemode [-name] -cachefullname -mode {Active | Passive} [-server] [-port] [-userid] [-password] [-nologo]
Examples
- This command changes the mode of clustered cache demoCache.WestCoast to Active mode.
set-bridgecachemode -name demoBridge -server 20.200.20.11 -cachefullname demoCache.WestCoast -mode Active
- This command changes the mode of clustered cache demoCache.WestCoast to Passive mode.
set-bridgecachemode -name demoBridge -server 20.200.20.11 -cachefullname demoCache.WestCoast -mode Passive
Properties
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 the name of the bridge registered on the server. |
- |
-cachefullname* |
<String> |
Specifies the name of the clustered cache with environment name which is to be added to the bridge. |
- |
-mode* |
<BridgeCacheStateParam> |
Specifies the mode of the bridge. Can be either Active or Passive . |
Active |
-server |
<String> |
Specifies the server name where the NCache bridge Service is running and a bridge with the specified bridge-name is registered. |
- |
-nologo |
<SwitchParameter> |
Suppresses display of the logo banner. |
False |
-port |
<Integer> |
Specifies the port on which the NCache bridge Service is listening. |
8260 |
-userid |
<string> |
Specifies the user id used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This user id must be the active directory user id. |
- |
-password |
<string> |
Specifies the password of the user that is used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This password must be the same as the active directory user password. |
- |