2-19
Cisco Global Site Selector Administration Guide
OL-10410-01
Chapter 2 Managing the GSS from the CLI
Managing GSS Files
•
Display the last 10 lines of a file within any GSS file director by using the
tail
filename
command. This command displays the end of a file within any GSS
file directory.
•
Display the entire contents of a file within any GSS file directory by using the
type
filename
command.
The
filenam
e argument identifies the name of the file in the GSS file directory. To
view the files available in the current directory or subdirectory, use the
dir
,
lls
,
ls
,
or
pwd
commands. See the
“Displaying Files in a Directory”
section for details.
For example, to display the last 10 lines in the system.log, enter:
gssm1.example.com#
tail system.log
Showing file system.log
Sep 15 07:11:40 host-css2 rc: Stopping keytable succeeded
Sep 15 07:11:42 host-css2 inet: inetd shutdown succeeded
Sep 15 07:11:45 host-css2 crond: crond shutdown succeeded
Sep 15 07:11:46 host-css2 dd: 1+0 records in
Sep 15 07:11:46 host-css2 dd: 1+0 records out
Sep 15 07:11:46 host-css2 random: Saving random seed succeeded
Sep 15 07:11:48 host-css2 kernel: Kernel logging (proc) stopped.
Sep 15 07:11:48 host-css2 kernel: Kernel log daemon terminating.
Sep 15 07:11:50 host-css2 syslog: klogd shutdown succeeded
Sep 15 07:11:51 host-css2 exiting on signal 15
End of file system.log
For example, to display the contents of the audit.log file, enter:
gssm1.example.com#
type /audit.log
atcr1.cisco.com>type audit.log
# Start logging at Tue July 1 23:59:30 GMT 2003
#=== WHEN WHAT_TABLE WHAT_ID HOW
===
# Start logging at Wed July 2 00:01:25 GMT 2003
#=== WHEN WHAT_TABLE WHAT_ID HOW
===
# Start logging at Thu July 3 14:42:40 GMT 2003
#=== WHEN WHAT_TABLE WHAT_ID HOW
===
...