Specifications

11-32
Cisco SN 5428-2 Storage Router Software Configuration Guide
78-15471-01
Chapter 11 Maintaining and Managing the SN 5428-2 Storage Router
Using the SN 5428-2 Logging Facilities
Example 11-12 Example Log Route Entries List
Index Level Priority Facility Route
1 notice 5 SNMP all
2 info 6 all console logfile
Syslog host is enabled, ipaddress is 10.1.70.6
The logging table can be saved and retained across a storage router restart. The order of the rules in the
logging table is preserved when entries are deleted.
Enabling and Disabling Logging
Logging is enabled by default. By default, the SN 5428-2 Storage Router includes the following routing
rules in the logging table:
All messages at notification level notice or lower are logged to all valid destinations.
All messages at notification level info are logged to the storage router log file.
All debug messages are discarded.
Use the no logging on command to quickly disable logging for all destinations without modifying the
logging table. No logging will take place until logging is re-enabled by the logging on command.
If you clear the logging table without returning to the factory defaults, all rules are removed from the
logging table. This causes all messages to be discarded because there are no matching rules in the
logging table. To resume logging, you can add new routing rules, restore a previously saved logging
table, or clear the logging table back to the factory defaults.
Managing the Log File
You can view the entire storage router log file or selected portions of the log file using the show logging
command. You can also view the log file using the web-based GUI. If you want to analyze or search the
log file in more detail, you can use FTP to retrieve a copy of the log file. See Using FTP with the
SN 5428-2 Storage Router for more information about using FTP to transfer files.
Log files are created in the SN 5428-2 log directory (/ata4/log). They can occupy up to 4 MB of memory.
Once this limit has been reached, the oldest file is removed and a new one is created. The
show logging size command can be used to display the size of the existing log files. The show system
command can be used to display the amount of space allocated to log files, and the amount of log file
space currently available.
The name of the log file is messages, followed by a number (for example, messages3 or messages12).
The first log file is named messages0, the next log file is named messages1, etc.
Depending on the needs of your enterprise, you can archive log files to a remote server, or you can clear
log files on a periodic basis. You can use FTP to transfer files from the storage router to a remote server,
or you can use the web-based GUI to display the contents of the log file and use cut-and-paste techniques
to save the information to a local file. You can also issue the show logging all command and redirect the
output of your console using the logging facilities for your specific console interface.