C Device Scripts
Appendix C
Introduction
When using the Device Scripting feature of PerleVIEW, you need to provide a script which will be deployed to each of the selected devices. This script will be composed of “CLI” (Command Line Interface) commands.
PerleVIEW provides a “slot macro” that will enable you to replace any CLI command which contains slot# as a parameter with the following macros ({CM100}, {CM1000}, {CM110}, {CM1110ANY}, {CM100MM}, {CM1000MM}, {CM1110}, {CM1110SFP}, {CM10G}, {CM10GT},
For example:
set slot 1
set slot {CM1110ANY}
For a listing of the CLI commands available, please see the
This appendix will describe commands for which the behavior when deployed via the PerleVIEW Device Scripting feature is slightly modified than that which is described in the guide.
Commands which are not supported will be discarded by the device.
The following commands are graphical in nature and will therefore not be supported in the Device Scripting mode of operation.
menu, screen, help
The following commands would cause the device to immediately reboot and therefore would not allow the Device Scripting function to terminate gracefully. They are not supported.
reboot, reset factory, chassis reset,
The following commands are interactive in nature and will therefore not be supported in the Device Scripting mode of operation.
admin, “?”, “tab”, “ESC”
Most of the commands which require the entry of a password will prompt the user for the password and then ask the user to
Command:add user
141