Command Reference Guide
3Com Router 5000 Family and Router 6000 Family snmp-agent target-host ● 351
Command Reference
snmp-agent target-host
Purpose Use the snmp-agent target-host command to set the destination that receives
SNMP notifications.
Use the undo snmp-agent target-host command to cancel the current
setting.
Use the snmp-agent target-host command in conjunction with the
snmp-agent trap enable command.
Syntax snmp-agent target-host trap address udp-domain X.X.X.X [ udp-port
port-number ] [ vpn-instance vpn-name ] params securityname
security-string [ v1 | v2c | v3 [ authentication | privacy ] ]
undo snmp-agent target-host X.X.X.X securityname security-string
Parameters trap
Specifies a host as the trap host.
address
Specifies the target host address in the SNMP
messages to be transmitted.
udp-domain
Specifies that the transport domain of the target host
is UDP based.
X.X.X.X
IP address of the host.
udp-port
Specifies the UDP port.
port-number
Specifies the port that receives traps.
vpn-instance vpn-name
specifies VPN instance name.
params
Specifies the log host that generates SNMP messages.
securityname
Specifies an SNMPv1 or SNMPv2c community name or
an SNMPv3 user name.
security-string
SNMPv1 or SNMPv2c community name, or SNMPv3
user name, in the range 1 to 32 bytes.
v1
SNMPv1.
v2c
SNMPv2c.
v3
SNMPv3.
authentication
Authenticates packets without encryption.
privacy
Both authenticates and encrypts packets.
Example Allow the router to send SNMP traps to 10.1.1.1, using the community name of
comaccess.
[3Com] snmp-agent trap enable standard
[3Com] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname comaccess