Command:

logging trap


Mode:

Router(config)#


Syntax:

logging trap level
no logging trap

 

Syntax Description:

level Limits the logging of messages to the syslog servers to a specified level. You can enter the level number or level name. See the table below for a list of acceptable level keywords.

 

Command Description:

To limit messages logged to the syslog servers based on severity, use the logging trap global configuration command. The command limits the logging of error messages sent to syslog servers to only those messages at the specified level. To disable logging to syslog servers, use the no form of this command.

The default is informational (level 6).

The show logging EXEC command displays the addresses and levels associated with the current logging setup. The command output also includes ancillary statistics.

Use the logging and logging trap commands to send messages to a UNIX syslog server.

Level Name Level Number Description Syslog Definition
emergencies 0 System unusable LOG_EMERG
alerts 1 Immediate action needed LOG_ALERT
critical 2 Critical conditions LOG_CRIT
errors 3 Error conditions LOG_ERR
warnings 4 Warning conditions LOG_WARNING
notifications 5 Normal but significant condition LOG_NOTICE
informational 6 Informational messages only LOG_INFO
debugging 7 Debugging messages LOG_DEBUG


Example:

In the following example, the messages to a host named john is logged:

Router(config)# logging john
Router(config)# logging trap notifications


Misconceptions:

None


Related Commands:

None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)