VMware {code} Community
jblanc03
Contributor
Contributor

What is --datacenter referring to?

Hello i am trying to validate my insatllation of vSphere 4.1 SDK Perl.

The command syntax to validate is the following:

perl discovery/datacenterlisting.pl --server --datacenter --username --password

I do not know what my datacenter is.  Ive tried my Vcenter Server hostname, i've tried both of my hosts, nothing will work.

my question is what is the --datacenter referring to?

how do i find out the hostname of my datacenter?

0 Kudos
2 Replies
schepp
Leadership
Leadership

Hi,

the datacenter is the object right below your vCenter Server in the vSphere Client. It contains your hosts, for example.

http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.Datacenter.html

Regards

0 Kudos
jblanc03
Contributor
Contributor

0 Kudos