vmware-cmd -l | xargs -i{} vmware-cmd -s unregister {}
You can stop / start / suspend / reset all VM using the same tip:
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
For information, you can replace xargs -I{} by xargs -i{} for certain esx version
No comments:
Post a Comment