ryan_gillan
1 Copper

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?

Tags (1)
0 Kudos
3 Replies
Highlighted
Tugay
1 Copper

Re: Assigning a policy VBA via command line

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
1 Copper

Re: Assigning a policy VBA via command line

Thank you very much.

This was what I needed!

0 Kudos
pankajpal
1 Nickel

Re: Assigning a policy VBA via command line

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.

0 Kudos