3Com 4500 50-PORT, 4500 PWR 50-PORT, 4500 PWR 26-PORT, 4500 26-PORT SW4500snmp-agent trap enable

Models: 4500 26-PORT 4500 PWR 26-PORT 4500 PWR 50-PORT 4500 50-PORT

1 466
Download 466 pages 21.69 Kb
Page 394
Image 394

388CHAPTER 12: USING SYSTEM MANAGEMENT COMMANDS

undo snmp-agent target-host host-addrsecurityname 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-portudp-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-agenttarget-hostcommand to select and configure the host that you want to receive SNMP notification.

Use the undo snmp-agenttarget-hostcommand to cancel the host currently configured to receive SNMP notification.

You must enter the snmp-agent trap enable command before you enter the snmp-agenttarget-hostcommand. The snmp-agent trap enable command enables the device to transmit Trap packets. To send Trap messages, at least one snmp-agenttarget-hostcommand 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

Page 394
Image 394
3Com 4500 50-PORT, 4500 PWR 50-PORT, 4500 PWR 26-PORT, 4500 26-PORT manual SW4500snmp-agent trap enable