09-06-2024 04:33 AM
I am trying to obtain port input/output information form a 9200 Catalyst.
Using the below command gets me input/output information but does not provide the port description:
sh int | in is down|input never, output never
output:
GigabitEthernet0/0 is administratively down, line protocol is down
Last input never, output never, output hang never
GigabitEthernet1/0/1 is down, line protocol is down (notconnect)
Last input never, output never, output hang never
GigabitEthernet1/0/2 is down, line protocol is down (notconnect)
Last input never, output never, output hang never
GigabitEthernet1/0/3 is down, line protocol is down (notconnect)
Last input never, output never, output hang never
GigabitEthernet1/0/4 is down, line protocol is down (notconnect)
Last input never, output never, output hang never
GigabitEthernet1/0/5 is down, line protocol is down (notconnect)
Last input never, output never, output hang never
GigabitEthernet1/0/6 is down, line protocol is down (notconnect)
Is there a way to include the above info along with the port description?
Thanks
09-06-2024 04:43 AM
have you tried below :
sh int | in is down|input never, output never|Description
example output : (only show if the port have description)
GigabitEthernet0/0 is administratively down, line protocol is down
Last input never, output never, output hang never
Description: MYHOMEPC
09-06-2024 05:03 AM
Ah, brilliant, that worked.
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide