So, i'm new to the whole powershell on Netapp, but I'm looking for a way to query a bunch of filers and report on snapmirror lag time. I'm a Vbscript guy, so go easy on me as im just starting to learn powershell.
Then it's just a matter of looping through multiple controllers and formatting the output however you want. The LagTimeTS field is a .NET TimeSpan object, so it's easy to convert that to different units.
Thanks for the quick response.. I am a poweshell newbie, so i'm just kickin around the tires on this. I have reviewed the "getting started document and plan on reviewing your latest document "Making the most out of powershell"
The goal of the script would be to loop through a set of determined filers and anything over lets' say 50hours lag time be emailed to us. The issue is that the environment i'm thinking about is has 3800+ daily snapsmirrors and snapvaults. Right now we don't have a good way to determine where the issue is.
Thanks for the linkage... Seems like I got LOTS of reading in order.. I will start to review it. If I get to the point where the script is working 100%, I will definetly post it. I will post back if i get stuck..
I've written a similar type of script and I want the LagTimeTS to be presented as actual hours:minutes:seconds and not 118.07:23:01. You wrote that "The LagTimeTS field is a .NET TimeSpan object, so it's easy to convert that to different units." I've done a bit of googeling, but I can't figure out how I can convert it. I'm new to powershell, so some pointers to how to do this would be really nice.
I'm also noticing the built in formatting is not big enough for some of our volume names. I am going to work on that with the expression statements like you did in the other post. I will re-post when im done.
I had to increase the widths b/c our volume are quite long. I'm not a true fan of how i did filer name, but it's a start.
I would more like
*** Filer Name ****
That's for tomorrow.. And then i will do the same for snapvault status.. This will really helps us out. I knew you converted lagtimTS into days and hours. I'm thinking how I would do this in VB. I would create a function that does that that I can whip a variable through to convert. is it something similiar?