We had a few issues recently where SnapManager for Exchange and SnapDrive were failing to communicate properly which resulted in a weeks worth of missed snapshots before anyone realised what was going on.
I wrote this script to report on the status of snapshots. The filer name is passed as a variable and a list of volume names is stored as a variable at the top of the script. The output is nicely formatted email.
- The script uses SSH to connect to the filer (see my SSH guide for Netapp filers)
- For each vol listed in the array, the list of snapshots is returned
- Any line with “__daily” in is processed – all others are ignored (we only care about our nightly verified snapshots which are all named __daily)
- The snapshot name contains the date/time it was taken – this is read and if the date is within 24 hours of now a success is return (since reports are run the day after the verified job). If the date is over 24 hours a failure is returned.
- A nicely formated HTML email is sent out which looks a little something like this…
Please see below for today’s backup report.
| VOL Name | Status | Snapshot name |
| Vol_Exc02_DB | Success | 0% ( 0%) 0% ( 0%) Mar 02 01:44 exchsnap__exchange02_03-01-2010_23.00.14__daily (busy,backup[0],dump) |
| Vol_Exc02_LOG | Success | 0% ( 0%) 0% ( 0%) Mar 02 04:38 eloginfo__exchange02_03-01-2010_23.00.14__daily |
| Vol_Exc02_DB1 | Success | 0% ( 0%) 0% ( 0%) Mar 01 23:00 exchsnap__exchange02_03-01-2010_23.00.14__daily |
| Vol_Exc02_LOG1 | Success | 1% ( 0%) 0% ( 0%) Mar 02 01:27 eloginfo__exchange02_03-01-2010_23.00.14__daily |
| Vol_Exc03_DB | Success | 1% ( 1%) 0% ( 0%) Mar 02 00:50 exchsnap__exchange03_03-01-2010_23.00.13__daily |
| Vol_Exc03_LOG | Success | 0% ( 0%) 0% ( 0%) Mar 02 02:06 eloginfo__exchange03_03-01-2010_23.00.13__daily |
| Vol_Exc03_DB1 | FAILURE | 1% ( 1%) 0% ( 0%) Feb 26 23:00 exchsnap__exchange03_03-01-2010_23.00.13__daily |
| Vol_Exc03_LOG1 | FAILURE | 0% ( 0%) 0% ( 0%) Feb 26 00:32 eloginfo__exchange03_03-01-2010_23.00.13__daily |
See the script and HTML files after the jump… Read the rest of this entry »

Recent Comments