[Nut-upsuser] [EXTERNAL] Re: NUT control of vCenter & vServer?
David_Zomaya at tripplite.com
Fri May 15 00:10:19 BST 2020
Another angle to maybe solve the same problem:
if you can get the UPS network management card (I think you have a card installed?) you may be able to use something like vRealize Operations Center and launch a script.
Similar thing came up once before on Spiceworks and I suggested the same, user seemed good with the solution:
From: Nut-upsuser <nut-upsuser-bounces+david_zomaya=tripplite.com at alioth-lists.debian.net> on behalf of Lee Damon <nomad at ee.washington.edu>
Sent: Thursday, May 14, 2020 3:19:27 PM
To: Bart J. Smit
Cc: nut-upsuser at lists.alioth.debian.org
Subject: [EXTERNAL] Re: [Nut-upsuser] NUT control of vCenter & vServer?
This is an EXTERNAL email. Please take a moment and think before clicking any links or opening any attachments from this email. If suspicious, please forward to ishelpdesk at tripplite.com for review.
That's certainly on the list of options. I'm doing data gathering right now to see what options there are. I'd prefer not to rashly decide to run off in a direction only to discover this is already a Solved Problem.
On Thu, May 14, 2020 at 1:13 PM Bart J. Smit <bart at smits.co.uk<mailto:bart at smits.co.uk>> wrote:
What about the REST API to do a graceful shutdown of your VM’s and the vCenter appliance: https://code.vmware.com/web/sdk/6.7/vsphere-automation-rest<https://urldefense.proofpoint.com/v2/url?u=https-3A__code.vmware.com_web_sdk_6.7_vsphere-2Dautomation-2Drest&d=DwMFaQ&c=f9s1WCuF-N6cmD_YaZ7gBg&r=lhr3k4au5dVQgHY_iS-v_t9g8PHVkn8Px_wyaupZGfQ&m=aLBjUTvV_qekPt6w4qKQmQP_IO2WxQR0-whateimZHo&s=5NzIyjgMS2F22s7TdlnYgVn_erNv1MPVb-uo1iNsVl0&e=>
From: Lee Damon <nomad at ee.washington.edu<mailto:nomad at ee.washington.edu>>
Sent: 14 May 2020 20:29
To: Bart J. Smit <bart at smits.co.uk<mailto:bart at smits.co.uk>>
Cc: nut-upsuser at lists.alioth.debian.org<mailto:nut-upsuser at lists.alioth.debian.org>
Subject: Re: [Nut-upsuser] NUT control of vCenter & vServer?
Thanks Bart. Unfortunately "The VIB module does not comply with the security recommendations imposed by VMWare. You lose VMWare support by installing this package." This pretty much rules out this option. :(
We need vCenter support, as well.
On Thu, May 14, 2020 at 10:06 AM Bart J. Smit <bart at smits.co.uk<mailto:bart at smits.co.uk>> wrote:
This shuts down the hosts directly (by-passing vCenter)
in spite of the title, it works for ESXi 6 and 7 as well
From: Nut-upsuser <nut-upsuser-bounces+bart=smits.co.uk at alioth-lists.debian.net<mailto:smits.co.uk at alioth-lists.debian.net>> On Behalf Of Lee Damon
Sent: 14 May 2020 16:53
To: nut-upsuser Mailing List <nut-upsuser at lists.alioth.debian.org<mailto:nut-upsuser at lists.alioth.debian.org>>
Subject: [Nut-upsuser] NUT control of vCenter & vServer?
Is anyone using NUT to signal/control vCenter and vServer (6.x) for shutdown when batteries are getting low? Any recommendations?
We've found https://4sysops.com/archives/startup-and-shutdown-a-vmware-cluster-with-powercli-and-powershell/<https://urldefense.proofpoint.com/v2/url?u=https-3A__4sysops.com_archives_startup-2Dand-2Dshutdown-2Da-2Dvmware-2Dcluster-2Dwith-2Dpowercli-2Dand-2Dpowershell_&d=DwMFaQ&c=f9s1WCuF-N6cmD_YaZ7gBg&r=lhr3k4au5dVQgHY_iS-v_t9g8PHVkn8Px_wyaupZGfQ&m=aLBjUTvV_qekPt6w4qKQmQP_IO2WxQR0-whateimZHo&s=U0nmY61V-AQ1HCEjdJoXsvjpDl4PZ1SiU-Qv8mbO_sM&e=> but I'd prefer to do this from the master (which is running CentOS 8) and not pollute it by installing PS on it.
This message is for the addressee's use only. It may contain confidential information. If you receive this message in error, please delete it and notify the sender. Tripp Lite disclaims all warranties and liabilities, and assumes no responsibility for viruses which may infect an email sent to you from Tripp Lite and which damage your electronic systems or information. It is your responsibility to maintain virus detection systems to prevent damage to your electronic systems and information.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser