This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Add an 'ip verify sourceguard' command to specific interfaces.ncm-template

An NCM script to add an 'ip verify sourceguard' command to specific interfaces. The interfaces must: 1) Be 'fastethernet' 2) Be assigned to a given VLAN, specified by the user. Inputs are: 1) Device 2) VLAN whose interfaces should be modified. Use case: the NCM user would want to modify all interfaces on a switch on 'VLAN10'; they would enter '10' for the VLAN, and the script would then find all interfaces on that VLAN and add the command to each.