blob: 9c6ad62b6bbdb182c4df928bb0244c064ef977b7 [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
9 ssh root@$IP_ADDR "docker ps -a | grep -v CONTAINER | LC_ALL=C sort"
10done