Cisco Cisco ASR 5000
Global Configuration Mode Commands (L-S)
snmp server ▀
Command Line Interface Reference, StarOS Release 18 ▄
5551
snmp server
Enables the SNMP server as well the configuration of the SNMP server port.
Product
All
Privilege
Security Administrator, Administrator
Mode
Exec > Global Configuration
configure
Entering the above command sequence results in the following prompt:
[local]host_name(config)#
Syntax
snmp server [ port number ]
no snmp server
no
Restores the default SNMP port assignment of 161.
port
number
Specifies the port number to use for SNMP communications.
number
must be an integer from 1 to 65535.
Default: 161
Usage
Set the SNMP port for communications when SNMP is enabled.
Important:
This will result in restarting the SNMP agent when the
no
keyword is omitted. SNMP queries as well
as notifications/traps will be blocked until the agent has restarted.
Example
The following command sets the SNMP server to communicate on port 100:
snmp server port 100