Set-BridgeCacheMode
Set-BridgeCacheMode
cmdlet enables the user to change the mode Active/Passive of bridge cache.
Set-BridgeCacheMode [-Name] [-CacheFullName] [-Server] [-Mode {Active | Passive}] [-Port] [-UserId] [-Password] [-NoLogo]
These properties are explained in detail in the Properties section.
Examples
- This command changes the mode of clustered cache demoCache.WestCoast to Active mode.
Set-BridgeCacheMode 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 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 |
---|---|---|---|
-CacheFullName* |
<String> |
Specifies the name of the clustered cache with environment name which is to be added to the bridge. | - |
-Name* |
<String> |
Specifies the name of the bridge registered on the server. | - |
-Server |
<String> |
Specifies the server name where the NCache bridge service is running and a bridge with the specified bridge-name is registered. | - |
-CacheServer |
<String> |
Specifies a server name where the NCache service is running and a cache with the specified cache-name is registered. | - |
-Mode* |
<BridgeCacheStateParam> |
Specifies the mode of the bridge. Can be either Active or Passive . |
Active |
-Port |
<Integer> |
Specifies the port on which the NCache bridge service is listening. | 8260 |
-UserId |
<String> |
Specifies the User Id used to authorize a user if security is enabled on cache server. This User Id must be the same as the active directory user credentials. | - |
-Password |
<String> |
Specifies the password against the user Id; to authorize a user if security is enabled on cache server. This password must be the same as active directory password. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |