库存VM的powershell脚本在AHV管理程序中

  • 2019年4月16日
  • 1回复
  • 1945年的观点

嗨伙计,

我想与我们分享我公司中使用的PowerShell脚本,该脚本确实在Nutanix环境中运行的VM清单,并收集以下信息:

名称,servicevmexternalip,hypervisorfullname,blockmodelname,cpumodel,numcpusockets,numcpucores,在收集之后,我们可以在CSV和HTML中导出以通过电子邮件发送

链接到脚本:
https://github.com/joaocsjr/powercli/blob/master/ntx-invetory1.ps1


问候,
Joao Castro

该主题已关闭以供评论

1回复

徽章 +3
很棒的剧本!
您知道是否可以将“描述”字段进入报告?
使用get-ntnxvm |选择 *我得到了各种有用的作用,但是我缺少我们在Prism中使用的描述字段。

亲切的问候,
弗洛里安
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