Pre-run CLI template runs once on model device to preconfigure it with required settings 7.0.2
Pre-Run CLI template runs once on model device to preconfigure it with required settings.
To create a pre-run CLI template:
- Create a pre-run CLI template.
- Go to Device Manager > Provisioning Templates > CLI Templates.
- Click Create New, and create a new pre-run CLI template.
- Enter the template name and script details, and click OK. In this example, the template is named "add-interfaces."
- Add a model device and assign the pre-run template.
- Go to Device Manager.
- Click Add Device, and enter the device serial number.
- Enable the Pre-Run CLI templates field, and select the pre-run CLI template.
- On the CLI template page, check the pre-run CLI template assignment.
- Go to Device Manager > Provisioning Templates > CLI Templates.
- Review the template under the Pre-Run CLI Template header.
The configured pre-run CLI template displays that it is assigned to the added model device.
- Perform a device or policy package installation. After the installation, the pre-run template content is applied to the device's database and the pre-run CLI template is automatically unassigned from the device.
- When modifying the pre-run CLI template script content, you will need to assign the template to devices and perform the installation again to apply the CLI script changes to the device's database.