VMware Cloud Community
renehasp
Enthusiast
Enthusiast
Jump to solution

Snapshot reporting?

Hi there, I am looking for a tool that will give me centralized reporting on all the snapshots in my environment. I know there is a 3rd party product called snapshot hunter. I was wondering if anyone is using it and their opinion on it. I was also wondering if there are any other tools out there that would give me this type of report or functionality.

It's kinda hard to manage all the snapshots in the environment when you have to click vm by vm to see if there is a snapshot. Any help would be greatly appreciated.

Thank You,

Rene

Reply
0 Kudos
1 Solution

Accepted Solutions
Ridiz
Enthusiast
Enthusiast
Jump to solution

I use Alex Mittell's snap_hunter.pl script . It's simple, free and it works well. You can put it on a host that can see all your data stores or multiple hosts if required. I have it setup in cron to run weekly. On Mondays I review the e-mails and perform cleanups where necessary...very quick and easy.

Otherwise, ConfigureSoft's new version of ECM has some nice VI reporting functionality, including snapshot reporting.

HTH,

Rich

View solution in original post

Reply
0 Kudos
17 Replies
RParker
Immortal
Immortal
Jump to solution

The best way is go to into the table and look for : VPX_SNAPSHOT . That list's ALL the VM's w/ snapshots.

Whatever database you are using for your VC, you can find snapshots in that table. It even shows current snapshots and if they are current, you can change the description here, but I wouldn't recommend you delete or change anything else unless its via the VIC.

Reply
0 Kudos
depping
Leadership
Leadership
Jump to solution

The VC database isn't always accurate. I recommend using a script which check for registered snaps and orphaned snaps because orphaned snaps aren't registered in VC. This happens when a vmsd file gets corrupted. I wrote a script 6 months ago which does exactly that... It reports via an html mail and can check any server you want providing you've setup ssh... I will put it online asap.

Duncan

My virtualisation blog:

Reply
0 Kudos
depping
Leadership
Leadership
Jump to solution

Because I actually don't seem to have life Smiley Wink, i just posted a blog with my script on my website: http://www.yellow-bricks.com/wp-admin/post.php?action=edit&post=84

Duncan

My virtualisation blog:

Reply
0 Kudos
Ridiz
Enthusiast
Enthusiast
Jump to solution

I use Alex Mittell's snap_hunter.pl script . It's simple, free and it works well. You can put it on a host that can see all your data stores or multiple hosts if required. I have it setup in cron to run weekly. On Mondays I review the e-mails and perform cleanups where necessary...very quick and easy.

Otherwise, ConfigureSoft's new version of ECM has some nice VI reporting functionality, including snapshot reporting.

HTH,

Rich

Reply
0 Kudos
williamarrata
Expert
Expert
Jump to solution

Hey guys,

I've been trying to run the snap_hunter.pl as follows:

snap_hunter.pl --config, -c

After doing this I get:

Option config requires an argument

I have set the .cfg file as I want.?????

anyone get this?

Hope that helped. Smiley Happy

Hope that helped. 🙂
Reply
0 Kudos
Ridiz
Enthusiast
Enthusiast
Jump to solution

Bill,

My snap_hunter.pl cron script is of the form:

 <path_to_script_dir>/snap_hunter.pl -c <path_to_config_file_dir>/snap_hunter.cfg 

Specifically:

 /usr/local/snap_hunter/snap_hunter.pl -c /usr/local/snap_hunter/snap_hunter.cfg 

renehasp
Enthusiast
Enthusiast
Jump to solution

I'm playing with snapshot hunter but keep getting.

WARNING: Invalid user credentials or hostname supplied. SsId and commit snaps will not be available.

I'm not sure what credentials I need to use. Is this compatible with VC 2.5?

Local accounts on the VC? Or a VC domain account..

Reply
0 Kudos
Ridiz
Enthusiast
Enthusiast
Jump to solution

I'm running it against VC 2.0.

My config file has a VC domain account in it. You don't have to specify the domain in the config file, just

username=aVCadminAccount

Message was edited by: Ridiz - removed 2.5 statement, test was not valid.

renehasp
Enthusiast
Enthusiast
Jump to solution

wierd, Its still not working for me. Did you have to change anything on the VMhost's firewall settings?

Thanks

Rene

Reply
0 Kudos
Ridiz
Enthusiast
Enthusiast
Jump to solution

Hi Rene,

I didn't change anything on the firewall. But I was able to reproduce your error. If I run the script on a host, but point it to a VC that is not managing that host, I get the error you describe. In my case, I did this on a 3.0 host and pointed it to a VC2.5 install that was not managing it.

If I run it on a host, and point it to a VC that is managing that host, then it runs correctly. I verified this on a 3.5 host and VC2.5.

Maybe you're running it on a host and pointing it to a different VC?

HTH,

Rich

Reply
0 Kudos
renehasp
Enthusiast
Enthusiast
Jump to solution

ok I have 3.0 and def pointing it at the 2.5 host that is mangining it.

Are you using HA and DRS??

I'm stumped..

Reply
0 Kudos
Ridiz
Enthusiast
Enthusiast
Jump to solution

Yes, I have HA and DRS, but I haven't tried that specific combination (ESX 3.0 and proper VC 2.5). I'm afraid I can't test that either given my current environment. I may have an opportunity in to do so in the next week or two.

Reply
0 Kudos
williamarrata
Expert
Expert
Jump to solution

Sweet, Got it to work and send E-Mails thanks to Ridiz. Now, Issue number 2, ready. I have 84 Hosts, Is there a way to start a task or something to get them to run this script.

/usr/local/snap_hunter/snap_hunter.pl -c /usr/local/snap_hunter/snap_hunter.cfg on every host at once

Hope that helped. 🙂
Reply
0 Kudos
langonej
Enthusiast
Enthusiast
Jump to solution

When I need to run concurrent scripts against many (100 or more) ESX boxes I typically use dancer's shell (DSH). You could also do it with a loop on one ESX box but I've been using DSH for years and its quite quick. I use this to issue HBA rescans for dozens at a time, concurrently.

Reply
0 Kudos
williamarrata
Expert
Expert
Jump to solution

Can you send me an example, I would like to try this.

Hope that helped. 🙂
Reply
0 Kudos
williamarrata
Expert
Expert
Jump to solution

Has anybody created a Snap_Hunter script that starts the individual .pl files and .cfg files on each host? What I mean is I have Snap_Hunter on all my host but would like to SEE someones script written out so I can duplicate this to start all of mine on all the hosts at once. If your using a tool of some sort. Let me know plz

Hope that helped. 🙂
Reply
0 Kudos
langonej
Enthusiast
Enthusiast
Jump to solution

Here you go:

Reply
0 Kudos