beautypg.com

4 enabling logging for network management, 5 displaying snmp – H3C Technologies H3C S3100 Series Switches User Manual

Page 453

background image

Operation Manual – SNMP and RMON

H3C S3100-52P Ethernet Switch

Chapter 1 SNMP Configuration

1-8

1.4 Enabling Logging for Network Management

Table 1-5

Enable logging for network management

Operation

Command

Description

Enter system view

system-view

Enable logging for

network

management

snmp-agent

log

{

set-operation

|

get-operation

| all }

Optional;
By default, SNMP logging is

disabled.

Note:

In the environment of a single device, use the display logbuffer command to view the
log of the get and set operations requested by the NMS.

1.5 Displaying SNMP

After the above configuration, you can execute the display command in any view to
view the running status of SNMP, and to verify the configuration.

Table 1-6

Display SNMP

Operation

Command

Description

Display the SNMP information

about the current device

display snmp-agent sys-info

[ contact | location | version ]*

Display SNMP packet statistics display snmp-agent statistics

Display the engine ID of the

current device

display snmp-agent

{ local-engineid |
remote-engineid

}

Display group information

about the device

display snmp-agent group

[ group-name ]

Display SNMP user

information

display snmp-agent usm-user

[ engineid engineid | username
user-name

| group group-name ]

Display Trap list information

display snmp-agent trap-list

Display the currently

configured community name

display snmp-agent community

[ read | write ]

Display the currently

configured MIB view

display snmp-agent mib-view

[ exclude | include | viewname
view-name

]

These

commands

can be

executed in

any view.