VI Toolkit + PowerGUI + PowerGadgets = awesome
My knowledge of Powershell = minimal (so far, but I'm trying to learn!)
My question -
My storage folks are asking for a daily report on SAN usage. They want to know:
vmguestx on vmhostx is using datastore(s) x, which has a capacity of xxx and free space of xxx.
I've tried a few ways on my own, but having not much luck.
Can any of the scripting gods help out with a ps1 script for this?
Appreciate any help!
Do I understand correctly that the local storage always has the string "local" in it's name ?
If yes, you can filter the datastores this way.
Get-Datastore | where {-not $_.Name.Contains("local")}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Luc,
You are correct, all of the server side storage has local in the name (and all external has SAN in the name) If I could filter the names that shold work nicely.