{"id":229,"date":"2015-11-06T12:33:35","date_gmt":"2015-11-06T12:33:35","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=229"},"modified":"2015-11-06T12:47:34","modified_gmt":"2015-11-06T12:47:34","slug":"extracting-ipv4-ip-addresses-from-a-list-of-machine-ids","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2015\/11\/06\/extracting-ipv4-ip-addresses-from-a-list-of-machine-ids\/","title":{"rendered":"Extracting IPV4 IP addresses from a list of machine ID&#8217;s"},"content":{"rendered":"<pre>\r\nfor id in $(cat list.txt); do supernova lon show $id | awk '\/accessIPv4\/ {print $4}'; done >> iplist.txt\r\n<\/pre>\n<p>It&#8217;s a pretty simple hack. thanks to Jan for this.<\/p>\n<p>Of course you need to extract the machine id&#8217;s to run the above statement. Here is how I did that:<\/p>\n<pre>\r\nnova list --tenant 10010101 > list.txt\r\n<\/pre>\n<p>Pretty cool. And yeah I know, I put step 1 after step 2, but you get the idea !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>for id in $(cat list.txt); do supernova lon show $id | awk &#8216;\/accessIPv4\/ {print $4}&#8217;; done >> iplist.txt It&#8217;s a pretty simple hack. thanks to Jan for this. Of course you need to extract the machine id&#8217;s to run the &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2015\/11\/06\/extracting-ipv4-ip-addresses-from-a-list-of-machine-ids\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,11,1],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-management-tools","category-openstack","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/229\/revisions\/230"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}