Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

How to get naa of a lun

$
0
0

Hi,

 

Is it possible to get naa of a lun through vi sdk? I

ScsiLunInfo class has function called getCanonicalName, but probably it will not give naa, because Vsphere client doesn't show naa for a lun. Lun's canonical name in Vsphere client is something like this - t10.ATA______MO01.......

I am not able check the result of getCanonicalName(), because I have an issue with getting luns through getLun() function of VmfsDatastoreInfo class. The result is null for a datastore, which defenetly has lun.

 

Regards,

Hasmik


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>