Custom Search

Sunday, November 22, 2015

ironic find all compute and storage nodes

# for x in $(ironic node-list | awk '{ print $2 }'); do ironic node-show $x | grep -E 'cpu_arch|ipmi_address';echo ""; done

Result:
-----------

| properties             | {u'memory_mb': 131072, u'cpu_arch': u'x86_64.g1.compute', u'local_gb': |
|                        | u'provisioner', u'ipmi_address': u'100.214.122.81', u'ipmi_password':   |

| properties             | {u'memory_mb': 131072, u'cpu_arch': u'x86_64.g1.compute', u'local_gb': |
|                        | u'provisioner', u'ipmi_address': u'100.214.122.82', u'ipmi_password':   |



No comments:

Post a Comment