beautypg.com

Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 146

background image

8-12

Figure 8-4 Network diagram for RMON

Configuration procedure

# Configure the SNMP parameters. (Note that, parameter values configured on the agent must

be the same with the following configured on the NMS: suppose SNMPv3 is enabled on the

NMS, the user name is v3user, the IP address of the NMS is 1.1.1.2, authentication protocol is

MD5, authorization password is authkey, the privacy protocol is DES56, and the privacy

password is prikey.)

system-view

[Sysname] snmp-agent

[Sysname] snmp-agent sys-info version v3

[Sysname] snmp-agent group v3 v3group

[Sysname] snmp-agent usm-user v3 v3user v3group authentication-mode md5 authkey

privacy-mode des56 prikey

[Sysname] snmp-agent trap enable

[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname

v3user v3

# Configure RMON to gather statistics on interface GigabitEthernet 2/0/1.

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] rmon statistics 1 owner v3user

[Sysname-GigabitEthernet2/0/1] quit

# Configure RMON events: when event 1 is triggered, the device sends a trap to the NMS and

logs the event locally; when event 2 is triggered, the device logs the event locally.

[Sysname] rmon event 1 description rising log-trap v3user owner v3user

[Sysname] rmon event 2 description falling log owner v3user

# Create an RMON private alarm entry to monitor the utilization rate of interface

GigabitEthernet 2/0/1 when it is receiving packets, and the formula is [(number of received

bytes on the interface during the sampling interval × 8 + number of received packets on the

interface during the sampling interval × 16)/sampling interval]/interface rate.

[Sysname] rmon prialarm 1

(.1.3.6.1.2.1.16.1.1.1.4.1*8+.1.3.6.1.2.1.16.1.1.1.5.1*16)*100/(.1.3.6.1.2.1.2.2.1

.5.1*10) SpeedRatio 10 delta rising-threshold 80 1 falling-threshold 5 2 entrytype

forever owner v3user

The OID of node etherStatsOctets.1 is 1.1.3.6.1.2.1.16.1.1.1.4.1, which indicates the number of

bytes received on interface GigabitEthernet2/0/1; the OID of node etherStatsPkts.1 is

1.1.3.6.1.2.1.16.1.1.1.5.1, which indicates the number of packets received on interface

GigabitEthernet2/0/1; the OID of node ifSpeed.1 is 1.1.3.6.1.2.1.2.2.1.5.1, which indicates the

interface rate configured on GigabitEthernet2/0/1. Use delta sampling to obtain the total

number of received bytes on the interface during the sampling interval.