Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Esben_D
Lansweeper Employee
Lansweeper Employee
The report below gives back a list of vCenter Vmware guests snapshot data.

The report will only list assets when the following criteria are met:
  • You have Lansweeper 7.0 or higher.
  • There is VMware guest data scanned.
  • The assets must be active.

Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssets1.AssetName As Host,
tblVmwareGuestSnapShots.Name,
tblVmwareGuestSnapShots.InternalKey,
tblVmwareGuestSnapShots.CreateTime,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblVmwareGuest On tblAssets.AssetID = tblVmwareGuest.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tblVmwareInfo On tblVmwareGuest.HostID = tblVmwareInfo.VmwareID
Left Join tblAssets tblAssets1 On tblAssets1.AssetID = tblVmwareInfo.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tblVmwareGuestSnapShots On tblVmwareGuest.GuestID =
tblVmwareGuestSnapShots.GuestID
Where tblState.Statename = 'Active'
Order By tblAssets.AssetName,
tblVmwareGuestSnapShots.CreateTime
1 REPLY 1
Stevan
Engaged Sweeper
Hi

I'd like to run a report listing OLD snapshots, say 3 days or older.

I'd appreciate some help with customizing this report. I did do a little SQL a LONG time ago so understand the concepts but maybe it's the functions or syntax im having a hard time with, anyhow .............


I have tried things like:

Where tblVmwareGuestSnapShots.CreateTime <= (tblVmwareGuestSnapShots.CreateTime - 3) AND tblState.Statename = 'Active'

also tried variations using today() but can't get it to work.

Any suggestions ?
tnx

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now