You can configure the trap function for the device to send traps of specific features to the NMS, which will help you to locate important problems. In addition, you can set trap sending parameters to improve trap sending reliability.
system-view
snmp-agent trap enable
snmp-agent trap enable feature-name feature-name trap-name trap-name
This means that a trap of a specific feature can be sent to the NMS.
To disable the trap functions of all modules, run the snmp-agent trap disable command.
To restore the trap functions of all modules to the default status, run the undo snmp-agent trap enable or undo snmp-agent trap disable command.
To disable the trap function of a specific module, run the undo snmp-agent trap enable feature-name command.
To delete trap configurations related to one or all functions in a batch, run the clear configuration snmp-agent trap enable feature-name feature-name command.
snmp-agent notify-filter-profile { excluded | included } profile-name oid-tree
At present, the snmp-agent notify-filter-profile command supports either the variable OID of a character string or an object name. If the entered parameter is a character string, the asterisk (*) can be used as the mask. The asterisk (*) can be placed only in the middle, not at the beginning or end of the string.
snmp-agent trap source interface-type interface-number
After the source interface is specified, its IP address becomes the source IP address of trap messages. Configuring the IP address of the local loopback interface as the source interface is recommended, which can ensure device security.
The source interface specified on the FW for traps must be consistent with that specified on the NMS; otherwise, the NMS will not accept the traps sent from the FW.
snmp-agent trap source-port port-number
The source port is fixed, the packets can be filtered by FW to improve the security of the network.
snmp-agent trap queue-size size
The queue length depends on the number of generated traps. If the FW frequently generates traps, a longer queue length can be set to prevent traps from being lost.
snmp-agent trap life seconds
The lifetime of every trap depends on the number of generated traps. If the FW frequently generates traps, a longer lifetime can be set for every trap to prevent traps from being lost.
snmp-agent trap start-trap resend disable
The function of resending device cold-start or warm-start traps is disabled.
By default, the function of resending device cold-start or warm-start traps is enabled.