Configuration procedure – H3C Technologies H3C SecBlade LB Cards User Manual
Page 84
75
Figure 31 Network diagram
Configuration procedure
# Configure the SNMP agent with the same SNMP settings as the NMS at 1.1.1.2. This example uses
SNMPv1, read community public, and write community private.
[LB] snmp-agent
[LB] snmp-agent community read public
[LB] snmp-agent community write private
[LB] snmp-agent sys-info version v1
[LB] snmp-agent trap enable
[LB] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname public
# Configure the RMON statistics group to gather traffic statistics for GigabitEthernet 0/1.
[LB] interface gigabitethernet 0/1
[LB-GigabitEthernet0/1] rmon statistics 1 owner user1
[LB-GigabitEthernet0/1] quit
# Create an RMON event entry and an RMON alarm entry so the RMON agent sends traps when the
delta sampling value of node 1.3.6.1.2.1.16.1.1.1.4.1 exceeds 100 or drops below 50.
[LB] rmon event 1 trap public owner user1
[LB] rmon alarm 1 1.3.6.1.2.1.16.1.1.1.4.1 5 delta rising-threshold 100 1
falling-threshold 50 1
# Display the RMON alarm entry configuration.
AlarmEntry 1 owned by null is Valid.
Samples type : delta
Variable formula : 1.3.6.1.2.1.16.1.1.1.4.1
Sampling interval : 5(sec)
Rising threshold : 100(linked with event 1)
Falling threshold : 50(linked with event 2)
When startup enables : risingOrFallingAlarm
Latest value : 0
# Display statistics for GigabitEthernet 0/1.
EtherStatsEntry 1 owned by user1-rmon is VALID.
Interface : GigabitEthernet0/1
etherStatsOctets : 57329 , etherStatsPkts : 455
etherStatsBroadcastPkts : 53 , etherStatsMulticastPkts : 353
etherStatsUndersizePkts : 0 , etherStatsOversizePkts : 0