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!




