How to Configure Cisco IOS Logging

Опубликовано: 20 Октябрь 2024
на канале: Ferds Tech Channel
3,803
17

TIMESTAMPS:
0:00 Introduction
2:59 Description of Severity Levels
4:25 Example of NTP configuration
5:15 Configuring logging
10:48 Verifying logging
14:16 Testing logging
20:36 Conclusion

How to Configure Cisco IOS Logging

By default, a switch sends the output from system messages and debug privileged EXEC commands to a logging process.
The logging process controls the distribution of logging messages to various destinations, such as the logging buffer, terminal lines, or a UNIX syslog server, depending on your configuration.
The process also sends messages to the console.

Syslog Severity Levels:
Level Level Keyword
0 Emergency
1 Alert
2 Critical
3 Error
4 Warning
5 Notice
6 Informational
7 Debug

https://www.cisco.com/c/en/us/td/docs...

System Log Message Format
seq no:timestamp: %facility-severity-MNEMONIC:description (hostname-n)
00:00:46: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

EXAMPLE CONFIGURATION:
conf t
ntp server ntp.corp
end
wr
!
conf t
service timestamps log datetime msec localtime show-timezone
!
logging buffered 50000
no logging console
!
logging trap informational (The global configuration command logging trap level is used in order to specify which logging messages are sent to remote syslog servers.)
logging userinfo
logging origin-id hostname
logging host 10.10.10.100
!
logging source-interface Loopback 0 (Optional)
end
wr

VERIFICATION:
show logging | inc Console logging
show logging | inc Monitor logging
show logging | include Log Buffer
show logging


REFERENCES:
https://www.cisco.com/c/en/us/td/docs...
https://www.cisco.com/c/en/us/td/docs...
https://www.cisco.com/c/en/us/support...
https://community.cisco.com/t5/networ...
https://www.cisco.com/c/en/us/td/docs...

#cisco #ccna #ccnp #ccie