snmp-server agent-port
Syntax
snmp-server agent-port <PORT>
no snmp-server agent-port [<PORT>]
Description
Sets the UDP port number that the SNMP master agent uses to communicate. UDP port 161 is the default port.
Theno
form of this command sets the SNMP master agent port to the default value.
Command context
config
Parameters
<PORT>
Specifies the UDP port number that the SNMP master agent will use. Range: 1 - 65535. Default: 161.
Authority
Administrators
Examples
Setting the SNMP master agent port to 2000:
switch(config)# snmp-server agent-port 2000
Resetting the SNMP master agent port to the default value:
switch(config-schedule)# no snmp-server agent-port 2000