Skip to content

Instantly share code, notes, and snippets.

@InQuize
Last active February 2, 2023 12:49
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save InQuize/42fdf629fc77ef5c2d57 to your computer and use it in GitHub Desktop.
Save InQuize/42fdf629fc77ef5c2d57 to your computer and use it in GitHub Desktop.
NUT Client for ESXi 6.0U1.md

NUT Client for ESXi 6.0 Update 1 and below

Installation

NOTE: This package is not supported by VMWare and may cause problems in some cases like updating ESXi. So it is recommended to uninstall the VIB prior to major system changes. NOTE: NUT has its own official IANA port: 3493/TCP.

cp /vmfs/volumes/HDS721050CLA362/ISO/NutClient-ESXi500-1.3.0.tar.gz /tmp/
tar -xzf NutClient-ESXi500-1.3.0.tar.gz
sh upsmon-install.sh
Result Installation
   Message: Operation finished successfully.
   Reboot Required: false
   VIBS Installed: Margar_bootbank_upsmon_2.7.2-1.3.0vmw.500
   VIBS Removed:
   VIBS Skipped:

Configuration

  • Configure setting using vSphere Client: Configuration > Andvanced Settings > UserVars
  • UserVars.NutUpsName : UPS name on upsmon master (name@server_ip). Several UPSes can be entered separated by a space. There will be no system shutdown until the last still standing UPS will not have given the order to stop.
  • UserVars.NutUser : User name specified on upsmon master
  • UserVars.NutPassword : Password specified on upsmon master
  • UserVars.NutFinalDelay : Delay before shutdown since power alert
  • UserVars.NutSendMail : (0/1) Toggle for E-mail notification
  • UserVars.NutMailTo : E-mail address for notifications
  • Configure launch of daemon. Originally it's ment to be managed through ESXi service via vSphere Client, but in 6.0U1 only start/stop/restart options worked, while autostart options defaulted to manual mode on every restart. For the workaround ssh into ESXi:
  • vi /etc/rc.local.d/local.sh (Insert line before exit 0):
sh /etc/init.d/upsmon start
exit 0

Uninstallation

To remove the binary use the script from the package:

[root@esxi:/tmp] sh upsmon-remove.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment