apcupsd change apccontrol shutdown

Issues related to applications and software problems
Post Reply
Spaja
Posts: 1
Joined: 2015/08/17 13:44:11

apcupsd change apccontrol shutdown

Post by Spaja » 2015/08/17 13:50:46

Hello,

First time sorry for my english.

This code is try to shutdown all esxi virtuals. But it doesn't work :(

When i my CentOS 6.7 write ssh root@192.168.2.5 "/bin/shutdown-all.sh" = it's working
but i don't know how edit it


original:

Code: Select all

  doshutdown)
        echo "UPS ${2} initiated Shutdown Sequence" | ${WALL}
	${SHUTDOWN} -h -H now "apcupsd UPS ${2} initiated shutdown"

edit:

Code: Select all

   
        doshutdown)
	echo "UPS ${2} initiated Shutdown Sequence" | ${WALL}
        /usr/bin/ssh root@192.168.2.5 "/bin/shutdown-all.sh"
    ;;

Thanks

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: apcupsd change apccontrol shutdown

Post by aks » 2015/08/17 20:34:02

Just get vmware tools to do it and yes you can call them through the various scripting things that vmware provides.
And then you have central control......

Post Reply