Snmp configuration examples, Snmpv1/snmpv2c configuration example, Network requirements – H3C Technologies H3C MSR 50 User Manual
Page 22: Configuration procedure

Task
Command
Remarks
display snmp-agent group [ group-name ] [ |
{ begin | exclude | include }
regular-expression ]
Display SNMP group information.
Available in any view.
Display basic information about
the trap queue.
display snmp-agent trap queue [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Display the modules that can send
traps and their trap status (enable
or disable).
display snmp-agent trap-list [ | { begin |
exclude | include } regular-expression ]
Available in any view.
display snmp-agent usm-user [ engineid
engineid | username user-name | group
group-name ] * [ | { begin | exclude | include }
regular-expression ]
Available in any view.
Display SNMPv3 user information.
display snmp-agent community [ read | write ]
[ | { begin | exclude | include }
regular-expression ]
Display SNMPv1 or SNMPv2c
community information.
Available in any view.
display snmp-agent mib-view [ exclude |
include | viewname view-name ] [ | { begin |
exclude | include } regular-expression ]
Display MIB view information.
Available in any view.
SNMP configuration examples
This section gives examples of configuring SNMPv1 or SNMPv2c, SNMPv3, and SNMP logging.
SNMPv1/SNMPv2c configuration example
Network requirements
As shown in
, the NMS (1.1.1.2/24) uses SNMPv1 or SNMPv2c to manage the SNMP agent
(1.1.1.1/24), and the agent automatically sends traps to report events to the NMS.
Figure 3 Network diagram
Configuration procedure
1.
Configure the SNMP agent:
# Configure the IP address of the agent, and make sure the agent and the NMS can reach each
other. (Details not shown.)
# Specify SNMPv1 and SNMPv2c, and create a read-only community public and a read and write
community private.
[Agent] snmp-agent sys-info version v1 v2c
[Agent] snmp-agent community read public
9