The snmp-agent protocol server disable command disables the SNMP IPv4 or IPv6 listening port.
The undo snmp-agent protocol server disable command enables the SNMP IPv4 or IPv6 listening port.
By default, the SNMP IPv4 or IPv6 listening port is disabled.
snmp-agent protocol server [ ipv4 | ipv6 ] disable
undo snmp-agent protocol server [ ipv4 | ipv6 ] disable
Parameter | Description | Value |
---|---|---|
ipv4 | Disables the SNMP IPv4 listening port. | - |
ipv6 | Disables the SNMP IPv6 listening port. | - |
Usage Scenario
To enable alarm sending to the NMS without performing the Get/Set operation, SNMP port listening is not required. To disable the SNMP IPv4 or IPv6 listening port, run the snmp-agent protocol server disable command.
This command helps separately manage and control SNMP IPv4 and IPv6 listening ports.
If ipv4 or ipv6 is not selected, both SNMP IPv4 and IPv6 listening ports are disabled.
Precautions
After you disable the SNMP IPv4 or IPv6 listening port using the snmp-agent protocol server disable command, SNMP no longer processes SNMP packets. Exercise caution when you disable the SNMP IPv4 or IPv6 listening port.