update
This commit is contained in:
@@ -7,4 +7,7 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo
|
||||
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
|
||||
|
||||
write-host "\033[2K\e[0K\r" -NoNewline
|
||||
write-host "Gathering Snapshots ..."
|
||||
|
||||
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false
|
||||
|
||||
@@ -717,7 +717,7 @@ LOGROTATE(){
|
||||
GET_SNAPSHOTS(){
|
||||
echo -e "\n${idsCL[Yellow]}LISTING ALL VM SNAPHOTS IN VCENTER ${idsCL[Default]}(minus offsite replicas)"
|
||||
DIVIDER . lightGreen 70
|
||||
echo -en "${idsCL[LightCyan]}Connecting to vCenter and gathering snapshots ...${idsCL[Default]}"
|
||||
echo -en "${idsCL[LightCyan]}Connecting to vCenter ...${idsCL[Default]}"
|
||||
snapshots=`${PW_FOLDER}/esxi-scripts/get-snapshots.ps1`
|
||||
echo -en "\033[2K\e[0K\r"
|
||||
echo -e "${snapshots}"
|
||||
|
||||
Reference in New Issue
Block a user