3com 4500 26-PORT User Manual
388
C
HAPTER
12: U
SING
S
YSTEM
M
ANAGEMENT
C
OMMANDS
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 v1.
v2c:
Specifies SNMP version v2C.
v3:
Specifies SNMP version v3.
authentication:
Specifies that the packet is authenticated without encryption.
privacy:
Specifies that the packet is authenticated and encrypted.
community-string:
Specifies the community name. The character string ranges
from1 to 32 bytes.
Description
Use the
snmp-agent target-host
command to select and configure the host that
you want to receive SNMP notification.
Use the
undo snmp-agent target-host
command to cancel the host currently
configured to receive SNMP notification.
You must enter the
snmp-agent trap enable
command before you enter the
snmp-agent target-host
command. The
snmp-agent trap enable
command
enables the device to transmit Trap packets. To send Trap messages, at least one
snmp-agent target-host
command should be configured.
Example
To enable Trap messages to be sent to
2.2.2.2
with a community name of
comaccess
, enter the following:
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]snmp-agent trap enable