Invoke-ServerLogger
Note
This feature is only available in NCache Enterprise edition.
Invoke-ServerLogger
cmdlet enables the user to enable detailed logging for
both socket-server and all the clients. The logs are then stored on the installed directory of NCache in the folder named ‘log-files’.
Invoke-ServerLogger [-Disable] [-Enable] [-NoLogo] [-Password] [-Port] [-Server] [-UserId]
These properties are explained in detail in the Properties section.
Examples
- This command enables socket server logs using default port 8250.
Invoke-ServerLogger -Enable
- This command disables socket server logs using default port 8250.
Invoke-ServerLogger -Disable
Properties
Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Enable |
<SwitchParameter> |
Enables error and detailed logging on the server side. | False |
-Disable |
<SwitchParameter> |
Enables error and detailed logging on the server side. | False |
-Server |
<String> |
Specifies the NCache server name where the NCache service is running. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-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 |