if you type, sh int status, you will get the status of all interface. But what about if I want just to display the interface with status connected?
I am using the following command until I find a better solution is:
sh int status | e not (display all interfaces excluded those with status NOTCONNECT).
SWITCH_B#sh int status
Port Name Status Vlan Duplex Speed Type
Fa0/1 IP PHONE 1 connected 50 a-full a-100 10/100BaseTX
Fa0/2 IP PHONE 2 connected 50 a-full a-100 10/100BaseTX
Fa0/3 IP PHONE 3 notconnect 50 auto auto 10/100BaseTX
Fa0/4 notconnect 50 auto auto 10/100BaseTX
Fa0/5 connected 50 a-full a-100 10/100BaseTX
Fa0/6 notconnect 50 auto auto 10/100BaseTX
Fa0/7 connected 50 a-full a-100 10/100BaseTX
Fa0/8 notconnect 50 auto auto 10/100BaseTX
Fa0/9 notconnect 50 auto auto 10/100BaseTX
Fa0/10 notconnect 50 auto auto 10/100BaseTX
Fa0/11 notconnect 50 auto auto 10/100BaseTX
Fa0/12 notconnect 50 auto auto 10/100BaseTX
Fa0/13 notconnect 1 auto auto 10/100BaseTX
Fa0/14 notconnect 1 auto auto 10/100BaseTX
Fa0/15 notconnect 1 auto auto 10/100BaseTX
Fa0/16 notconnect 1 auto auto 10/100BaseTX
Fa0/17 notconnect 1 auto auto 10/100BaseTX
Fa0/18 notconnect 1 auto auto 10/100BaseTX
Fa0/19 notconnect 1 auto auto 10/100BaseTX
Fa0/20 notconnect 1 auto auto 10/100BaseTX
SWITCH_B#sh int status | e not
Port Name Status Vlan Duplex Speed Type
Fa0/1 IP PHONE 1 connected 50 a-full a-100 10/100BaseTX
Fa0/2 IP PHONE 2 connected 50 a-full a-100 10/100BaseTX
Fa0/5 connected 50 a-full a-100 10/100BaseTX
Fa0/7 connected 50 a-full a-100 10/100BaseTX
Fa0/24 CONNECT TO SWITCH connected trunk a-full a-100 10/100BaseTX
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment