X

中兴OLT系统Log设置调试

时间:2021-01-27

Prerequisites:

  • Make sure that the network device works normally.

  • Log in to the ZXA10 C220 through HyperTerminal or Telnet.

Context:

To configure the system log, perform the following steps:

Step-1. Use the configure terminal command to enter global configuration mode.
Step-2. Use the syslog-server host command to configure system log server.
Step-3. Use the logging on command to enable system log function.
Step-4. Use the logging buffer command to configure log buffer size.
Step-5. Use the logging console command to configure information level sent to console.
Step-6. Use the logging level command to configure information level of log file.
Step-7. Use the logging mode command to configure clear mode of log buffer.
Step-8. Use the logging snmplog-save enable command to enable the function of saving SNMP log to buffer.
Step-9. Use the show logging configure command to query log configuration.

- See more at: http://gponsolution.com/zte-olt-system-log-configure.html#sthash.TqWaFDRq.dpuf

 

中兴OLT系统 Log 设置示例:

Configure log server:

  • Log server IP address: 168.1.1.1

  • Log type: alarm log, command log, and SNMP log

  • Log function: On

  • Console log level: Notification

ZXAN#configure terminal
Enter configuration commands, one per line. End with CTRL/Z.
ZXAN(config)#syslog-server host 168.1.1.1 fport 514 lport 514 alarmlog
level notifications cmdlog snmplog get-pdu set-pdu
ZXAN(config)#logging console NOTIFICATIONS
ZXAN(config)#logging on

ZXAN#show logging configure
logging on
logging buffer 200
logging mode fullcycle
logging console notifications
logging level notifications
logging snmplog-save disable
syslog facility local0
syslog severity 6
syslog-server host 168.1.1.1 fport 514 lport 514 alarmlog level notifications cmdlog snmplog get-pdu set-pdu

- See more at: http://gponsolution.com/zte-olt-system-log-configure.html#sthash.TqWaFDRq.dpuf

oun.png