update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS='2.2.90-10212023'
|
||||
VERS='2.2.100-10212023'
|
||||
|
||||
noheader=' update service dailytemp '
|
||||
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
|
||||
# Connect-VIServer -Server 10.2.1.11 -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
|
||||
|
||||
# get-vm | get-snapshot | where {($_.vm -notlike '*_replica')} | select vm, name, description, created, sizegb
|
||||
get-vm | get-snapshot | where {($_.vm -notlike '*_replica')} | select vm, name, description, created, sizegb | ConvertTo-Json -Depth 1 -WarningAction:SilentlyContinue
|
||||
get-vm | get-snapshot | where {($_.vm -notlike '*_replica')} | select vm, name, description, created, sizegb
|
||||
# get-vm | get-snapshot | where {($_.vm -notlike '*_replica')} | select vm, name, description, created, sizegb | ConvertTo-Json -Depth 1 -WarningAction:SilentlyContinue
|
||||
|
||||
|
||||
21
powerwall.sh
21
powerwall.sh
@@ -900,20 +900,17 @@ GET_SNAPSHOTS(){
|
||||
echo -e "${idsCL[LightGreen]}${PW_ESXI_HOST_NAMES[${ESXIHOST}]} (${ESXIHOST}) "
|
||||
DIVIDER . lightGreen 70
|
||||
echo -en "${idsCL[LighGreen]}Looking for snapshots...${idsCL[Default]}"
|
||||
result=`${PW_FOLDER}/esxi-scripts/get-snapshots.ps1 ${ESXIHOST}`
|
||||
snapshots=`${PW_FOLDER}/esxi-scripts/get-snapshots.ps1 ${ESXIHOST}`
|
||||
if [ "${result}" != "" ]; then
|
||||
echo -en "\033[2K\033[1A"
|
||||
# echo ${result} | jq
|
||||
|
||||
|
||||
for row in $(echo ${result} | jq -r '.[] | @base64'); do
|
||||
vm=`echo ${row} | base64 --decode | jq -r '.VM'`
|
||||
name=`echo ${row} | base64 --decode | jq -r '.Name'`
|
||||
created=`echo ${row} | base64 --decode | jq -r '.Created'`
|
||||
size=`echo ${row} | base64 --decode | jq -r '.SizeGB'`
|
||||
echo "$vm - $name - $created - $size"
|
||||
done
|
||||
|
||||
echo ${result}
|
||||
# for snapshot in $(echo ${snapshots} | jq -r '.[] | @base64'); do
|
||||
# vm=`echo ${snapshot} | base64 --decode | jq -r '.VM'`
|
||||
# name=`echo ${snapshot} | base64 --decode | jq -r '.Name'`
|
||||
# created=`echo ${snapshot} | base64 --decode | jq -r '.Created'`
|
||||
# size=`echo ${snapshot} | base64 --decode | jq -r '.SizeGB'`
|
||||
# echo "$vm - $name - $created - $size"
|
||||
# done
|
||||
|
||||
else
|
||||
echo -e "\033[2K\e[0K\r No snapshots found"
|
||||
|
||||
Reference in New Issue
Block a user