268CHAPTER 11: SYSTEM MANAGEMENT

only query the device information, whereas the community with read-write authority can also configure the device.

Use the following commands to set the community name.

Perform the following configuration in system view.

Table 299 Setting the Community Name

Operation

Command

 

 

Set the community name and the access

snmp-agent community { read

authority

write } community-name [ [

 

mib-viewview-name ] [ acl

 

acl-list ] ]

Remove the community name and the access

undo snmp-agent community

authority

community-name

 

 

Enabling and Disabling the SNMP Agent to Send a Trap

The managed device transmits a trap without a request to the NMS to report critical and urgent events, such as a restart.

You can use the following commands to enable or disable the managed device to transmit a trap message.

Perform the following configuration in system view.

Table 300 Enabling and Disabling an SNMP Agent to Send a Trap

Operation

Command

 

 

Enable to send a trap

snmp-agent trap enable [ standard

 

[ authentication ] [ coldstart ]

 

[ linkdown ] [ linkup ] [

 

warmstart ] ]

Disable to send a trap

undo snmp-agent trap enable [

 

standard [ authentication ] [

 

linkdown ] [ linkup ] [ coldstart

 

] [ warmstart ] ]

 

 

Setting the Destination Address of a Trap

You can use the following commands to set or delete the destination address of the trap.

Perform the following configuration in system view.

Table 301 Setting the Destination Address of a Trap

Operation

Command

 

 

Set the destination address of trap

snmp-agent target-host trap

 

address udp-domain host-addr [

 

udp-portudp-port-number ] params

 

securityname community-string [

 

v1 v2c v3 { authentication

 

privacy } ]

Delete the destination address of trap

undo snmp-agent target-host

 

host-addrsecurityname

 

community-string

 

 

Page 268
Image 268
3Com 10014298 manual Enabling and Disabling the Snmp Agent to Send a Trap, Setting the Destination Address of a Trap