...
Our system has five syslog levels. Listed in order of most fatal to least fatal, the levels are: Fatal, Error, Warning, Info, and Trace. By default, the system is set to the Warning level. You can, of course, change the log level by using the command set system log-level.
In the example below, the system logs messages from Info, Warning, Error, and Fatal levels since the system syslog level is set to Info.
Code Block |
---|
admin@XorPlus# set system log-level info admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# // You can display the log messages on the console screen by entering the following command: admin@XorPlus# exit admin@XorPlus> syslog monitor on // If the switch's syslog level is Trace, the trace options of the modules should be turned on, as illustrated below. You can also turn on the OSPF trace options for debugging. admin@XorPlus# set protocols ospf4ospf traceoptions flagpacket all disable falsedetail admin@XorPlus# set system log-level trace admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# exit admin@XorPlus> syslog monitor on |
...
Code Block |
---|
admin@XorPlus# set system log-facility 0 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# Oct 17 15:22:42 XorPlus local0.warn : admin logined the switch Oct 17 15:22:50 XorPlus local0.warn pica_sh: Tacacs send acct body send failed: wrote -1 of 127: Connection refused Oct 17 15:22:42 XorPlus local2.warn : admin logined the switch admin@XorPlus# set system log-facility 2 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# |
...