Came across this useful little gem today, its the executable responsible for running, or at least managing the VMware Virtual Center Service.
Where is it located?
C:Program FilesVMwareInfrastructureVirtualCenter Server>dir vpxd.exe
Volume in drive C is C_DRIVE
Volume Serial Number is F463-F653
Directory of C:Program FilesVMwareInfrastructureVirtualCenter Server
07/12/2008Â 04:07 AMÂ Â Â Â Â Â Â 13,557,760 vpxd.exe
1 File(s)Â Â Â Â 13,557,760 bytes
0 Dir(s)Â 378,903,293,952 bytes free
Cool, so what can we do with it? Lets take at look at some of the parameters:
C:Program FilesVMwareInfrastructureVirtualCenter Server>vpxd -h
Usage: vpxd [FLAGS]
-rÂ Â Â Â Â Register VMware VirtualCenter Server
-uÂ Â Â Â Â Unregister VMware VirtualCenter Server
-sÂ Â Â Â Â Run as a standalone server rather than a Service
-cÂ Â Â Â Â Print vmdb schema to stdout
-o port Listens on the specified port instead of 902
-bÂ Â Â Â Â Recreate database repository
-pÂ Â Â Â Â Reset the database password interactively
-P pwdÂ Reset the database password to the specified password
-vÂ Â Â Â Â Print the version number to stdout
Okâ€¦ so when would some of these be useful? When troubleshooting of course. The first three control the service itself, which is useful when your Windows Server does something wonky, like forget the service was registered.
-p and â€“P pwd are useful when you want to play a prank on your other VI adminsâ€¦ kidding, should you have a security policy that requires this change, or have a naughty admin leave the practice, theyâ€™re quite useful.
-o is useful if you need to run more than one vCenter on a single IP, just make sure you change this in your clients & ESX hosts as well.
-b is for when you want to start over, without passing go, or collecting $200. For when you really break things.
-s is for when your service isn’t starting and you want to find out why. It starts up in the DOS box and prints all logging there too. No need to go find the logs.
-c well, Iâ€™m not sure Iâ€™d want to be reading database schema from the console, but hey, if thatâ€™s your thing, go for it. Might help to redirect to a file :>
Lastly, â€“v, print the version. Wellâ€¦ just in case you don’t recall the build number that’s printed everywhere else.
Keep at least some of this stuff in your lossy grey matter memory, you never know when youâ€™ll need it.