any know how to get Datastore LUN capacity..........pls
You'll need to get the MOR of a datastore and you'll be able to extract capacity along with other attributes presented in the property: http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.Datastore.Summary.html
You can also take a look at this VMware Health Check script which extracts information regarding the datastore amongst other things in your infrastructure for both your ESX/ESXi hosts and vCenter: http://communities.vmware.com/docs/DOC-9420
=========================================================================
William Lam
VMware vExpert 2009
You'll need to get the MOR of a datastore and you'll be able to extract capacity along with other attributes presented in the property: http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.Datastore.Summary.html
You can also take a look at this VMware Health Check script which extracts information regarding the datastore amongst other things in your infrastructure for both your ESX/ESXi hosts and vCenter: http://communities.vmware.com/docs/DOC-9420
=========================================================================
William Lam
VMware vExpert 2009
iam asking in VI Client---hostsytem->datastore->properties->It shows the popup window........in that shows extend partitions like primary and LUN capcity...........
how to get this measures using vim25
If you look at the previous comment and the link to the VI API page, you'll see you can retrieve the capacity for your datastore using that property.
What language are you trying to extract this in? If you're looking to use Perl, you can take a look at: http://www.vmware.com/support/developer/viperltoolkit/doc/perl_toolkit_appliance_idx.html
You can still reference that page to get an understanding of the VI API and there are examples in C# and Java if you search in the API forums along with Windows Powershell.
=========================================================================
William Lam
VMware vExpert 2009
thanks ..
one more ..
iam using java code(vim25)....Is any posibility to get virtualCenter Administration configuration...LINK ( in VIClient ....Administrator--Virtualcenter management Server configuration) using sdk