Specifications

8-11
Cisco Global Site Selector Administration Guide
OL-5480-01
Chapter 8 Viewing Log Files
Viewing Device Logs from the CLI
2. To display the contents of the log file, use the type command.
gssm1.example.com> type dnsserver.log
dnsserver.log
Starting dnsserver: Mon Jul 1 13:52:50 UTC 2003 [(1221)]
2003-07-10 16:23:08 relog: Booting...
Starting dnsserver: Wed Jul 10 16:23:33 UTC 2003 [(1201)]
End of file dnsserver.log
]
3. To view only the last ten lines of the log file, use the tail command.
gssm1.example.com# tail dnsserver.log
Rotating Existing Log Files from the CLI
You can instruct the GSS to save archive copies of all existing log files in the
$STATE directory and subdirectories and replace them with fresh log files.To
force the GSS to restart its log files and save archive copies of all existing log
files, use the rotate-logs command.
The syntax for this command is:
rotate-logs {delete-rotated-logs}
If you want to delete all rotated log files from the / directory and its subdirectories
on the GSS disk, include the delete-rotated-logs option. The GSS does not delete
active log files.
The GSS archives existing log files locally using the following naming
convention:
logfile_name.log.number
where:
logfile_name.log—The name of the archived log file (for example, gss.log or
kale.log).
number—An incremented number that represents the number of times the
logs have been rotated (for example, .3). The number of the most recent
rotated log file is .1. The maximum number of log files is 25 for the gss.log
file; five for all other log files.