show all instance ip addresses

Change-Id: I55325aacdca84fa55258040b8d6a69fd3e4b619a
This commit is contained in:
Marcus Furlong 2016-04-19 10:15:08 +10:00
parent 0b849f430a
commit 5d22b9b499
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ for i in `nova list --all-tenants | grep -v '^+-' | grep -v '^| ID' |\
SHOW=`nova show ${ID}`
HV=`echo "${SHOW}" | grep OS-EXT-SRV-ATTR:host | awk '{print $4;}'`
IP=`echo "${SHOW}" | grep " network" | awk '{print $5;}'`
IP=`echo "${SHOW}" | grep " network" | sed -e "s/.*network *| //" -e "s/ *| *$//"`
echo -e "${HV}\t${ID}\t${STATUS}\t${IP}\t${NAME}"
done