This post is more than 5 years old
23 Posts
0
1802
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.
mkeil
68 Posts
1
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.
mkeil
68 Posts
1
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
Mat Loe
23 Posts
0
October 6th, 2016 01:00
Thanks for the answer.
Makes sense to do it from the VBA appliance. What command should I look for?
Mat Loe
23 Posts
0
October 6th, 2016 03:00
Perfect, exactly what I needed.
Thanks