Created
November 2, 2014 12:36
-
-
Save rmueck/7e7412d74641bed11d07 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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