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