Got it

The commands for display and configuring logs on the OLT (1)

Latest reply: Aug 19, 2021 00:25:51 802 18 12 0 0

Hello, everyone!


Today, I will show you commands and examples for display and setting logs on the OLT. In this first article, I will give you only commands and examples for display logs.


The next commands are only commands for display logs. There is much basic information of the history of users` connections to the OLT via ssh, telnet, SNMP – about username, time, timezone, data, and command.



The command for displaying logs on the OLT for all users


With this command, we can see information about logs on the OLT for all users. This command gives us information about user name, IP address, date, time zone, time, and command.


TEST(config)#display log all

{ <cr>|start-date<D><yyyy-mm-dd>||<K> }:


Command:

display log all

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

No.      UserName                         Domain               IP-Address

53877    root                             --                   X.X.24.15

Time:    2021-08-14 02:48+02:00 DST

Cmd:     config

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

No.      UserName                         Domain               IP-Address

53876    root                             --                   X.X.24.15

Time:    2021-08-14 02:48+02:00 DST

Cmd:     enable

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

No.      UserName                         Domain               IP-Address

53875    NMS                              --                   X.X.20.61

---- More ( Press 'Q' to break ) ----



The command for displaying logs on the OLT only for one user


This command shows us information about logs on the OLT only for one user. This command gives us information about user name, IP address, date, time zone, time, and command.


TEST(config)#display log name root

{ <cr>|start-date<D><yyyy-mm-dd>||<K> }:


Command:

display log name root

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

No.      UserName                         Domain               IP-Address

53877    root                             --                   X.X.28.19

Time:    2021-08-14 02:48+02:00 DST

Cmd:     config

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

No.      UserName                         Domain               IP-Address

53474    root                             --                   X.X.28.19

---- More ( Press 'Q' to break ) ----



The command for displaying CLI logs on the OLT for all users


With this command, we can see information about CLI logs on the OLT for all users. This command gives us information about user name, IP address, date, time zone, time, and command.


TEST(config)#display log cli all

{ <cr>|start-date<D><yyyy-mm-dd>||<K> }:


Command:

display log cli all

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

No.      UserName                         Domain               IP-Address

53877    root                             --                   X.X.24.15

Time:    2021-08-14 02:48+02:00 DST

Cmd:     config

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

No.      UserName                         Domain               IP-Address

53876    root                             --                   X.X.24.15

Time:    2021-08-14 02:48+02:00 DST

Cmd:     enable

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

No.      UserName                         Domain               IP-Address

53795    SYS                              --                   --

---- More ( Press 'Q' to break ) ----



The command for displaying CLI logs on the OLT only for one user


If we want to see logs only for one user, we will use the command display log cli name XXX. This command gives us information about IP address, date, time zone, time, and command.


TEST(config)#display log cli name root

{ <cr>|start-date<D><yyyy-mm-dd>||<K> }:


Command:

display log cli name root

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

No.      UserName                         Domain               IP-Address

53877   root                             --                   X.X.24.15

Time:    2021-08-14 02:48+02:00 DST

Cmd:     config

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

No.      UserName                         Domain               IP-Address

53476    root                             --                   X.X.28.19

---- More ( Press 'Q' to break ) ----



The command for displaying all logs failure on the OLT


With the next command, we can see all logs failures. We can get information about the user, IP address, time, time zone, data, and failure command.


TEST(config)#display log failure

{ <cr>||<K> }:


Command:

display log failure

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

No.      UserName                         Domain               IP-Address

53860   NMS                              --                   X.X.20.61

Time:    2021-08-13 16:50:59+02:00 DST

Failure Cmd:  hwGponDeviceOntControlReset.4194403840.14=1

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

No.      UserName                         Domain               IP-Address

53804    NMS                              --                   X.X.20.61

---- More ( Press 'Q' to break ) ----



The command for displaying all SNMP logs on the OLT


With this command, we can see information about SNMP logs on the OLT for all users. This command gives us information about user name, IP address, date, time zone, time, and command.


TEST(config)#display log snmp all

{ <cr>|start-date<D><yyyy-mm-dd>||<K> }:


Command:

display log snmp all

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

No.      UserName                         Domain               IP-Address

53872    NMS                             --                  X.X.20.61

Time:    2021-08-14 02:48+02:00 DST

Cmd:     hwImmediateSave.0=1

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

No.      UserName                         Domain               IP-Address

53871    NMS                              --                   X.X.20.61

Time:    2021-08-14 02:48+02:00 DST

Cmd:     hwGponDeviceOntEntryStatus.4194330112.16=6

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

No.      UserName                         Domain               IP-Address

53870    NMS                              --                   X.X.20.61

---- More ( Press 'Q' to break ) ----



The command for displaying SNMP logs on the OLT only for one user


This command shows us information about SNMP logs on the OLT only for one user. This command gives us information about user name, IP address, date, time zone, time, and command.


TEST(config)#display log snmp name NMS

{ <cr>|start-date<D><yyyy-mm-dd>||<K> }:


Command:

display log snmp name NMS

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

No.      UserName                         Domain               IP-Address

53872    NMS                              --                  X.X.20.61

Time:    2021-08-14 02:48+02:00 DST

Cmd:     hwImmediateSave.0=1

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

No.      UserName                         Domain               IP-Address

53871    NMS                              --                   X.X.20.61

Time:    2021-08-14 02:48+02:00 DST

Cmd:     hwGponDeviceOntEntryStatus.4194330112.16=6

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

No.      UserName                         Domain               IP-Address

53870    NMS                              --                   X.X.20.61

---- More ( Press 'Q' to break ) ----


In the next article, I will continue to explain commands for displaying and configuring logs on the OLT. If you want to read my next article about this theme click the next link: Commands for display and configure logs on the OLT (2)



Thank you!


Sara_Obaid
Moderator Created Aug 15, 2021 10:24:41

Excellent share on the commands and examples for display/setting logs on the OLT
View more
  • x
  • convention:

Helpful. Thanks for sharing
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Irshadhussain
Irshadhussain Created Aug 15, 2021 16:17:46 (0) (0)
 
Good share
View more
  • x
  • convention:

Irshadhussain
Irshadhussain Created Aug 15, 2021 16:17:41 (0) (0)
 
Thanks for sharing
View more
  • x
  • convention:

andersoncf1
MVE Author Created Aug 15, 2021 14:37:34

Good sharing…
View more
  • x
  • convention:

thank you for sharing The commands for display and configuring logs on the OLT (1)-4087137-1
View more
  • x
  • convention:

ulrichwandja
ulrichwandja Created Aug 16, 2021 16:40:29 (1) (0)
✌  
Faridrami
Faridrami Reply ulrichwandja  Created Aug 17, 2021 16:07:39 (0) (0)
 
Nice
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.