Problem
How to check all metadata on all your cloud servers in a simple way.
root@server:~# nova list | tail -n +4 | tac | tail -n +2 | cut -d'|' -f2 | while read i; do nova show $i | egrep -i 'name|metadata'; done | sed 's/ */ /g' | metadata | {} | | name | test4 | | metadata | {u'mykey2': u'value2 and 3', u'myke1': u'value1'} | | name | test4 | | metadata | {u'rado': u'my value2', u'rade2': u'value3'} | | name | test3 | | metadata | {u'rado': u'my value2'} | | name | test2 | | metadata | {} | | name | test1 | | metadata | {} | | name | manage2 |
References
No comments:
Post a Comment