In this article I will give an example of viewing and configuring logs on the Huawei SmartAX MA5683T.
You can view the history of administrator connections to the device, for example via telnet, with the command:
| 1 | display log security |
History of entered user commands (CLI, SNMP commands from U2000 can also be viewed):
| 1 2 3 4 5 | display log alldisplay log clidisplay log namedisplay log name ixnfodisplay log snmp all |
History of not executed entered commands:
| 1 | display log failure |
View and change memory size for logs:
| 1 2 3 | display log memorylog modify security memorylog modify operating memory |
View a specific entry in the logs by its number:
| 1 | display log index |
View settings for sending logs to syslog server:
| 1 2 3 4 5 6 7 | display syslogdisplay syslog outputdisplay syslog prioritydisplay syslog sourcedisplay loghost listdisplay loghost list ipdisplay loghost list name |
Examples of adding, activating, deactivating and deleting a syslog server to which logs will be sent:
| 1 2 3 4 5 6 7 | loghost add 192.168.2.2 testloghost activate ip 192.168.2.2loghost activate name testloghost deactivate ip 192.168.2.2loghost deactivate name testloghost delete ip 192.168.2.2loghost delete name test |
Log level (emergency, alert, critical, error, warning, notice, informational, debug):
| 1 | syslog output all |
Activation and deactivation of sending alarm events to a syslog server:
| 1 2 | syslog enable alarm-eventsyslog disable alarm-event |
Synchronization of alarm events to the syslog server:
| 1 2 | syslog sync alarm-eventsyslog sync alarm-event time start 2019-05-05 12:00:00 end 2019- |