Useful VMWare Server console cli commands

There are some commands that come with VMWare Server that are useful for doing administration via the commandline. This is helpful when you can't connect via the console app and need to restart a vmware session.
Get a list of your vmware configs:

vmware-cmd -l

Get state of vmware server

vmware-cmd /config.vmx getstate

stop/start/suspend/reset

vmware-cmd /config.vmx start
vmware-cmd /config.vmx stop
vmware-cmd /config.vmx suspend
vmware-cmd /config.vmx reset

Answer a question that may be stopping your VM from booting:

vmware-cmd /config.vmx answer

Silly shell script to get state of all of your vmware sessions:

for i in `vmware-cmd -l`; do echo -n "${i} state ";vmware-cmd ${i} getstate; done