Unsolved
This post is more than 5 years old
2 Posts
0
1682
Assigning a policy VBA via command line
Hi,
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?
Tugay_c566c4
8 Posts
1
February 19th, 2016 06:00
Hi,
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
Regards
Tugay
ryan_gillan
2 Posts
0
February 21st, 2016 14:00
Thank you very much.
This was what I needed!
pankajpal
9 Posts
0
March 17th, 2016 06:00
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.