This commit is contained in:
2023-05-15 12:47:04 -05:00
parent 162b543b53
commit 4563ed13e6
3 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env bash
VERS='2.1-05152023'
@@ -39,6 +40,12 @@ POWERWALL_SERVICES['Temp']='monitor-temp'
POWERWALL_SERVICES['ACV']='monitor-acv'
POWERWALL_SERVICES['powerlogger']='monitor-powerlogger'
declare -A ESXI_HOST_NAMES
ESXI_HOST_NAMES['10.10.1.10']='ids-vms-scsi.scity.us'
ESXI_HOST_NAMES['10.10.1.11']='ids-vms1.scity.us'
ESXI_HOST_NAMES['10.10.1.12']='ids-vms2.scity.us'
ESXI_HOST_NAMES['10.10.1.17']='ids-vms7.scity.us'
MAINHOSTS=10.10.2.10,10.10.2.11,10.10.2.12
SYSHOSTS=10.10.2.17

View File

@@ -2,6 +2,6 @@
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server 10.10.1.30 -Protocol https -User administrator@scity.vs -Password 'Dc$@1910'
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS
Get-VMHost -Name ids-vms7.scity.us | set-vmhost -State Maintenance
Get-VMHost -Name $args[0] | set-vmhost -State Maintenance

View File

@@ -424,7 +424,7 @@ SHUTDOWN_SERVERS(){
}
SHUTDOWN_SERVER(){
echo -en "Enabling Maintenance mode and will wait for iSCSI VM's to begin migrating ... "
ssh root@${1} 'esxcli system maintenanceMode set -e true -t 0 &' &
${FOLDER}/esxi-scripts/host-maintenance_modce.ps1 ${ESXI_HOST_NAMES[${1}]} >/dev/null 2>&1
ssh root@${VCENTERHOST} "service-control --stop vmware-vpxd >/dev/null 2>&1" >/dev/null 2>&1
ssh root@${VCENTERHOST} "service-control --start vmware-vpxd >/dev/null 2>&1" >/dev/null 2>&1
sleep 30s