VMware Cloud Community
Sachinmi
Contributor
Contributor

Snapshot report from script and RV tools

Hello Team,

Can anyone advise me that why I am seeing discrepancy while fetching snapshot report from RV tools and getting report from a shell script. Weird to me that when I compare both the lists there are many servers with snapshot which are not listed by either script or RV tools. Only few servers can be found common on both lists. 

Below script used

Import-Module vmware.vimautomation.core
$cred = get-credential
Connect-VIServer -server (gc .\vc.txt) -credential $cred -WarningAction Ignore
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
get-vm | get-snapshot | select vm,name,description,created,powerstate,filename | export-csv F:\Test\snaplist.csv

0 Kudos
2 Replies
scott28tt
VMware Employee
VMware Employee

I've reported your thread so moderators know it should be moved to the area for PowerCLI.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
LucD
Leadership
Leadership

You will need to provide a bit more info to allow anyone to analyse the issue.
Is the snapshot list produced by the script not complete?
Which snapshots are not listed?
What is missing from the RVTools report?
Is this against 1 vCenter, or multiple?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos