204
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.
To display UDP port information, use the
display current-configuration
command.
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 set the SNMP engine ID for a remote SNMP entity.
Use
undo
snmp-agent
remote
to delete a remote SNMP engine ID.
Syntax
snmp-agent
remote
{
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
]
engineid
engineid
undo
snmp-agent
remote
ip-address
Default
No remote SNMP engine IDs exist.
Views
System view
Predefined user roles
network-admin
Parameters
ipv4-address
: Specifies the IP address of a remote SNMP entity.
ipv6
ipv6-address
: Specifies the IPv6 address of a remote SNMP entity.
vpn-instance
vpn-instance-name
: Specifies the VPN for a remote SNMP entity. The
vpn-instance-name
argument specifies the name of the MPLS L3VPN, a case-sensitive string of 1 to
31 characters. If this option is not specified, the remote SNMP entity is in the public network.
engineid
: Specifies the SNMP engine ID of the remote SNMP entity. This argument is a hexadecimal
string. Its length is an even number in the range of 10 to 64. All-zero and all-F strings are invalid.