Google

Tuesday, April 1, 2008

Configuring Syslog

Router(config)#logging on

Enables logging to all supported destinations

Router(config)#logging 10.10.10.1

Logging messages will be sent to a syslog server host at address 10.10.10.1

Router(config)#logging admin

Logging messages will be sent to a syslog server host named admin

Router(config)#logging trap x

Sets the syslog server logging level to value x, where x is a number between 0 and 7 or a word defining the level. The table that follows provides more details

Router(config)#service timestamps log datetime

Syslog messages will now have a timestamp included


There are eight levels of severity in logging messages, as follows:


Emergencies

System is unusable

1

Alerts

Immediate action needed

2

Critical

Critical conditions

3

Errors

Error conditions

4

Warnings

Warning conditions

5

Notifications

Normal but significant conditions

6

Informational

Informational messages (default level)

7

Debugging

Debugging messages

Setting a level means you will get that level and everything below it. Level 6 means you will receive level 6 and 7 messages. Level 4 means you will get levels 4 through 7.



Free chat widget @ ShoutMix
Business Affiliate ProgramsSalePersonalsAdvertisingShopping