Manuel Amador (Rudd-O) 05c020e1f6 Source code committed
2010-08-11 09:13:29 -07:00

17 lines
386 B
Bash
Executable File

#!/usr/bin/env bash
# $Id: get_iqn.sh 9132 2010-06-04 20:17:43Z manuel $ $HeadURL: svn://svn.lab.vmops.com/repos/vmdev/java/scripts/storage/qcow2/get_iqn.sh $
# get_iqn.sh -- return iSCSI iqn of initiator (Linux) or target (OpenSolaris)
usage() {
printf "Usage: %s \n" $(basename $0) >&2
}
if [ $# -ne 0 ]
then
usage
exit 1
fi
ip link show eth0| grep link | awk '{print $2}'