There are tools in the NetApp Host Utilities that already do this very thing. It is recommended (and on some platforms it's mandatory) that you use this method to connect your systems to the NetApp SAN.
On unix systems, a popular command that I use is:
sanlun lun show -p
Unfortunately, I am not as verse on Windows systems, but I expect something similar (if not the same). Good luck.
Cheers,
Stetson M. Webster
Professional Services Engineer
NCIE-SAN, NCIE-B&R, SNIA-SCSE
NetApp Global Services - Southeast District
919.250.0052 Mobile
Stetson.Webster@netapp.com
Learn how: netapp.com/guarantee