Editing modeled command sets

After you have created or copied a command set, you use the Command Set Editor to add commands and logic to each command set.

Procedure

  1. Highlight the modeled command set that you want to edit, and select Edit > Edit from the menu bar.
    Alternatively, you can select Edit from the right-click menu.
    The command set is opened in the Command Set Editor in edit mode.
  2. Click a command in the command tree to import it into the command window. You can filter the command tree to display all commands, or an edited list. Edit the modeled command set using the following information as guidance.
    When you have completed your edits, select File > Save.

Command Set Editor icons and functionality.

Icons along the top right panel
Use these icons to apply markup to the commands. The markup determines whether commands are added, modified, or deleted from the configuration when it is applied.
Bottom of screen: 'Command Set' label
This label indicates that you are using the Command Set Editor rather than the standard GUI editor.
Bottom of screen: Current mode
The current mode is either 'Match' or 'Replace'.
Change this by clicking the double-up arrow at the right end of the line of icons at the top of the window.
Bottom of screen: Save needed
This icon indicates that a save is needed, and disappears once you have saved the Command Set.
If you make additional changes after saving, the icon reappears.

  1. To build a modeled command set, you perform the following steps:
    1. Define commands to add, modify, or delete.
    2. Mark up those commands with appropriate icons to tell the system if it is adding, modifying, or deleting the commands.
    3. Save the command set.
    Tip: Open a view of the configuration that you will be changing in the GUI editor. This will be a helpful reference for entering the parameters into the Command Set Editor. For more information, see Importing configurations and command sets.

Example

The following three simple examples describe how to Add a Command, Delete a Command, and Modify a command.
Add a Command
  1. Define commands: From the left pane of the Command Set Editor, select the command you wish to add. In the right pane, fill out or select the parameters as you would for a standard change in the GUI editor.
  2. Add the Mark Up: From the right pane, highlight the command you added in the first step and click the green '+' icon from the markup options at the top. If it is greyed out, the editor is in Match mode. Click the double up-arrow on the right end of the markup icons to switch to Replace mode and you will be able to select the green '+'. (Note that if you had to change modes, highlight the command again.) Verify that the green '+' now appears on the command. Also notice that there is now an orange diamond on the top level command. This indicates that this command structure will be modified by this Command Set. The left pane also shows the mark up.
  3. Save: Save the command set.
Delete a Command
  1. Define commands: From the left pane of the Command Set Editor, select the command you wish to remove. In the right pane, fill out or select the parameters that match what you will be removing.
  2. Add the Mark Up: From the right pane, highlight the command you defined in the first step and click the red '-' icon from the markup options at the top. If it is greyed out, the editor is in Match mode. Click the double up-arrow on the right end of the markup icons to switch to Replace mode and you will be able to select the red '-'. (Note that if you had to change modes, highlight the command again.) Verify the red '-' is now showing on the command. The left pane also shows the mark up.
  3. Save: Save the command set.
Modify (or match-and-replace) a Command
This procedure differs slightly in that the Define Commands step is performed twice – once for the match portion and once for the modify portion.
  1. Define commands: From the left pane of the Command Set Editor, select the command that you wish to modify. From the right pane, set the mode to 'Match' by clicking the double up-arrow on the top right. Fill out or select the parameters that match the existing parameters that you wish to change.
  2. Add the Mark Up: From the right pane, while still in 'Match' mode, select the parameter to be changed, and click the blue triangle icon from the markup options at the top.
  3. Define Command: Click the double up-arrow once to go into Replace mode (notice that the parameter value disappears). Fill in the new value.
  4. Save: Save the command set.

What to do next

For further information on modeled command set