This commit is contained in:
2023-09-15 20:27:10 -05:00
parent 222dcc921a
commit d2e512e071
3 changed files with 18 additions and 1 deletions

View File

@@ -888,6 +888,13 @@ LOGROTATE(){
# STARTALL_SERVICES
}
GET_SNAPSHOTS(){
for ESXIHOST in "${PW_SYSHOSTS[@]}"; do
echo -en "${ESXIHOST}"
${PW_FOLDER}/esxi-scripts/get-snapshots.ps1 ${ESXIHOST} >/dev/null 2>&1
fi
}
TEST(){
start=`date +%s`
temptotal=0
@@ -952,6 +959,8 @@ fi
shutdownhost) SHUTDOWN_SERVER ${2};;
shutdown_servers) SHUTDOWN_SERVERS ${2};;
get-snapshots) GET_SNAPSHOTS;;
service)
if [ "${2}" = "all" ]; then
if [ "${3}" == "stop" ]; then