when i run that it gave me govc: please specify a datacenter tony@ubuntu:~/ansible-vmware/ansible-add-esxi-host$ govc about Name: VMware vCenter Server Vendor: VMware, Inc. Version: 6.7.0 Build: 15976728 OS type: linux-x64 API type: VirtualCenter API version: 6.7.3 Product ID: vpx UUID: 4f7ea0f6-72b5-4d7c-9119-755870852497
On Mon, Apr 13, 2020 at 1:03 PM Jorge Rúa <[email protected]> wrote: > Best thing you can do to understand how vCenter is organized is using govc > tool: > > For example, this is my home lab: > > ➜ govc about > Name: VMware vCenter Server > Vendor: VMware, Inc. > Version: *6.7.0* > Build: 15129973 > OS type: linux-x64 > API type: VirtualCenter > API version: 6.7.3 > Product ID: vpx > UUID: 1a93cd0c-f7f7-4021-a232-7ca15c73f8bd > > In this case the only esxi host belong to a datacenter called DC01, in > cluster CLUSTER01, and esxi host is 192.168.10.200. > > ➜ govc host.info 192.168.10.200 > Name: 192.168.10.200 > Path: */DC01/host/CLUSTER01/192.168.10.200 > <http://192.168.10.200>* > Manufacturer: Dell Inc. > Logical CPUs: 4 CPUs @ 3408MHz > Processor type: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz > CPU usage: 698 MHz (5.1%) > Memory: 32628MB > Memory usage: 16856 MB (51.7%) > Boot time: 2020-03-21 16:00:52.643186 +0000 UTC > State: connected > > Regards, > > > > El lun., 13 abr. 2020 a las 20:58, Tony Wong (<[email protected]>) > escribió: > >> how do i specify this folder? The is a vcenter folder and I need to add >> it to the HK datacenter >> >> On Mon, Apr 13, 2020 at 12:47 PM Tony Wong <[email protected]> wrote: >> >>> Hi, >>> >>> Thanks. what would the host be under '/DC01/host/myhostfolder' ? >>> >>> I have a parent folder that I need to add the host into but its not >>> taking it. >>> >>> can i specify a vcenter folder ? >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ansible Project" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/ansible-project/6a9eded3-8e2d-4e77-9d38-2ad90732e6a7%40googlegroups.com >>> <https://groups.google.com/d/msgid/ansible-project/6a9eded3-8e2d-4e77-9d38-2ad90732e6a7%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CALmkhkrZeyoCbseLubxwf_QRUQBbLqMkrjdJ1EMHaZngLRteLg%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CALmkhkrZeyoCbseLubxwf_QRUQBbLqMkrjdJ1EMHaZngLRteLg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAFtje5OtU-EPhU3e9XxQijoR9nTtJ1WuBDOi-0FoXO-z%2B6n5Zw%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAFtje5OtU-EPhU3e9XxQijoR9nTtJ1WuBDOi-0FoXO-z%2B6n5Zw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkoqXq7SshcUBE9kAi3m8aLet1VLRFaqVmZVHGXCJc8iug%40mail.gmail.com.
