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