To create a new step for a configuration management task
To view steps
You can create, edit and delete steps for configuration management tasks on the Configuration Management page under the Steps tab.
These steps can then be applied to any number of custom configuration management tasks that you create, as well as duplicates of system configuration management tasks.
ENA allows the saving of steps that have syntax errors, in part to allow you to save scripts as they are being developed. You can still run and schedule invalid tasks, but ENA reports the syntax errors as run time errors in the task's history.
To create a step:
- In the Main Menu, click Administration and then click Configuration Management.
- Click the Steps tab, and then click New... at the bottom of the page.
- The New Step window will open. Enter the name and description for the step in the Name and Description fields respectively.
- Specify the Context of the step in the Context field. If "Device" or "Port" are selected then the step can be used with device tasks and port tasks respectively. If "None" is selected, the step can be used with both device and port tasks.
- Enter the Groovy script for the step in the Script field.
- an example use of Groovy script would be to associate a step with at least one sysOid, e.g.:
f(device.sysOid.equals(”1.3.6.1.2.1.1.3”))
then do this
else if (device.sysOid.equals(”1.3.6.1.2.1.1.4”))
then do that
In this way, a task can be launched on all devices, but certain parts of the scripts will be executed dependent upon the device sysOid.
- an example use of Groovy script would be to associate a step with at least one sysOid, e.g.:
- Click OK to save the step, otherwise click Cancel.
You can save steps with syntax errors, to allow you to save scripts as they are developed. You can still run and schedule invalid tasks, but Entuity reports the syntax errors as run time errors in the task's history.
To view steps:
- In the Main Menu, click Administration and then click Configuration Management.
- Click the Steps tab. The table of steps lists all your custom and system steps, detailing the following information:
Column Name Column Description Name unique name (case insensitive comparison) on the selected server. Description optional description of the step. Category if the step is system or custom. Context if the step is device, port, or none. If the context is device or port, it can be used with device or port tasks respectively. If the the context is none, then it can be used with both device and port tasks. Tasks number of tasks that are using this step. Hover over the number to see a list of tasks that are using this step. Script the entire Groovy script.
To edit a step:
You can only edit a custom step.
- Select your preferred step and click Edit.
- The Edit Step window will open. Make your changes and click OK.
You cannot edit or delete a system step, which is an out-of-the-box step. However, you are able duplicate a system step by selecting it and clicking Copy. You can then edit this copy as you want.
To delete a step:
You can only delete a custom step.
- Select your preferred step or steps and click Delete.
- A deletion confirmation message will appear. Click Yes.
Comments
0 comments
Please sign in to leave a comment.