Snmp configuration examples, Snmpv1/snmpv2c configuration example, Network requirements – H3C Technologies H3C SecPath F1000-E User Manual
Page 152: Configuration procedure
141
Task Command
Remarks
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 SNMPv3 user information.
display snmp-agent usm-user [ engineid
engineid | username user-name | group
group-name ] * [ | { begin | exclude |
include } regular-expression ]
Available in any view
Display SNMPv1 or SNMPv2c
community information.
display snmp-agent community [ read |
write ] [ | { begin | exclude | include }
regular-expression ]
Available in any view
Display MIB view information.
display snmp-agent mib-view [ exclude |
include | viewname view-name ] [ | { begin
| exclude | include } regular-expression ]
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 SecPath
(1.1.1.1/24), and the SecPath automatically sends traps to report events to the NMS.
Figure 63 Network diagram
Configuration procedure
1.
Configure the SecPath:
# Configure the IP address of the SecPath as 1.1.1.1/24 and make sure the SecPath 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.
[SecPath] snmp-agent sys-info version v1 v2c
[SecPath] snmp-agent community read public
[SecPath] snmp-agent community write private
# Configure contact and physical location information for the SecPath.
[SecPath] snmp-agent sys-info contact Mr.Wang-Tel:3306
SecPath
1.1.1.1/24
NMS
1.1.1.2/24
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS