prateekpatalVCP
Enthusiast
Enthusiast

PoqweCLI script for host connection state

Hello All,

 

I am looking for a powercli script that can fetch ESXi host connection state such as Host disconnected or non responding,

Thanks in advance

Moderator edit by wila: Moved to PowerCLI discussions

Prateek
Labels (1)
0 Kudos
3 Replies
LucD
Leadership
Leadership

Like this?

Get-VMHost | Select Name,State


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
prateekpatalVCP
Enthusiast
Enthusiast

No Lucd, it will give output to all connected and disconnected hosts. I need only disconnected hosts and non-responding lists and the output will be sent to mail.

 

thanks.

Prateek
0 Kudos
LucD
Leadership
Leadership

That is not what you asked for with "I am looking for a powercli script that can fetch ESXi host connection state such as Host disconnected or non responding,".
Plus now you all of a sudden have an email requirement.

Sorry, I'm not falling for these never-ending threads anymore.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference