Skip to content

Instantly share code, notes, and snippets.

@rmueck
Created November 2, 2014 12:36
Show Gist options
  • Save rmueck/7e7412d74641bed11d07 to your computer and use it in GitHub Desktop.
Save rmueck/7e7412d74641bed11d07 to your computer and use it in GitHub Desktop.
#!/usr/bin/ksh
netstat -i|grep -e $(hostname) |grep en|awk '{print $1}'|while read line
do
echo "ibm_${line}_"$(lsattr -EHl ${line} -a netaddr -F attribute=value|tail -n 1)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment