I registered all VM with this following command:
find /vmfs/volumes -name "*.vmx" | xargs -i{} vmware-cmd -s register {}
For information, you can replace xargs -I{} by xargs -i{} for certain esx version
find /vmfs/volumes -name "*.vmx" | xargs -i{} vmware-cmd -s register {}
vmware-cmd -l | xargs -i{} vmware-cmd -s unregister {}
vmware-cmd -l | xargs -i{} vmware-cmd {} stop
vmware-cmd -l | xargs -i{} vmware-cmd {} start
vmware-cmd -l | xargs -i{} vmware-cmd {} suspend
vmware-cmd -l | xargs -i{} vmware-cmd {} reset