285
[Sysname] rtm cli-policy test
[Sysname-rmt-test] event cli async skip mode execute pattern dis inter brief
# Configure a CLI-defined policy to monitor the use of the Tab key at command lines that contain the
dis inter brief string. Enable the system to execute the actions in the policy and display the
complete parameter when Tab is pressed at a policy-matching command line.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rmt-test] event cli async mode tab pattern dis inter brief
# Configure a CLI-defined policy to monitor the use of the question mark (?) at command lines that
contain the dis inter brief string. Enable the system to execute a policy-matching command line only
if the actions in the policy are executed successfully when a question mark is entered at the
command line.
<Sysname>system-view
[Sysname] rtm cli-policy test
[Sysname-rmt-test] event cli sync mode help pattern dis inter brief
event hotplug
(Centralized devices in standalone mode.) Use event hotplug to configure a subcard hot-swapping
event.
(Centralized devices in IRF mode.) Use event hotplug to configure an event to monitor a member
device for joining or leaving the IRF fabric or a subcard slot for subcard hot-swapping.
(Distributed devices.) Use event hotplug to configure a card hot-swapping event.
Syntax
Distributed devices in standalone mode/centralized devices in standalone or IRF mode:
event hotplug [ insert | remove ] slot slot-number [ subslot subslot-number ]
undo event
Distributed devices in IRF mode:
event hotplug [ insert | remove ] chassis chassis-number slot slot-number [ subslot
subslot-number ]
undo event
Default
No hotplug event is configured.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
insert: Specifies the card insert event. EAA executes the policy when card insertion occurs while the
device is operating.
remove: Specifies the card remove event. EAA executes the policy when card removal occurs while
the device is operating.
slot slot-number: 0. (Centralized devices in standalone mode.)
slot slot-number: Specifies a card by its slot number. (Distributed devices in standalone mode.)