Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Last active January 27, 2016 20:44
Show Gist options
  • Save ianblenke/7bbd87d4da3e5371c37d to your computer and use it in GitHub Desktop.
Save ianblenke/7bbd87d4da3e5371c37d to your computer and use it in GitHub Desktop.
List network interface information
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