231
[Sysname-rtm-test] action 1 cli system-view
[Sysname-rtm-test] action 2 cli interface gigabitethernet 1/0/1
[Sysname-rtm-test] action 3 cli shutdown
action reboot
Use
action reboot
to add a reboot action to a monitor policy.
Use
undo action
to remove an action.
Syntax
In standalone mode:
action
number
reboot
[
slot
slot-number
[
subslot
subslot-number
] ]
undo action
number
In IRF mode:
action
number
reboot
[
chassis
chassis-number
[
slot
slot-number
[
subslot
subslot-number
] ] ]
undo action
number
Default
Monitor policies do not contain any actions.
Views
CLI-defined policy view
Predefined user roles
network-admin
mdc-admin
Parameters
number
: Specifies an action ID in the range of 0 to 231.
slot
slot-number
: Specifies a card by its slot number. If you do not specify a card, the command
reboots all cards. (In standalone mode.)
chassis
chassis-number
: Specifies an IRF member device by its member ID by its virtual chassis
number. If you do not specify a member device, the command reboots all IRF member devices. (In
IRF mode.)
slot
slot-number
: Specifies a card by its slot number. If you do not specify a card, the command
reboots all cards. (In IRF mode.)
subslot
subslot-number
: Specifies a subcard by its slot number. If you do not specify a subcard, the
command reboots all subcards. In the current software version, the device does not support this
option.
Usage guidelines
You can configure a series of actions to be executed in response to the event specified in a monitor
policy.
If two actions have the same ID, the most recent one takes effect.
EAA executes the actions in ascending order of action IDs. When you add actions to a policy, you
must make sure the execution order is correct.
The reboot action configured with this command reboots devices or cards without saving the running
configuration. If you want to save the running configuration, use the
action cli
command to configure
reboot actions.