Set-CacheServerPublicIP - PowerShell Cmdlet
This PowerShell cmdlet sets a public IPv4 address for a cache server within an NCache cluster. It is used when clients are unable to connect to cache servers using their private IP addresses, requiring communication over a public network.
Note
This feature is available in NCache Enterprise & Professional Edition.
Note
This cmdlet sets the public IP using the <add key="NCacheServer.PublicIP" value="" />
tag in the Service config file at %NCHOME%\bin\service\Alachisoft.NCache.Service.dll.config.
Set-CacheServerPublicIP -PublicIP [-Server] [-Credentials] [-Port]
Examples of Set-CacheServerPublicIP - PowerShell Cmdlet
- This command sets the public IPv4 address 20.200.20.11 for the cache server 192.168.1.10 (private IP).
Set-CacheServerPublicIP -Server 192.168.1.10 -PublicIP 20.200.20.11
- This command sets the public IPv4 address 20.200.20.12 for the cache server 192.168.1.20 (private IP), using credentials for authentication.
Set-CacheServerPublicIP -Server 192.168.1.20 -PublicIP 20.200.20.12 -Credentials (Get-Credential john_smith)
- This command sets the public IPv4 address 20.200.20.12 for the cache server 192.168.1.30 (private IP), while suppressing the logo banner output.
Set-CacheServerPublicIP -Server 192.168.1.30 -PublicIP 20.200.20.12 -NoLogo
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-PublicIP* |
<String> |
Specifies the public IPv4 address to assign to the cache server. Only IPv4 addresses are supported. | - |
-Server |
<String> |
Specifies the private IP address of the cache server where the public IP should be set. | - |
-Credentials |
<pscredential> |
Specifies credentials for authentication when setting the public IP on a remote cache server. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-NoLogo |
<SwitchParameter> |
Suppresses the display of the logo banner when executing the command. | False |