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.
https://docs.vmware.com/en/vRealize-Automation/7.4/com.vmware.vrealize.orchestrator-use-plugins.doc/GUID-D70D8B5B-D78F-45C1-9445-A20C9BCE87E7.html Similar thing came up once before on Spiceworks and I suggested the same, user seemed good with the solution: https://community.spiceworks.com/topic/2155776-snmp-alert-trigger-a-vrops-or-orchestrator-action?page=1 Thank you, David Zomaya Tripp Lite <http://www.tripplite.com/> ________________________________ From: Nut-upsuser <nut-upsuser-bounces+david_zomaya=tripplite....@alioth-lists.debian.net> on behalf of Lee Damon <[email protected]> Sent: Thursday, May 14, 2020 3:19:27 PM To: Bart J. Smit Cc: [email protected] 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 [email protected] 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. nomad On Thu, May 14, 2020 at 1:13 PM Bart J. Smit <[email protected]<mailto:[email protected]>> 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=> Bart… From: Lee Damon <[email protected]<mailto:[email protected]>> Sent: 14 May 2020 20:29 To: Bart J. Smit <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> 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. nomad On Thu, May 14, 2020 at 10:06 AM Bart J. Smit <[email protected]<mailto:[email protected]>> wrote: This shuts down the hosts directly (by-passing vCenter) http://rene.margar.fr/2012/05/client-nut-pour-esxi-5-0/<https://urldefense.proofpoint.com/v2/url?u=http-3A__rene.margar.fr_2012_05_client-2Dnut-2Dpour-2Desxi-2D5-2D0_&d=DwMFaQ&c=f9s1WCuF-N6cmD_YaZ7gBg&r=lhr3k4au5dVQgHY_iS-v_t9g8PHVkn8Px_wyaupZGfQ&m=aLBjUTvV_qekPt6w4qKQmQP_IO2WxQR0-whateimZHo&s=8HSVjY9EszModfE_k1wj8mP932NDL7L3r3GBKXj6Q6Q&e=> in spite of the title, it works for ESXi 6 and 7 as well Bart… From: Nut-upsuser <[email protected]<mailto:[email protected]>> On Behalf Of Lee Damon Sent: 14 May 2020 16:53 To: nut-upsuser Mailing List <[email protected]<mailto:[email protected]>> 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. thanks, nomad ________________________________ 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.
_______________________________________________ Nut-upsuser mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
