I ma new to VBA (I have been using VADP legacy for a long time).
I was wondering if we can assign hosts to a VBA policy from the command line?
We use an automated workflow to create hosts that used to add the host to the VADP group and i want to see if we can replicate this again rather than using the VMware plugin?
You can add below commands from VBA cli.
-You will list clients
mccli group show --domain=/vc01.vlab.local/VirtualMachines --name=Group_Name --clients=true > /tmp/clientlist.log 2>&1
-You will list policy members
mccli group show-members --domain=/vc01.vlab.local/VirtualMachines --name=Group_Name
-You can add a client into policy
mccli group add-client --client-name=/vc01.vlab.local/VirtualMachines/Vm_Name --name=/vc01.vlab.local/VirtualMachines/Group_Name
How about if we have to register new VM in the VBA. These commands will help when VM already visible in client list.I read about auto discovery, but it is not working.
I want to add new VM in the VBA using command line.