SNMP Overview 79

 

 

Set the address of host receiving

snmp-agent target-host trap address

the traps

host-addr[ port port ] [ parameters {

 

v1 v2c v3 { authentication

 

noauthentication privacy } } ]

 

securityname name

 

 

Remove the address of host

undo snmp-agent target-host trap address

receiving the traps

host-addr[ port port ] securityname

 

name

 

 

Set the message queue length of

snmp-agent trap queue-size length

traps destined to a host

 

 

 

Restore the default message queue

undo snmp-agent trap queue-size

length

 

 

 

Set the timeout time for traps

snmp-agent trap life timeout

 

 

Restore the default timeout time for

undo snmp-agent trap life

traps

 

 

 

By default, the router is disabled to send traps.

5Configure the maximum size of SNMP packets that the router can send/receive

Set the Max SNMP messages that can be received/sent by the agent according to the network loading capacity.

Perform the following configurations in system view.

Table 61 Configure the maximum size of SNMP packets that the agent can send/receive

Operation

Command

 

 

Set the maximum size of SNMP packets that the

snmp-agent packet max-size

agent can receive/send

byte-count

 

 

Restore the default maximum size of SNMP

undo snmp-agent packet max-size

packets

 

 

 

Display and Debug

SNMP

Perform the following commands in all views.

Table 62 Display and debug SNMP

Operation

Command

 

 

Display the statistics of SNMP packets

display snmp-agent statistics

 

 

Display the current equipment engine ID

display snmp-agent

 

local-engineid

 

 

Display information of system location

display snmp-agent sys-info

 

location

 

 

Display system contact information

display snmp-agent sys-info

 

contact

 

 

Display information of snmp groups on the

display snmp-agent group

router

 

 

 

Display information of all SNMP users in the

display snmp-agent usm-user

group user name list

 

 

 

Display the group names that have been

display snmp-agent community

configured

 

 

 

Display information of the MIB views that have

display snmp-agent mib-view

been configured

 

 

 

Enable SNMP debugging

debugging snmp-agent { headers

 

packets process trap all }

 

 

Page 83
Image 83
3Com 10014299 manual Perform the following commands in all views, Display and debug Snmp, Name, Byte-count