Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Identifying version of vCenter Server and vCenter Web Client for installation script

$
0
0

Hi,

 

We were using vCenter server 5.5 so far and now planning to upgrade to version 6.0.

 

Problem is that the directory structure has been changed in 6.0 vCenter server, . For ex, vSphere Web Client . It was "C:\ProgramData\VMware\vSphere Web Client" which is now changed to "C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client" in version 6.0.

I had a script which used vSphere Web Client location for some clean up activity which is not working now after vCenter server upgrade.


My question is how can I find out the version of vCenter server installed. Planning to refer to respective directory based on the version.


Also the command [ "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\vpxd.exe" -v ] to identify version which used to work for vCenter server 5.5 is not working in 6.0 reason being the same, change in vpxd.exe file location.

 

Please suggest me the best way to solve this issue.

One workaround I am thinking was to see if one directory exists, use that else use other directory which I think might not be the best way.


Thanks & Regards,

Sravan


Viewing all articles
Browse latest Browse all 2218

Trending Articles