I have a number of virtual servers and need to take an educated guess in my script which server to connect to (based on the vm name for example). This way the user who runs the script does not need to provide --server argument.
What variable should I use to set the server name? $VI_SERVER does not seem to be it...