Hello,
is it possible to see on VM level ( with root ) his information like cluster and vcnter name ( where the server is located ) ?
i did try vmware-toolbox-cmd info and i dont know which more parameter to put
Yes its possible. We added some vSphere related info to "BGinfo".
On VM level you have do add some adv. configuration information under the guestinfo.* level
guestinfo.vm.name = "Your fancy name here!"
and within the GuestOS
vmtoolsd.exe --cmd "info-get guestinfo.vm.name"
Regards,
Joerg
thank you
im using Linux VM, what is the correct sentence to read the Vcenter name?
Ok.. you havent get it at all. For security reasons only the variable with the prefix "guestinfo." can fetched. You can add your own as
long as you dont use the name of a existing one.
You have to create your own custom guestinfo.* variable with the value of your choice... its just a string so you have to put your Clustername into. Some powershell lines will fill every VM with the adv. configure option of your choice like guestinfo.cluster.name = "MyCluster" otherwise you have to do it within the vSphere Client WebGUI.
Within the GuestOS you can fetch your custom guestinfo.* variable. If you use Linux than of course its
vmtoolsd --cmd "info-get guestinfo.cluster.name"
or
vmware-rpctool "info-get guestinfo.cluster.name"
Regards,
Joerg