I am working on a script that will make interface changes. I am trying to do the following:
1) save the output from the following command: #show cdp nei detail | i Interface
2) this will most likely give a list of interfaces some of which will be repeated. If the interface is listed more than once then i would like to remove the
repeated interface. (note i am not concerned about the outgoing interface)
3)using the above information i would then like to make configuration to the interfaces with the following commands
#no mls qos vlan-based
#mls qos trust dscp
i have started this script (please see attached file) and would really appreciate some assistance especially with how to eliminate multiple instances of the same interface.