The snmp-agent trap enable feature-name pim command enables the trap function for PIM events.
The undo snmp-agent trap enable feature-name pim command disables the trap function for PIM events.
By default, the trap function for PIM events is disabled.
snmp-agent trap enable feature-name pim [ trap-name { neighbor-loss | invalid-join-prune | rp-mapping-change | interface-election | invalid-register | new-neighbor | mrt-limit | hwpimmrtlimitclear | hwpimsgexceed | hwpimsgexceedclear | hwpimsgthresholdexceed | hwpimsgthresholdexceedclear | hwpimstargexceed | hwpimstargexceedclear | hwpimstargthresholdexceed | hwpimstargthresholdexceedclear } ]
undo snmp-agent trap enable feature-name pim [ trap-name { neighbor-loss | invalid-join-prune | rp-mapping-change | interface-election | invalid-register | new-neighbor | mrt-limit | hwpimmrtlimitclear | hwpimsgexceed | hwpimsgexceedclear | hwpimsgthresholdexceed | hwpimsgthresholdexceedclear | hwpimstargexceed | hwpimstargexceedclear | hwpimstargthresholdexceed | hwpimstargthresholdexceedclear } ]
Only the S5720-EI, S5720-HI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
Parameter | Description | Value |
---|---|---|
trap-name | Enables the trap for a specified type of PIM event. | - |
neighbor-loss | Enables the trap for the PIM neighbor loss event. | - |
invalid-join-prune | Enables the trap for the event indicating that an invalid Join/Prune message is received. | - |
rp-mapping-change | Enables the trap for the PIM RP-mapping change event. | - |
interface-election | Enables the trap for the event indicating that a PIM interface is elected as the DR. | - |
invalid-register | Enables the trap for the event indicating that an invalid Register message is received. | - |
new-neighbor | Enables the trap for the event indicating that a new PIM neighbor appears. | - |
mrt-limit | Enables the trap for the event indicating that the number of PIM entries exceeds the limit. | - |
hwpimmrtlimitclear | Enables the trap for the event indicating that the total number of PIM entries falls below the limit. | - |
hwpimsgexceed | Enables the trap for the event indicating that the number of PIM (S, G) entries created exceeds the maximum number of PIM (S, G) entries allowed. | - |
hwpimsgexceedclear | Enables the trap for the event indicating that the number of PIM (S, G) entries created falls below the maximum number of PIM (S, G) entries allowed. | - |
hwpimsgthresholdexceed | Enables the trap for the event indicating that the proportion of PIM (S, G) entries created to the maximum PIM (S, G) entries allowed exceeds the upper alarm threshold. | - |
hwpimsgthresholdexceedclear | Enables the trap for the event indicating that the proportion of PIM (S, G) entries created to the maximum PIM (S, G) entries allowed falls below the lower alarm threshold. | - |
hwpimstargexceed | Enables the trap for the event indicating that the number of PIM (*, G) entries created exceeds the maximum number of PIM (*, G) entries allowed. | - |
hwpimstargexceedclear | Enables the trap for the event indicating that the number of PIM (*, G) entries created falls below the maximum number of PIM (*, G) entries allowed. | - |
hwpimstargthresholdexceed | Enables the trap for the event indicating that the proportion of PIM (*, G) entries created to the maximum PIM (*, G) entries allowed exceeds the upper alarm threshold. | - |
hwpimstargthresholdexceedclear | Enables the trap for the event indicating that the proportion of PIM (*, G) entries created to the maximum PIM (*, G) entries allowed falls below the lower alarm threshold. | - |
To enable the trap function for a specific type of event, specify trap-name. To enable the trap function for multiple types of events, run this command multiple times.
# Enable the trap for the PIM neighbor loss event in the system view.
<HUAWEI> system-view [HUAWEI] snmp-agent trap enable feature-name pim trap-name neighbor-loss
# Disable the trap for the PIM neighbor loss event in the system view.
<HUAWEI> system-view [HUAWEI] undo snmp-agent trap enable feature-name pim trap-name neighbor-loss