The display snmp-agent trap feature-name ip all command displays all trap messages of the IP module.
The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. After that, the network administrator immediately takes measures to resolve the problem.
Prerequisites
SNMP has been enabled. See snmp-agent.
Usage Scenario
After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name ip all command to check the status of all traps of IP. You can use the snmp-agent trap enable feature-name ip command to enable the trap function of IP.
# Display all trap messages of the IP module.
<HUAWEI>display snmp-agent trap feature-name ip all
------------------------------------------------------------------------------ Feature name: IP Trap number : 1 ------------------------------------------------------------------------------ Trap name Default switch status Current switch status hwIfIpAddressChange off off
Item |
Description |
---|---|
Feature name |
Name of the module to which a trap message belongs. |
Trap number |
Number of trap messages. |
Trap name |
Name of a trap message of the IP module:
|
Default switch status |
Status of the default trap switch:
|
Current switch status |
Status of the current trap switch:
|