Name 1a_Shutdown complete
Description Shutdown vSphere 8 with vCLS (with host groups)
MainExecutionBlock
Name '1a_Shutdown complete' Main Execution Block
Description This is the main execution Block, which defines the Tasks to be executed when the job is run.
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 ExecutionBlock
Order 1
Disabled False
Type ExecutionBlock
Name CL1 Step1
Description ESXi Cluster1, Shutdown VMs
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.VMware
Host type ESX_Host
Task type ShutdownVmsOnHost
Host Group
Name ESXi-Gruppe-01
Description Host group TS-ESX11, TS-ESX12
General
Name ShutdownVmsOnHost on ESXi-Gruppe-01
Description
Execution Type Parallel
Parallel execution limit 0
Error Handling
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Task settings
Total timeout 0
Number of VMs to shutdown in parallel 2
Include configured VMs False
Immediate hard shutdown False
Timeout per soft shutdown operation 300
Power off VM if shutdown fails True
Save shutdown VMs to list var_ESXi-Gruppe-01_vms
Clear list of shutdown VMs True
Assignment 2 ExecutionBlock
Order 2
Disabled False
Type ExecutionBlock
Name Shutdown VMs explizit
Description Shutdown explicit VMs (due to sequence)
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.VMware
Host type VCenter_Vm
Task type Shutdown
Host
Name TS-SQL11
Description automatically created vm. Hosted on TS-VC11 Id: {"Type":0,"uuid":"4237f437-c915-8ad3-13f1-83e7c0298a3e","instanceUuid":"503704f2-fb55-5ea4-9fe2-80564e305dfd","locationId":"564d7fa9-5d65-66d2-26e5-dbae80ebe93a","name":"TS-SQL11","vAppInstanceUuid":null,"vAppName":null}
General
Name Shutdown on TS-SQL11
Description
Error Handling
Pass up True
Task settings
Hard shutdown False
Soft shutdown timeout 300
Hard shutdown after timeout True
Assignment 2 Task
Order 2
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.VMware
Host type ESX_Vm
Task type Shutdown
Host
Name TS-VC11
Description automatically created vm. Hosted on TS-ESX11 Id: {"Type":0,"uuid":"564d66e2-c106-7475-189b-46cfc328d336","instanceUuid":"52efe483-941e-892e-61f6-eb4d0071a569","locationId":"564d66e2-c106-7475-189b-46cfc328d336","name":"TS-VC11","vAppInstanceUuid":null,"vAppName":null}
General
Name Shutdown on TS-VC11
Description
Error Handling
Pass up True
Task settings
Hard shutdown False
Soft shutdown timeout 300
Hard shutdown after timeout True
Assignment 3 Task
Order 3
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.CommonTasks
Host type BasicIpHost
Task type Ping
Host
Name TS-VC11
Description automatically created vm. Hosted on TS-ESX11 Id: {"Type":0,"uuid":"564d66e2-c106-7475-189b-46cfc328d336","instanceUuid":"52efe483-941e-892e-61f6-eb4d0071a569","locationId":"564d66e2-c106-7475-189b-46cfc328d336","name":"TS-VC11","vAppInstanceUuid":null,"vAppName":null}
General
Name Ping on TS-VC11
Description
Error Handling
Pass up True
Task settings
Wait until host is reachable False
Required successful results 3
Total Timeout 600
Delay between tries 1000
Ping Timeout 15
TTL 128
Dont fragment False
Assignment 4 Task
Order 4
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.VMware
Host type ESX_Vm
Task type Shutdown
Host
Name TS-DC11
Description automatically created vm. Hosted on TS-ESX11 Id: {"Type":0,"uuid":"423773c0-fbc6-a429-54b2-a3149f7e42f7","instanceUuid":"5037bf24-a061-495b-561e-200951c5c153","locationId":"564dff98-fc8f-c85a-8d4f-868cc52312e9","name":"TS-DC11","vAppInstanceUuid":null,"vAppName":null}
General
Name Shutdown on TS-DC11
Description
Error Handling
Pass up True
Task settings
Hard shutdown False
Soft shutdown timeout 300
Hard shutdown after timeout True
Assignment 5 Task
Order 5
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.CommonTasks
Host type BasicIpHost
Task type Ping
Host
Name TS-DC11
Description automatically created vm. Hosted on TS-ESX11 Id: {"Type":0,"uuid":"423773c0-fbc6-a429-54b2-a3149f7e42f7","instanceUuid":"5037bf24-a061-495b-561e-200951c5c153","locationId":"564dff98-fc8f-c85a-8d4f-868cc52312e9","name":"TS-DC11","vAppInstanceUuid":null,"vAppName":null}
General
Name Ping on TS-DC11
Description
Error Handling
Pass up True
Task settings
Wait until host is reachable False
Required successful results 3
Total Timeout 600
Delay between tries 1000
Ping Timeout 15
TTL 128
Dont fragment False
Assignment 3 ExecutionBlock
Order 3
Disabled False
Type ExecutionBlock
Name CL1 Step2
Description Shutdown ESX
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.VMware
Host type ESX_Host
Task type EnableMaintenanceMode
Host Group
Name ESXi-Gruppe-01
Description Host group TS-ESX11, TS-ESX12
General
Name EnableMaintenanceMode on ESXi-Gruppe-01
Description
Execution Type Parallel
Parallel execution limit 0
Error Handling
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Task settings
Timeout 600
vCLS Shutdown True
vCLS waiting time 0
Assignment 2 Task
Order 2
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.VMware
Host type ESX_Host
Task type ShutdownHost
Host Group
Name ESXi-Gruppe-01
Description Host group TS-ESX11, TS-ESX12
General
Name ShutdownHost on ESXi-Gruppe-01
Description
Execution Type Parallel
Parallel execution limit 0
Error Handling
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Task settings
Force True
Assignment 3 Task
Order 3
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.CommonTasks
Host type BasicIpHost
Task type Ping
Host Group
Name ESXi-Gruppe-01
Description Hostgruppe TS-ESX11, TS-ESX12
General
Name Ping on ESXi-Gruppe-01
Description
Execution Type Parallel
Parallel execution limit 0
Error Handling
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Task settings
Wait until host is reachable False
Required successful results 3
Total Timeout 600
Delay between tries 1000
Ping Timeout 15
TTL 128
Dont fragment False
Assignment 4 ExecutionBlock
Order 4
Disabled False
Type ExecutionBlock
Name SAN und NAS Systeme
Description
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.Ssh
Host type Ssh
Task type ExecuteCommands
Host
Name TS-TRUENAS11
Description NAS System
General
Name ExecuteCommands on TS-TRUENAS11
Description System Shutdown via Ssh
Error Handling
Pass up True
Task settings
Commands
Other
Description shutdown
Command shutdown -p now
Execute in sudo context False
Ignore host disconnect error False
Retry on failure False
Check return code True
ValidReturnCodes
ValidReturnCodes 0
Validate process output with RegEx False
Assignment 5 ExecutionBlock
Order 5
Disabled False
Type ExecutionBlock
Name USVCTRL
Description shutdown localhost
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.CommonTasks
Host type VmShutdownManagerHost
Task type Shutdown
Host
Name VMShutdownManager
Description Host for local VMShutdownManager Tasks
General
Name Shutdown on VMShutdownManager
Description
Error Handling
Pass up True
Task settings
Timeout 30
Forcibly close all open applications True
Message Shutdown initiated by VMShutdownManager