2016-03-11 11:50 AM - edited 2016-04-09 06:44 AM
The SnapMirror audit log provides a running log of SnapMirror relationships. It shows starting, restarting, and ending information for each SnapMirror relationship. This script reads in the log file(s) and parses the information into a usable CSV or XLSX file. The output produces the following details:
The similar 7-mode parser script can be found here:
Please let me know of any feedback in the comments section.
Solved! SEE THE SOLUTION
2016-03-25 10:37 AM
This is pretty great - thank you so much! A couple of questions.
Thanks so much for your hard work on this one. I'm in the beginning stages of learning PowerShell, so your script is quite an education, but some parts are definitely outside of my current knowledge level.
2016-04-05 11:41 AM
Thanks for all the feedback. Take a look at the new version I just posted. I think it addresses the issues you were experiencing. Also, I added a new option to export to Excel format (requires a module, described in the comment section).
2016-04-07 12:25 PM
Make a quick update today. Changed the throughput calculation based upon the time the SnapMirror is actually running instead of the time from when it was requested. Should give a better picture of actual throughput.
2016-04-08 09:18 AM
I had a request to add a "concurrency" field to show the number of other SnapMirror transfers that were transferring during the time that particular SnapMirror transfer was transferring. I added that to this most current version.
P.S. If you aren't using the export to Excel parameter, you really should consider it. Really presents the data more easily to work with. It just takes the module to be installed that is mentioned in the help comments.
2016-04-09 06:46 AM
I had someone contact me about the order the files were being pulled from the cluster were alphabetical instead of numeric which meant they were out of order. Good catch! Fixed it and attached again.
2016-09-21 01:28 PM
What about adding a field that indicates if the snapmirror is an "initial" snapmirror or if it is an update?
For the most part, I can determine that on my own especially if I'm the one who created the snapmirror.
But thought it might be a good field to include, if I have to pull a report in a hurry for a manager.
Thanks and Regards,