272CHAPTER 11: SYSTEM MANAGEMENT

Enabling and Disabling Transmission of Trap Information

To enable or disable transmission of trap information, perform the following configuration in Ethernet port view.

Table 310 Enable/Disable Transmission of Trap Information

Operation

Command

 

 

Enable the current port to transmit the trap

enable snmp trap updown

information

 

 

 

Disable the current port from transmitting trap

undo enable snmp trap updown

information

 

 

 

Disabling the SNMP Agent

To disable the SNMP Agent, perform the following configuration in system view.

Table 311 Disabling SNMP Agent

Operation

Command

 

 

Disable snmp agent

undo snmp-agent

 

 

If a user disables an NMP Agent, it is enabled whatever the snmp-agentcommand is configured.

Displaying and Debugging SNMP

Execute the display command to view the SNMP configuration and to verify the effect of the configuration. Execute the debugging command in user view to debug the SNMP configuration.

Table 312 Displaying and Debugging SNMP

Operation

Command

 

 

Display the statistics information about SNMP

display snmp-agent statisitcs

packets

 

Display the engine ID of the active device

Display the group name, the security mode, the states for all types of views, and the storage mode of each group of the switch.

Display the names of all users in the group user table

display snmp-agent { local-engineid remote-engineid

}

display snmp-agent group

display snmp-agent usm-user [ { local { engineid engineid } } username groupname ]

Display the current community name

display snmp-agent community [

 

read write ]

Display the current MIB view

display snmp-agent mib-view [

 

exclude include viewname

 

mib-view ]

Display the contact character string of the

display snmp-agent sys-info

system

contact

Display the location character string of the

display snmp-agent sys-info

system

location

Display the version character string of the

display snmp-agent sys-info

system

version

Page 272
Image 272
3Com 10014298 manual Enabling and Disabling Transmission of Trap Information, Disabling the Snmp Agent