blob: 9c6ad62b6bbdb182c4df928bb0244c064ef977b7 [file] [log] [blame]
#!/bin/bash
IFS=$'\n'
SERVERS=$(openstack server list -f json | jq -r '.[] | .Name + " " + .Networks' )
for SERVER in $SERVERS; do
NAME=$(echo $SERVER | cut -d ' ' -f 1)
IP_ADDR=$(echo $SERVER | cut -d ' ' -f 3)
echo $NAME=$IP_ADDR
ssh root@$IP_ADDR "docker ps -a | grep -v CONTAINER | LC_ALL=C sort"
done