Introduction
This document describes steps describe how to remove the telemetry ietf subscription from a device configuration using a Catalyst Center template.
Prerequisites
Background Information
This procedure is required in scenarios where Device Controlability is not enabled, or when the Disable Application Telemetry task does not successfully remove the telemetry ietf subscription entry.
Configure
Create a Regular Template
Step 1 From the main menu, choose Design > CLI Templates.
Step 2 In the left pane, click Project Name and choose the project under which you are creating templates.
Step 3 Click Add and then choose New Template from the drop-down list.
Step 4 In the Add New Template slide-in pane, configure the settings for the regular template.
4.1 In the Template Details area, do these steps:
a. Enter a unique name in the Template Name field.
b. Choose the Project Name from the drop-down list.
c. Template Type: Click Regular Template.
d. Template Language: Choose either the Velocity to use for the template content.
e. Choose the Software Type from the drop-down list.
4.2 In the Device Type Details area, do these steps:
a. Click the Add Device Details link.
b. Choose Device Family from the drop-down list.
c. Choose either the device series or device model by doing one of these tasks:
Click the Device Series tab and mark the check box next to the preferred device series.
Click the Device Models tab and mark the check box next to the preferred device model.
d. Click Add.
Step 5 Click Continue to display the CLI template editor.
Configure the Template
Step 1. Add this script in the Template Configuration section:
#MODE_ENABLE
term shell
<MLTCMD>function removeall() {
for id in `sh run | grep 'telemetry ietf' | cut -f4 -d' '`
do
conf t
no telemetry ietf subscription $id
exit
done
}</MLTCMD>
removeall
#MODE_END_ENABLE
Step 2.Save the template.
Step 3.In the Variables tab, toggle off the $id variable.
Step 4.Commit the template.
Assign the Template to a Network Profile and Provision the Device
Follow the official Cisco documentation to apply the template to the Network Profile. Once the template is associated, you can provision the device.
For detailed guidance, see: Associate templates to network profiles.