Start a Conversation

Unsolved

This post is more than 5 years old

1682

February 14th, 2016 21:00

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?

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

February 21st, 2016 14:00

Thank you very much.

This was what I needed!

9 Posts

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.

No Events found!

Top