22-21
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 22 Administering the Switch
Logging System Information to a TFTP or rcp Server
This example shows how to enable system information logging and verify that it is enabled:
Console> (enable)
set system info-log enable
Successfully enabled system information logging.
Console> (enable)
show system info-log
System Logging Host File Interval
-------------- --------------- ----------------------------------- --------
Enabled - tftp:sysinfo 1440
Index System Command
----- ----------------------------------------------------------
Console> (enable)
Specifying show Commands for System Information Logging
You can specify up to 15
show
commands whose output is periodically logged in a file on a specified
server. You must use a delimiting character on either side of the
show
command. You can enter only one
show
command at a time.
You can specify the order in which the
show
command is executed by entering the
position
argument;
the valid values are from 1–15. The
position
argument is the number of the
show
command in the system
information logging index.
To specify the
show
commands whose output is logged in a file, perform this task in privileged mode:
This example shows how to specify a
show
command and verify that it is included in the system
information logging:
Console> (enable)
set system info-log command $show version$
System command was successfully added to the list.
Console> (enable)
set system info-log command $show module$
System command was successfully added to the list.
Console> (enable)
set system info-log command $show environment$
System command was successfully added to the list.
Console> (enable)
set system info-log command $show config$
System command was successfully added to the list.
Console> (enable)
show system info-log
System Logging Host File Interval
-------------- --------------- ----------------------------------- --------
Enabled - tftp:sysinfo 1440
Index System Command
----- ----------------------------------------------------------
1 show version
2 show module
3 show environment
4 show config
Console> (enable)
Task
Command
Step 1
Specify the
show
commands whose output is
logged.
set system info-log command
{
command_string
}
[
position
]
Step 2
Verify that system information logging is enabled.
show system info-log