使用IP地址查询实例

使用IP地址查询实例

You can search for an instance using the IP address parameter, --ip, with the openstack server list command.

$ openstack server list --ip IP_ADDRESS

下面的例子中按``10.0.0.4``查询实例。

$ openstack server list --ip 10.0.0.4
+------------------+----------------------+--------+------------+-------------+------------------+------------+
| ID               | Name                 | Status | Task State | Power State | Networks         | Image Name |
+------------------+----------------------+--------+------------+-------------+------------------+------------+
| 8a99547e-7385... | myInstanceFromVolume | ACTIVE | None       | Running     | private=10.0.0.4 | cirros     |
+------------------+----------------------+--------+------------+-------------+------------------+------------+
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.