SYSLOG
SYSLOG is a protocol that is widely used to inspect the behavior of a certain device. By installing a SYSLOG server daemon on a PC, you can check the status of all devices that are configured to use that server. Figure 15-1 displays a basic setup of a SYSLOG server and a router.
Figure 15-1. SYSLOG Server

Level | Command | Description |
---|---|---|
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. |
7 | debugging | Debugging messages. |
Example 15-1. Syslog Warnings
When interface Ethernet0/1 is configured, a message is sent to the SYSLOG server, as you can see in Figure 15-2.
RouterA#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#logging 150.100.1.242
RouterA(config)#logging trap warnings
RouterA(config)#end
RouterA#
Figure 15-2. SYSLOG Server
[View full size image]

Example 15-2. Syslog Informational
The output of the SYSLOG server also looks different if you repeat the same action on the interface of that router, as shown in Figure 15-3.
RouterA#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#logging 150.100.1.242
RouterA(config)#logging trap informational
RouterA(config)#end
RouterA#
Figure 15-3. SYSLOG Server Informational
[View full size image]
