Get-CacheLogs
Note
This feature is only available in NCache Enterprise and NCache Professional.
Get-CacheLogs
cmdlet fetches a specified log file from the cache server and places it at the specified destination location on the machine. You can also specify multiple log files or all log files to be fetched and placed at the desired location.
Get-CacheLogs [-FileNames] [-Destination] [-Server] [-Port] [-UserId] [-Password] [-NoLogo]
These properties are explained in detail in the Properties section.
Examples
- The example given below copies all log files from server 20.200.20.29 to the destination directory.
Get-CacheLogs -FileNames * -Destination "C:\Logfile-path" -Server 20.200.20.29
- The following example copies the specified files from server 20.200.20.29 to the destination directory.
Get-CacheLogs -FileNames "demoClusteredCache_20-5-2020-14-9-32_192.168.10.13.txt,demoClusteredCache-replica_20-5-2020-14-9-34_192.168.10.13.txt" -Destination "C:\Logfile-path" -Server 20.200.20.29
Properties
Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Properties
Parameters | Data Types | *Description | Default Value |
---|---|---|---|
-Server* |
<String> |
Specifies the server address where the log files are residing. | - |
-FileNames* |
<String> |
Specifies the name of the log file (with filename extension) which needs to be copied at the target path provided. NOTE: Comma (,) separated log file names must be specified in case of multiple files. To select all files, use asterisk (*) |
- |
-Location* |
<String> |
Specifies the location where the log file needs to be copied at your machine. | - |
-Port |
<Integer> |
Specifies the server port if the server channel is not using the default port. | 8250 |
-UserId (Enterprise edition only) |
<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 (Enterprise edition only) |
<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 |