Link Status
I had a co-worker help write this nifty command that I’ve trimmed down.
It’s a quick way to check your ports after starting your switches in your home lab.
I’ve found it particularly useful when used with remote power (ie IP Power).
ifconfig | cut -f1 -d' ' | tail -n +2 | xargs -n1 sudo ethtool $i | egrep '(Se|L)'
This is the output I get from running this command:
Settings for eth1:Link detected: yesSettings for eth2:Link detected: yesSettings for eth3:Link detected: yesSettings for eth4:Link detected: yesSettings for eth5:Link detected: yesSettings for eth6:Link detected: yesSettings for eth7:Link detected: yesSettings for eth8:Link detected: yesSettings for eth9:Link detected: yesSettings for eth10:Link detected: yesSettings for eth11:Link detected: yesSettings for eth12:Link detected: yesSettings for lo:Link detected: yesSettings for vmnet1:Settings for vmnet8:
Be aware that 3560 links take a while to show as “up” due to Auto-MDIX.
About this entry
You’re currently reading “Link Status,” an entry on Cisco Fun
- Published:
- July 8, 2010 / 4:21 am
- Category:
- Uncategorized
- Tags:
No comments yet
Jump to comment form | comment rss [?] | trackback uri [?]