Kako bi naredil shutdown skripto za APC, da bi se skipta pogna iz VMA
Skripta pa bi se ssh-jala na esi in izvedla:
vim-cmd vmsvc/power.shutdown 10
vim-cmd vmsvc/power.shutdown 12
vim-cmd vmsvc/power.shutdown 14
vim-cmd vmsvc/power.shutdown 15
vim-cmd vmsvc/power.shutdown 7
vim-cmd vmsvc/power.shutdown 24
}
sleep 600 # Change this to a value that suits your environment
}
esxcli system shutdown poweroff -d 10 -r "Shell initiated system shutdown
done
Skripta pa bi se ssh-jala na esi in izvedla:
vim-cmd vmsvc/power.shutdown 10
vim-cmd vmsvc/power.shutdown 12
vim-cmd vmsvc/power.shutdown 14
vim-cmd vmsvc/power.shutdown 15
vim-cmd vmsvc/power.shutdown 7
vim-cmd vmsvc/power.shutdown 24
}
sleep 600 # Change this to a value that suits your environment
}
esxcli system shutdown poweroff -d 10 -r "Shell initiated system shutdown
done