The snmp-agent notify-filter-profile command creates or updates a trap filter profile.
The undo snmp-agent notify-filter-profile command deletes a trap filter profile.
By default, no trap is filtered.
snmp-agent notify-filter-profile { included | excluded } profile-name oid-tree
undo snmp-agent notify-filter-profile [ included | excluded ] profile-name
Parameter | Description | Value |
---|---|---|
included | Includes the specified MIB subtree. | - |
excluded | Excludes the specified MIB subtree. | - |
profile-name | Specifies the name of a trap filter profile. | The value is a string of 1 to 32 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
oid-tree | Specifies the OID for the MIB subtree. oid-tree can be the OID (such as 1.4.5.3.1) or the name (such as system) of the subtree. | The value is a string of 1 to 255 case-sensitive
characters without spaces. NOTE:
It must be a valid MIB subtree. |
Usage Scenario
To filter trap messages sent to a target host, run the snmp-agent notify-filter-profile command to add the MIB objects to be filtered to a filter profile to limit the number of MIB objects that can send trap messages to the NMS. After the filter profile is configured using the snmp-agent notify-filter-profile command, only the trap messages generated by eligible MIB objects are sent to the NMS.
Precautions