Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1802

October 5th, 2016 05:00

How to assign a VBA policy to a VM via command line?

Hello,

As far as I know we can assign a VBA policy to a VM (or the other way round) either by using NMC (in configuration\VMWare View) or via vSphere Web Client\EBR.

Is there another - faster - way of doing it ?

By command line maybe? If so, which command should I use?

Thanks for sharing.

68 Posts

October 6th, 2016 02:00

The following command adds a client to a group (policy):

mccli group add-client --domain=/VCENTER/VirtualMachines --name="POLICY NAME" --client-domain=/VCENTER/VirtualMachines --client-name=VMNAME

To show all groups:

mccli group show --domain=/VCENTER/VirtualMachines

or mccli group show --recursive

To show all clients:

mccli client show --recursive

You can find an mccli guide in the Avamar Documentation Portfolio.

68 Posts

October 6th, 2016 00:00

Hello,

you can add clients via Avamar CLI directly on the VBA - but I only do this when doing troubleshooting/some testing.

Maybe there is something new with NW9, have not checked it yet (nsrpolicy group create vmware).


Regards

mkeil

23 Posts

October 6th, 2016 01:00

Thanks for the answer.

Makes sense to do it from the VBA appliance. What command should I look for?

23 Posts

October 6th, 2016 03:00

Perfect, exactly what I needed.

Thanks

No Events found!

Top