VMware {code} Community
kbr5678
Contributor
Contributor
Jump to solution

LUN in datastore

any know how to get Datastore LUN capacity..........pls

Reply
0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

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

VMware ESX/ESXi scripts and resources at:

View solution in original post

Reply
0 Kudos
4 Replies
lamw
Community Manager
Community Manager
Jump to solution

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

VMware ESX/ESXi scripts and resources at:

Reply
0 Kudos
kbr5678
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

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

VMware ESX/ESXi scripts and resources at:

Reply
0 Kudos
kbr5678
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos