blob: 92d1bc9cc7e613666fdb33aeed4f02a3265ea074 [file] [log] [blame]
gwu8ca410b2018-07-17 10:54:45 -07001#!/bin/bash
2
3IFS=$'\n'
4SERVERS=$(openstack server list -f json | jq -r '.[] | .Name + " " + .Networks' )
5for SERVER in $SERVERS; do
6 NAME=$(echo $SERVER | cut -d ' ' -f 1)
7 IP_ADDR=$(echo $SERVER | cut -d ' ' -f 3)
8 echo $NAME=$IP_ADDR
Gary Wuf1aabf92018-07-18 09:09:03 -07009 ssh -o StrictHostKeychecking=no root@$IP_ADDR "docker images -a | grep -v REPOSITORY | LC_ALL=C sort"
10 echo
gwu8ca410b2018-07-17 10:54:45 -070011done