Logging is one of the things the Network Engineers are not really fond of, but you need to really understand why and how it needs to be used, for two reasons:
1. Not to miss a major event on a Device.
2. Not to get "overflown" by different events while "playing around" in a CLI.
Lets start with the Logging of a remote IP, or locally (in a FILE):
7 is DEBUGGING, so LOG EVERYTHING 0-7:
(config)#logging file flash:syslog 7
emergencies System is unusable (severity=0)
alerts Immediate action needed (severity=1)
critical Critical conditions (severity=2)
errors Error conditions (severity=3)
warnings Warning conditions (severity=4)
notifications Normal but significant conditions (severity=5)
informational Informational messages (severity=6)
debugging Debugging messages (severity=7)
Set the SEVERITY level:
(config)#logging trap 4 <- FROM WARNING-4 (INCLUDING 4) TO MORE CRITICAL (ALERT-1, CRITICAL-2, ERROR-3)
Add SEQUENCE numbers:
(config)#service sequence-numbers <- "SERVICE" command IS FOR SYSTEM GENERAL SETTINGS
(config)#no service timestamps debug
(config)#no service timestamps log
Set the LOGGING messages to be saved in Local:
(config)#logging facility local4
Specific (more GRANULAR) logging settings can be configured on the Interface Level:
(config-if)#logging event ?
bundle-status BUNDLE/UNBUNDLE messages
link-status UPDOWN and CHANGE messages
nfas-status NFAS D-channel status messages
power-inline-status Inline power messages
spanning-tree Spanning-tree Interface events
status Spanning-tree state change messages
subif-link-status Sub-interface UPDOWN and CHANGE messages
trunk-status TRUNK status messages
Most Popular Posts
First of all, I need to explain why I decided to write such a post. It's quite simple to everyone who ever tried to Deploy/Configure/Und...
[In collaboration with the guest blogger, Marc Espinosa ] Let's start with the messaging protocols, MQTT and CoAP, and consider which ...
Ever since Cisco bought Insieme and created Cisco ACI, and VMware bought Nicira and created NSX, I've been intensively deep-diving and b...
Before we get into the details about each technology, and how you should choose which one best fits in your environment, I would strongly ad...
Before we start, lets once again make sure we fully understand what Bridge Domain is. The bridge domain can be compared to a giant distribut...
Before we get deeper into the ACI (Application Centric Infrastructure) as the Cisco's official SDN solution, we need to clarify a few te...
It's 2018, and looking back at 2017 I must say that I'm quite happy, because having all in mind - it seems that Cisco is taking Clou...
The VM-Series firewall for VMware NSX is jointly developed by Palo Alto Networks and VMware. NetX APIs are used to integrate the Palo Alto N...
After a few months of heavy preps, I managed to pass the exam. I got the electronic certificate, and supposedly I'll get a Cloud Archite...
The required Physical Infrastructure To prepare for the VCIX-NV Exam, the ideal environment to practice is similar to the one we may find...