Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

Configuring the Syslog Level

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.


In the example below, the system logs messages from Info, Warning, Error, and Fatal levels since the system syslog level is set to Info.

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 ospf4 traceoptions flag all disable false
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 

Configuring the Syslog Logging Facility

In accordance with the syslog standard, the logging facility can be configured as [0, 7].

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 
admin@XorPlus# set system log-facility 2
admin@XorPlus# commit 
Waiting for merging configuration.
Commit OK.
Save done.
admin@XorPlus#


Oct 17 15:22:42 XorPlus local2.warn : admin logined the switch

  • No labels