0 Replies Latest reply on Aug 29, 2018 1:00 PM by atthwack

    NCM Template Syntax

    atthwack

      Does anyone know how I might be able to loop through all the interfaces on a switch and only display the trunk ports?

      I can loop through and display all ports but I have a need to select only the trunk ports on a switch

       

      This lists all of the ports on a switch - I jus need help select only the trunk ports

       

      // Loop through selected ports

        foreach (@TargetPorts in @TargetPorts)

        {

          CLI

          {

       

       

             interface @TargetPorts.InterfaceDescription

             ip dhcp snooping trust