问题

如何使用acli vm.list命令显示IP地址


徽章

我正在执行命令:

/usr/local/nutanix/bin/acli vm.list

输出是:

002Nutanix生产MGMT FA4AA572-A757-4E9F-A151-760A290195BD
2016-DELETE- 0 0CC10B90-108F-404F-B48D-AC8A1D1E5BAD
72222092-CRRS-OS-VDA717 1034B811-75EA-4B13-9688-892DE9BC9B67
87777823 BE6AFD54-E56F-4D9B-8101-C0DD946581C3
632224333 348430C2-7567-4579-B04A-9B23BA6890B1
RDDU-CASE01 66B8CA97-BAFC-46F9-9748-6AC9B2E580CD

我还需要查看每个VM的IP地址。

我找到了该链接,该链接显示了如何使用NCLI而不是ACLI进行操作

通过CLI列出VM,以导入Excel


2个答复

UserLevel 4
徽章 +5

你好

我认为,从ACLI使用AHV的IPAM,您只能获得VM IP。这是使用IPAM的VM的示例

如果您正在设置IP手动,则未显示IP

如果我错了,也许有人可以纠正我

问候!

徽章

感谢您的回复,我不确定我们是否正在使用IPAM,但是我有一个执行命令的脚本,我需要使用IP地址的VM的完整列表。

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu