R3166-R3206-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101

115
Alarm group configuration example
Network requirements
As shown in Figure 50, Agent is connected to a console terminal through its console port and to an NMS
across Ethernet.
Do the following:
GigabitEthernet 0/1 is connected with the FTP server. Gather statistics on traffic of the server on
Ethernet 1/1 with the sampling interval being five seconds. When traffic is above or below the
thresholds, Agent sends the corresponding traps to the NMS.
Execute the display rmon statistics command on Agent to display the statistics result, and query the
statistics on the NMS.
Figure 50 Network diagram for RMON
Configuration procedure
# Configure the SNMP agent. (Note that parameter values configured on the agent must be the same
with the following configured on the NMS: suppose SNMPv1 is enabled on the NMS, the read
community name is public, the write community name is private, 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.)
<Sysname> system-view
[Sysname] snmp-agent
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
[Sysname] snmp-agent sys-info version v1
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
public
# Configure RMON to gather statistics on interface GE0/1.
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] rmon statistics 1 owner user1
[Sysname-GigabitEthernet0/1] quit
# Create an RMON alarm entry that when the delta sampling value of node 1.3.6.1.2.1.16.1.1.1.4.1
exceeds 100 or is lower than 50, event 1 is triggered to send traps.
[Sysname] rmon event 1 trap public owner user1
[Sysname] 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.