| Parameter | Description | Value |
|---|---|---|
| info | Indicates information on an alarm buffer, including the number of global alarm logs in the alarm buffer, the number of discarded alarm logs, aging time of alarm logs, limitation on the number of alarm logs, total number of current alarm logs, and enabling status of alarm logging. | - |
| starttime | Specifies the start time to log alarms. | The value is in the format of HH:MM:SS YYYY/MM/DD. The value of HH ranges from 0 to 23 and the values of MM and SS range from 0 to 59. The value of YYYY ranges from 2000 to 2999, the value of MM ranges from 1 to 12, and the value of DD ranges from 1 to 31. |
| endtime | Specifies the end time to stop logging alarms. | The value is in the format of HH:MM:SS YYYY/MM/DD. The value of HH ranges from 0 to 23 and the values of MM and SS range from 0 to 59. The value of YYYY ranges from 2000 to 2999, the value of MM ranges from 1 to 12, and the value of DD ranges from 1 to 31. |
| size size | Indicates the recent alarm logs to be displayed. | The value ranges from 1 to 5000. If the specified number of alarm logs to be displayed exceeds the number of alarm logs currently saved by the system, information on all alarm logs in the alarm buffer is displayed. |
You can set the following conditions for displaying details of alarm logs in the alarm buffer:
Displaying a certain piece of alarm logs
Displaying alarm logs according to the time when alarms are logged
Displaying all alarm logs by default
# Display information about alarm logs.
<sysname> display snmp-agent notification-log info
Notification log information : Notifications Admin Status: enable GlobalNotificationsLogged: 0 GlobalNotificationsBumped: 0 GlobalNotificationsLimit: 500 GlobalNotificationsAgeout: 24 Total number of notification log: 0
Parameter |
Description |
|---|---|
Notification Admin Status |
Enabling status of alarm logging:
|
GlobalNotificationsLogged |
Number of global alarm logs |
GlobalNotificationsBumped |
Number of globally discarded alarm logs |
GlobalNotificationsLimit |
Global limitation on the number of alarm logs |
GlobalNotificationsAgeout |
Global aging time of alarm logs |
Total number of notification log |
Total number of the current alarm logs |
# Display the 20 most recent alarm logs; however, only one alarm log is saved in the system.
<sysname> display snmp-agent notification-log size 20
Total number of notifications log(s) : 1 LogTable : LogIndex= 12 LogTime= 229323 LogDateAndTime= 2014/11/30 10:28:16 LogEngineID= 000007DB7F00000100004CFB LogEngineTAddress= 192.168.39.1/162 LogEngineTDomain= snmpUDPDomain LogContextEngineID= null LogContextName= null LogNotificationID= 1.3.6.1.4.1.2011.6.10.2.1 LogVariableTable : LogVariableIndex= 1 LogVariableOID= 1.3.6.1.2.1.1.3 LogVariableValueType= TimeTicksLogVariableValue = 229323 LogVariableIndex= 2 LogVariableOID= 1.3.6.1.6.3.1.1.4.1 LogVariableValueType= OidLogVariableValue = 1 LogVariableIndex= 3 LogVariableOID= 1.3.6.1.4.1.2011.6.10.1.1.7.1.3.29 LogVariableValueType= Integer32LogVariableValue = 1 LogVariableIndex= 4 LogVariableOID= 1.3.6.1.4.1.2011.6.10.1.1.7.1.4.29 LogVariableValueType= Integer32LogVariableValue = 3 LogVariableIndex= 5 LogVariableOID= 1.3.6.1.4.1.2011.6.10.1.1.7.1.5.29 LogVariableValueType= Integer32LogVariableValue = 2
Parameter |
Description |
|---|---|
LogTable |
Log table. |
LogIndex |
Indexes of logs. |
LogTime |
Relative time between when a log is generated and when the system starts, in ten milliseconds. |
LogDateAndTime |
Local time and date when a log is generated. |
LogEngineID |
Logged engine ID of an SNMP packet. |
LogEngineTAddress |
Logged IP address and port number of an SNMP packet. |
LogEngineTDomain |
Logged transfer type of an SNMP packet. |
LogContextEngineID |
Logged engine ID of the context of an SNMP packet. |
LogContextName |
Name of the context of an SNMP packet. It is a combination of the security name + IP address + VPN instance name. |
LogNotificationID |
OID of the object that logs alarms. |
LogVariableTable |
Log variable table. |
LogVariableIndex |
Index of a log variable. |
LogVariableOID |
OID of the object of a log variable. |
LogVariableValueType |
IType of a log variable. |
LogVariableValue |
A log variable. |