Hi All, I need help. I'll trying to run this template but always get error:
.PARAMETER_LABEL @ContextNode NCM Node .PARAMETER_DESCRIPTION @ContextNode The node the template will operate on. All templates require this by default. The target node is selected during the first part of the wizard so it will not be available for selection when defining values of variables. .PARAMETER_LABEL @TartgetPorts Elige puerto(s) .PARAMETER_DESCRIPTION @TargetPorts Elige el puerto(s) en el que realizar clear port security.
*/ Script BaseChangeTemplate( NCM.Nodes @ContextNode, NCM.Interfaces[] @TargetPorts ) { // Enter configuration mode and enable Cisco Express Forwarding. CLI { configure terminal } // Loop through selected ports foreach (@interfaceItem in @ContextNode.Interfaces) { // clear port security { //Send these CLI commands CLI { clear port-secutiry sticky int gi @PortItem.InterfaceDescription } } CLI { exit } } // Exit configuration mode CLI { exit } }
Thanks for your replies and sorry for my english. Regards.