Using command set parameters

Using the full parameter functionality, a user can set up a command set with a parameter rather than a defined value. There are three different types of parameters: Manual, Local, and Global. The method to use depends on the number of command sets, the number of parameters, and whether you know which commands the parameters represent.

Before you begin

A parameter can be defined when using native command sets and modeled command sets. If any command sets in your UOW contain parameters, you must assign an actual value to each parameter before the UOW can be submitted.

About this task

The manual method of parameter entry is only applicable for modelled command sets.

Procedure

  1. The manual method of entering parameter values uses the Command Set Editor to step through each command set, providing a value for each parameter.
    1. Select the Manual option on the Enter Parameters window, and click Next. The second part of the Enter Parameters window is displayed.
    2. This dialog lists the command sets containing parameters. Notice that each contains unset parameters to allow values to be assigned to the parameters. Click the Edit button next to the command set to be edited. The command set chosen is opened in the Configuration Editor. Only the commands that require parameters to be filled in are shown.
    3. Enter the value required for each parameterized field (you may have to switch to Replace view) and then select File > Save. The window reverts back to the Apply Command Set wizard when this has been completed, and the text next to the first command set is Completed Parameters.
    4. Continue the same process for any additional command sets that need parameters defined. Click Next when done to continue with the Apply Command Set wizard.
  2. The local parameter option uses the Command Set Editor to step through each command set, providing a value for each parameter. This option should be used if the same parameter name is used in multiple command sets, but you want to define each different value depending on the command set. The Local option is available regardless of the number of command sets in the UOW.
    1. Select the Local option on the Enter Parameters window, and click Next . The second part of the Enter Parameters window is displayed.
    2. Enter the value required for each parameterized field. This dialog shows a table with each command set and parameter name.
    3. Select the parameter to set. Type the value in the box at the bottom of the dialog.
    4. Click Next when done to continue with the Apply Command Set wizard.

Example

The format for the creation of parameters is: ${parametername=default value}$ For example: interface $fastEthernet=2/1/0$