< Home

display snmp-agent notification-log

Function

The display snmp-agent notification-log command displays information saved in the trap log buffer.

Format

display snmp-agent notification-log [ info | logtime starttime to endtime | size size ]

Parameters

Parameter Description Value
info

Displays parameters of trap logs recorded by the device and statistics about trap logs.

-
logtime starttime to endtime

Specifies the start time and end time of trap logs to be displayed:

  • starttime: specifies the start time of trap logs.
  • endtime: specifies the end time of trap logs.

The value is in the HH:MM:SS YYYY/MM/DD format, where HH:MM:SS indicates the hour, minute, and second and YYYY/MM/DD indicates the year, month, and day. HH ranges from 0 to 23; MM and SS range from 0 to 59. YYYY ranges from 2000 to 2099; MM ranges from 1 to 12; DD ranges from 1 to 31.

The end time must be later than the start time.

size size

Specifies the number of latest trap logs to be displayed.

The value is an integer that ranges from 1 to 5000.

Views

All views

Default Level

3: Management level

Usage Guidelines

You can use any of the following methods to view logs in the trap log buffer using the display snmp-agent notification-log command:
  • Specify the start time and end time of trap logs to be displayed.

  • Specify the number of latest trap logs to be displayed.

  • Specify no parameter to view all trap logs.

Example

# Display parameters of trap logs recorded by the device and statistics about trap logs.

<HUAWEI> display snmp-agent notification-log info
Notification log information :
Notification Admin Status: enable 
GlobalNotificationsLogged: 0
GlobalNotificationsBumped: 0
GlobalNotificationsLimit: 500
GlobalNotificationsAgeout: 24
Total number of notification log(s): 0
Table 1 Description of the display snmp-agent notification-log info command output

Item

Description

Notification log information

Parameters of trap logs recorded by the device and statistics about trap logs.

Notification Admin Status

Whether the function of recording trap logs is enabled on the device:
  • enable: The function is enabled.
  • disable: The function is disabled.

You can run the snmp-agent notification-log enable command to configure this parameter.

GlobalNotificationsLogged

Number of trap logs recorded currently.

GlobalNotificationsBumped

Number of logs recording discarded traps.

GlobalNotificationsLimit

Maximum number of trap logs that can be saved.

You can run the snmp-agent notification-log command to configure this parameter.

GlobalNotificationsAgeout

Aging time of trap logs.

You can run the snmp-agent notification-log command to configure this parameter.

Total number of notification log(s)

Total number of recorded trap logs.

# Display the latest 20 trap logs. (In this example, only one trap log is available in the system.)

<HUAWEI> display snmp-agent notification-log size 20
 Total number of notifications log(s) : 1

LogTable :
  LogIndex= 12
  LogTime= 229323
  LogDateAndTime= 2007/3/8 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
Table 2 Description of the display snmp-agent notification-log size 20 command output

Item

Description

LogTable

Log table.

LogIndex

Index of the log.

LogTime

Difference between the time when the log was recorded and the time when the system started. The unit is 10 ms.

LogDateAndTime

Absolute date and time when the log was recorded.

LogEngineID

Engine ID of the SNMP message recorded in the log.

LogEngineTAddress

IP address and port number of the SNMP message recorded in the log.

LogEngineTDomain

Transmission type of the SNMP message recorded in the log.

LogContextEngineID

Engine ID of context of the SNMP message recorded in the log.

LogContextName

Secure user name, IP address, and VPN instance name.

LogNotificationID

OID of the trap object recorded in the log.

LogVariableTable

Variable table of the log.

LogVariableIndex

Index of a variable.

LogVariableOID

OID of a variable.

LogVariableValueType

Value type of a variable.

LogVariableValue

Value of a variable.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >