25.
Status Monitoring, Statistics and General Commands
MN700004 Rev 01
299
Command Syntax
device-name
(config)#
log telnet-console
device-name
(config)#
no log telnet-console
log trap
The
log trap
command, in Global Configuration mode, limits log output to the specified
priority level. The
no
form of this command permits all logging information.
The priority is inversely related to the specified level (0 represents highest priority, 7
represents lowest priority). When you specify a priority level, logging output of the specified
level and all lower levels is enabled. The priority levels of the log message types are listed in
Table 25-3.
Table 25-3 Log Message Priority Levels
P r i o r i t y
l e v e l
L o g m e s s a g e t y p e s
0
Emergencies (Only emergency messages are logged)
1 Alerts
2 Critical
3 Errors
4 Warnings
5 Notifications
6 Informational
7
Debugging (All messages are logged)
Command Syntax
device-name
(config)#
log trap
[
emergencies
|
alerts
|
critical
|
errors
|
warnings
|
notifications
|
informational
|
debugging
]
device-name
(config)#
no log trap
log remote
The
log remote
command, in Global Configuration mode, enables remote logging. The
no
form of this command disables remote logging.
In addition to maintaining an internal log, the switch supports remote logging by way of the
UNIX syslog host facility. To enable remote logging, do the following:
•
Configure the syslog host to accept and log messages.
•
Apply the
log remote
command in global Configuration mode.
For more information about the syslog host facility, refer to your syslog application
documentation