Snmp configuration examples, Snmpv1/snmpv2c configuration example, Network requirements – H3C Technologies H3C SecBlade NetStream Cards User Manual
Page 302: Configuration procedure

287
To do…
Use the command…
Remarks
Display MIB view information for an SNMP
agent
display snmp-agent mib-view [ exclude |
include | viewname view-name ]
SNMP configuration examples
SNMPv1/SNMPv2c configuration example
Network requirements
•
As shown in
, the NMS connects to the SecBlade through an Ethernet.
•
The IP address of the NMS is 1.1.1.2/24.
•
The IP address of GigabitEthernet 0/1 on the SecBlade is 1.1.1.1/24.
•
The NMS monitors and manages the SecBlade using SNMPv1 or SNMPv2c. The agent reports
errors or faults to the NMS.
Figure 88 Network diagram for SNMPv1/v2c
Configuration procedure
1.
Configure the SecBlade (SNMP agent)
# Configure the IP address of GigabitEthernet 0/1 on the SecBlade as 1.1.1.1/24 and make sure that the
SecBlade and the NMS can reach each other. (The configuration procedure is omitted here)
# Configure the SNMP basic information, including the version and community name.
[SecBlade] snmp-agent sys-info version v1 v2c
[SecBlade] snmp-agent community read public
[SecBlade] snmp-agent community write private
# Configure the contact person and physical location information of the SecBlade.
[SecBlade] snmp-agent sys-info contact Mr.Wang-Tel:3306
[SecBlade] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable SNMP traps, set the NMS at IP address 1.1.1.2/24 as an SNMP trap destination, and use public
as the community name. (To ensure that the NMS can receive traps, specify the same SNMP version in
the snmp-agent target-host command as on the NMS.)
[SecBlade] snmp-agent trap enable
[SecBlade] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
public v1
2.
Configure the SNMP NMS