This section explains the format of command files.
Format
Command for Network Device |
Only include commands for the target network device in the command file.
Information
Command format depends on the type of network device.
When creating scripts referring to sample scripts, initial commands executed after logging in to a network device depend on the type of network device. So, it is necessary to change the initial commands and their responses in the script.
If the structure of a script is same as that of a sample script, commands in the command file are executed after the execution of initial commands.
Creation Example
class-map match-all %classmapname% |
Point
All variable information in a command file is within the conversion range and converted before script execution.
For the variable information which can be used, refer to "Variable Information Usable in Scripts".
When not using any sample scripts (such as when the infrastructure administrator creates their own new script), create command files in the appropriate format for the created script.
When scripts do not invoke command files, such as when not using sample scripts, it is no necessary to create a command file.