Mad props to Glenn Sizemore for the foundation....
This will give me the output i want to see when i'm looking for igroups and lun mappings. The important thing here is whether or not your initiator is logged in or not. That was key for us.. FYI - you can feed a txt file full for filers if you want.
Please comment and let me know if we can improve on this.
Helper function that retrieves the volumes from a NetApp controller, including any luns and mappings. Adds the following properties:
If specified, then queries the given controller. Can specify either a controller name or Controller Connection (from Connect-NaController). If unspecified, then uses the currently-connected controller. If no
controller is connected, it will prompt you.
If specified, uses the given value as a regex and only returns volumes whose names match the filter.