When you want to register all VMs from datastore use below script to register all VMs.
A) Register all Virtual Machine in a datastore
find /vmfs/volumes/<Datastore name>/ -type f -maxdepth 2 -name '*.vmx' -exec vim-cmd solo/registervm {} \;
B) Register all Virtual Machine in all datastore
find /vmfs/volumes/ -maxdepth 3 -name '*.vmx' -exec vim-cmd solo/registervm {} \;
No comments:
Post a Comment