Ask Your Question
1

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
1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 95 times

Last updated: Sep 03 '15