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

238
Examples
# Configure a CLI-defined policy to monitor the card in slot 2 for card swapping.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event hotplug slot 2
event interface
Use event interface to configure an interface event for a CLI-defined monitor policy.
Use undo event to delete the event in a CLI-defined monitor policy.
Syntax
event interface interface-type interface-number monitor-obj monitor-obj start-op start-op start-val
start-val restart-op restart-op restart-val restart-val [ interval interval ]
undo event
Default
No interface events are configured.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
monitor-obj monitor-obj: Specifies the traffic statistic to be monitored on the interface. For keywords
available for the monitor-obj argument, see Table 56.
star
t-op start-op: Specifies the operator for comparing the monitored traffic statistic with the start
threshold. The policy is triggered if the comparison result meets the condition. For keywords available for
the start-op argument, see Table 57.
star
t-val start-val: Specifies the start threshold to be compared with the monitored traffic statistic. The
value range is 0 to 4294967295.
restart-op restart-op: Specifies the operator for comparing the monitored traffic statistic with the restart
threshold. The policy is executed if the comparison result meets the condition. For keywords available for
the restart-op argument, see Table 57.
re
start-val restart-val: Specifies the restart threshold to be compared with the monitored traffic statistic.
The value range is 0 to 4294967295.
interval interval: Specifies the interval to sample the monitored traffic statistic for a comparison. The value
range is 1 to 4294967295 seconds. The default is 300 seconds.
Table 56 Monitored objects
Monitored traffic statistic Descri
p
tion
input-drops Number of discarded incoming packets.
input-errors Number of incoming error packets.