Last active
January 27, 2016 20:44
-
-
Save ianblenke/7bbd87d4da3e5371c37d to your computer and use it in GitHub Desktop.
List network interface information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for mac in $(curl -qsL http://169.254.169.254/2014-11-05/meta-data/network/interfaces/macs/); do | |
printf "\n[$mac]" | |
curl -qsL http://169.254.169.254/2014-11-05/meta-data/network/interfaces/macs/$mac | while read line ; do | |
echo $line=$(curl -qsL http://169.254.169.254/2014-11-05/meta-data/network/interfaces/macs/$mac$line/); | |
done ; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment