287
[Sysname-rtm-test] event hotplug slot 2
# (Distributed devices in IRF mode.) Configure a CLI-defined policy to monitor the card in slot 2 of
IRF member device 1 for card swapping.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event hotplug chassis 1 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 event is 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 60.
start-op start-op: Specifies the operator for comparing the monitored traffic statistic with the start
threshold. The start threshold is crossed if the comparison result meets the condition. For keywords
available for the start-op argument, see Table 61.
start-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 restart threshold is crossed if the comparison result meets the condition. For
keywords available for the restart-op argument, see Table 61.
restart-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, in seconds. The default value is 300.
Table 60 Monitored objects
Monitored traffic
statistic
Description
input-drops
Number of discarded incoming packets.
input-errors
Number of incoming error packets.
output-drops
Number of discarded outgoing packets.