Got it

The commands for displaying and configuring logs on the OLT (2)

Latest reply: Aug 19, 2021 00:26:21 664 22 13 0 0

Hello, everyone!


Today, I will show you commands and examples for display and setting logs on the OLT. This is the second and last article about this theme.


In this article, I will show you commands for adding, activating, deactivating, and deleting a syslog server. Then, commands for log level, activation, and deactivation of sending events to a syslog server. And the end, there are many commands for display setting logs to syslog server.  



The commands for adding and activating the log server


TEST(config)#loghost add X.X.0.2 server

{<cr>|local0<K>|local1<K>|local2<K>|local3<K>|local4<K>|local5<K>|local6<K>|loc                         al7<K>|severity<K>|transport<K>|vpn-instance<K> }:


Command:

loghost add X.X.0.2 server

Warning: There is security risk as this operation enables a non secure syslog protocol


In this command, we have to put the IP address of the syslog server – X.X.0.2 and its name – server.


After adding the log server, we have to activate it with one of the next commands:


TEST(config)#loghost activate ip X.X.0.2


TEST(config)#loghost activate name server



The commands for deactivating and deleting a log server


These two commands, we can use when we want to deactivate the log server:


TEST(config)#loghost deactivate name server


TEST(config)#loghost deactivate ip X.X.0.2


These two commands, we can use when we want to delete log server configuration:


TEST(config)#loghost delete name server


TEST(config)#loghost delete ip X.X.0.2



The command for display syslog output configuration


When we want to see settings for sending logs to syslog server.


TEST(config)#display syslog output configuration

{ <cr>||<K> }:


Command:

display syslog output configuration

------------------------------------------------------------------------------

LEVEL                  OUTPUT

------------------------------------------------------------------------------

EMERGENCY               YES

ALERT                   YES

CRITICAL                YES

ERROR                   YES

WARNING                 YES

NOTICE                  YES

INFORMATIONAL           YES

DEBUG                   YES

------------------------------------------------------------------------------


The output indicates the output level of the syslog. There are seven levels: EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFORMATIONAL, and DEBUG. The first three levels are very important levels for the monitoring device.



The command for display syslog priority:


TEST(config)#display syslog priority

{ <cr>||<K> }:


Command:

display syslog priority

----------------------------------------------------------------------------

Syslog Facility     : default

Syslog Severity     : default

----------------------------------------------------------------------------

Log Facility        : default

Log Severity        : default

Alarm-event Facility: default

Alarm-event Severity: default

Igmp Facility       : default

Igmp Severity       : default

Voip Facility       : default

Voip Severity       : default

----------------------------------------------------------------------------


Priority indicates the priority of the syslog information.



The command for displaying syslog version:


TEST(config)#display syslog version

{ <cr>||<K> }:


Command:

display syslog version

Syslog protocol version: rfc3164


Version indicates the syslog protocol version.



The command for displaying syslog source:


TEST(config)#display syslog source

{ <cr>||<K> }:


Command:

display syslog source

syslog source interface: auto



If we want to see log server configuration, we can use the next command:


TEST(config)#display loghost list ip X.X.0.2

{ <cr>||<K> }:


Command:

display loghost list ip X.X.0.2

Log server configuration:

IP address       : X.X.0.2

Host name        : server

Terminal state   : Normal

Facility         : local0 local1 local2 local3 local4 local5 local6 local7

Transport Mode   : UDP

SSL Policy       : --

VPN Instance     : --

Severity         : emergency alert critical error warning notice informational debug


Or we can use this command:


TEST(config)#display loghost list name server

{ <cr>||<K> }:


Command:

display loghost list name server

Log server configuration:

IP address       : X.X.0.2

Host name        : server

Terminal state   : Normal

Facility         : local0 local1 local2 local3 local4 local5 local6 local7

Transport Mode   : UDP

SSL Policy       : --

VPN Instance     : --

Severity         : emergency alert critical error warning notice informational debug


With these commands, we can see information about syslog server – IP address, hostname, terminal state, etc.


The commands for activating and deactivating of sending alarm events to a log server


TEST(config)#syslog enable alarm-event


TEST(config)#syslog disable alarm-event



The command for logging level


TEST(config)#syslog output all/emergency/alert/critical/error/waring/notice/informational/debug


The output indicates the output level of the syslog. The main levels are EMERGENCY, ALERT and CRITICAL.


For more information, read my previous article about this theme: Command for display and configuration logs on the OLT (1)



Thank you!


Good friend
View more
  • x
  • convention:

Good
View more
  • x
  • convention:

Good job
View more
  • x
  • convention:

Oh nice, very usefull! thank you for sharing
View more
  • x
  • convention:

Helpful for us
View more
  • x
  • convention:

Very useful. Thank you
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.