Users Guide

Perl Scripts | Actions and Adaptive CLI
596 OMNM 6.5.3 User Guide
Example 3 - Adaptive CLI with Reboot
The following describes how to set up multi-line ACLI with error/success tracking for a command
sequence that requires reboot.
1
Create an example configure Adaptive CLI command (here
quickThenReboot
).
2
Separate commands into parts. First issue the command (here
show run
), then issue the
reboot command with a parameter that allows a prompt return before actual reboot (a delay,
for instance). If the first command fails the ACLI doesn't continue, so that makes using the
reboot command second the solution.
In our example:
show run
reboot 1 minute