Configuring Syslog


Router(config)#logging on

Enables logging to all supported destinations

Router(config)#logging 192.168.10.53

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

Router(config)#logging sysadmin

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

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:

0

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.




CCNA Self-Study(c) CCNA Portable Command Guide
CCNA Portable Command Guide
ISBN: 1587201585
EAN: 2147483647
Year: 2006
Pages: 261
Authors: Scott Empson

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net