SNMP Configuration Commands 485
Description
Use the snmp-agent sys-info command to set system information such as
geographical location of the device, contact information for system maintenance
and version information of running SNMP. Use the
undo snmp-agent sys-info
location
command to restore the default value.
Example
Set system location as Building 3/Room 214.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]snmp-agent sys-info location Building 3/Room 214
snmp-agent target-host Syntax
snmp-agent target-host trap address udp-domain
host-addr
[ udp-port
udp-port-number
] params securityname
community-string
[ v1 | v2c |
v3 [ authentication | privacy ] ]
undo snmp-agent target-host
host-addr
securityname
community-string
View
System view
Parameter
trap: Specifies the host to receive traps or notifications
address: Specifies the transport address to be used in the generation of SNMP
messages.
udp-domain: Specifies the transport domain over UDP for the target address.
host-addr
: Enter the IP address of the destination host.
udp-port
udp-port-number:
Enter the UDP port number of the host to receive
the SNMP notification.
params: Specifies the SNMP target information to be used in the generation of
SNMP messages.
community-string:
Enter the community name, up to 32 characters in length.
v1: Specifies SNMP version 1.
v2c: Specifies SNMP version 2C.
v3: Specifies SNMP version 3.
authentication: Specifies that the packet is authenticated without encryption.
privacy: Specifies that the packet is authenticated and encrypted.
Description
Use the snmp-agent target-host command to select and configure the host that
you want to receive SNMP notification.