Logging – Enterasys Networks X-Pedition XSR CLI User Manual
Page 94
Other Platform Commands
3-88 Configuring the XSR Platform
Example
XSR#hostname XSR-1800
XSR-1800#
logging
This command enables/disables message logging at varying severity levels for specified
destinations. Refer to Appendix A in the XSR User’s Guide for a list of most router alarms and
events. Normally, only HIGH severity alarms are logged to red flag critical events and those
requiring operator intervention. The DEBUG alarm level is meant for maintenance personnel
only.
The XSR may discard LOW and DEBUG level alarms if the system is too occupied to deliver them.
The number of discarded messages is displayed by the following line in
show logging
command
output:
Discards: high=0 medium=0 low=4 debug=22
The XSR supports as many as three Syslog servers, with logging severity levels separately
configurable for each server. You can disable logging to individual Syslogs with the
no logging
xxx.xxx.xxx.xxx
command.
LogGen Functionality
The file option permits logging to a persistent alarm file on a CompactFlash card for HIGH or
MEDIUM alarms only. If no CompactFlash card is installed, persistent logging is not performed.
The router copies messages from the logging buffer in RAM to the cflash: file loggen once per
second. If power to the XSR is lost, the alarm history is preserved in loggen. When the XSR comes
up again it copies the history from loggen back into the RAM buffer. The entire logging history is
available including alarms before and after power‐down.
The XSR’s LogGen functionality declares a message flood if too many outstanding messages are
reported by other software modules in the router. LogGen then temporarily quits reporting on the
Console so users can keep access to the CLI. Messages are logged to the RAM buffer only, and are
gradually reported to all other enabled destinations. The message flood ends when LogGen
reduces the number of outstanding messages below the defined threshold.
Syntax
logging [console | buffered | monitor | snmp | A.B.C.D | A.B.C.D | A.B.C.D | file
| timestamp][level | local | utc][high | medium | low | debug]
console
Displays system logs to the console terminal.
buffered
Saves system logs to the router’s RAM.
monitor
Displays system logs to current CLI Telnet session.
snmp
Saves system logs to a remote SNMP trap.
A.B.C.D
Up to three Syslog server IP addresses: see table in User Guidelines.
level
Sets logging level to High, Medium, Low or Debug. Enter the level
immediately after the logging keyword to set that level for all
destinations. Enter the level after a destination to specify that level only.
file
Logs data to a file on a CompactFlash card.
high
Sets system log to High level.