R211x-HP Flexfabric 11900 Network Management and Monitoring Command Reference

117
Examples
# Set the maximum SNMP packet size to 1024 bytes.
<Sysname> system-view
[Sysname] snmp-agent packet max-size 1024
snmp-agent port
Use snmp-agent port to specify the UDP port for receiving SNMP packets.
Use undo snmp-agent port to restore the default.
Syntax
snmp-agent port port-num
undo snmp-agent port
Default
The device uses UDP port 161 for receiving SNMP packets.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
port-num: Specifies the UDP port for receiving SNMP packets, in the range of 1 to 65535. The default is
161.
Usage guidelines
After changing the port number for receiving SNMP packets, reconnect the device by using the port
number for SNMP get and set operations.
If you use UDP port 161, the display current-configuration command does not display the UDP port
information.
Examples
# Specify the UDP port for receiving SNMP packets as 5555.
<Sysname> system-view
[Sysname] snmp-agent port 5555
# Restore the default UDP port.
<Sysname> system-view
[Sysname] undo snmp-agent port
snmp-agent remote
Use snmp-agent remote to configure the SNMP engine ID of a remote SNMP entity.
Use undo snmp-agent remote to delete a remote SNMP engine ID.