Ask Your Question

List all ip's that are in down state

asked 2015-09-02 22:02:07 -0500

prem gravatar image

I need to list all the ips that are in down state..

neutron floatingip-list gives me all the floating ips but it does not give its down state..

I want to clear all the floating ips that are down so others can use it.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-03 17:30:04 -0500

updated 2015-09-03 17:30:26 -0500

hmm you might try the neutron help floatingip-list and depending on your version of openstack you can use the -F to specify which fields to list.

or maybe just for loop all the IP's and grep the data out.

 for i in `neutron floatingip-list | awk '{print $2}' | grep -v id`;do neutron floatingip-show $i;done
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-09-02 22:02:07 -0500

Seen: 150 times

Last updated: Sep 03 '15