314
You can configure only one event for a 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 IRF member device 2 for active/standby switchover.
<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
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
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
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 seconds. The default is 300 seconds.
Table 76 Monitored objects
Monitored traffic
statistic
Description
input-drops
Number of discarded incoming packets.
input-errors
Number of incoming error packets.