R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

239
Monitored traffic statistic Descri
p
tion
output-drops Number of discarded outgoing packets.
output-errors Number of outgoing error packets.
rcv-bps Receive rate, in bps.
rcv-broadcasts Number of incoming broadcasts.
rcv-pps Receive rate, in packets per second.
tx-bps Transmit rate, in bps.
tx-pps Transmit rate, in packets per second.
Table 57 Comparison operators
Com
p
arison o
p
erator Descri
p
tion
eq Equal to.
ge Greater than or equal to.
gt Greater than.
le Less than or equal to.
lt Less than.
ne Not equal to.
Usage guidelines
Use interface event monitor policies to monitor traffic statistics on an interface.
EAA uses the following process to monitor a traffic statistic for an interface event:
1. Compares the traffic statistic sample with the start threshold at sampling intervals by using the start
operator until the comparison result meets the condition.
2. Executes the policy.
3. Compares the traffic statistic sample with the restart threshold at sampling intervals by using the
restart operator until the comparison result meets the condition.
4. Executes the policy again.
This process cycles for the monitor policy to be executed and re-executed.
You can configure only one event for one monitor policy. If the monitor policy already contains an event,
the new event replaces the old event.
Examples
# Configure a CLI-defined policy to monitor incoming error packet statistic on GigabitEthernet 2/1/1
every 60 seconds. Enable the policy to execute when the statistic crosses the start threshold (1000), and
then execute again when the statistic drops below the restart threshold (50).
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event interface gigabitethernet 2/1/1 monitor-obj input-errors
start-op gt start-val 1000 restart-op lt restart-val 50 interval 60