Start a Conversation

Unsolved

This post is more than 5 years old

4091

January 22nd, 2018 12:00

Automate retire clients

Hi we are trying to automate retire clients from Avamar and need so guidance

Is there any best way to see where the client exsists in Avamar

EX:

mccli client show  --name= /clients/myclient

instead of this any syntax to see where this client sits(which domain its in ) and pull that information and  then run

mccli client retire --name=String and --expiration(How can we pick standard retain local backups with existing expiration dated ) like we do in GUI

Any guidance will help me a lot.

Thanks a lot for you help

2 Intern

 • 

148 Posts

January 23rd, 2018 08:00

You can use

mccli client show --domain=/ --recursive=true

which will list all clients in all Domains. It will also list the Domain for each client. You can also include the --verbose=true and it will list other details including activation and check-in dates (similar to the GUI List Policy -> Clients)

To retire a client keeping the existing expiration dates, leave out the --expiration parameter. I just tried this on an old client using just domain and name and it worked.

Have you considered using Avamar Client Manager? (https://[your-avamar-server]/aam). You need to log in as MCUser

Regards,

Stephen

70 Posts

February 6th, 2018 06:00

thanks a lot Stephen that works for me now i used Grep to get to the client i am looking for and it worked great.

Now my problem is how can i ssh from one of my linux server to Avamar and run this command as this is automation i need enable SSH keys on Avamar?

Thank you.

2 Intern

 • 

148 Posts

February 7th, 2018 04:00

On Avamar you could add your linux-user's SSH key to:

/home/admin/.ssh/authorized_keys

2 Intern

 • 

2K Posts

February 7th, 2018 07:00

Please keep in mind that making changes to the SSH keys and configuration is not supported. If you have to contact support for any reason, they may require you to revert these changes.

If you want a supported mechanism for running MCCLI, there is an MCCLI installer package designed to be installed on an external RHEL or SLES system. This is the recommended approach.

70 Posts

April 20th, 2018 10:00

MCCLI installer package  not able to find this package in emc portal do we have any links for that i search Avamar rest API also shows up empty.


Thank you

70 Posts

April 20th, 2018 10:00

i think i found it i am not looking at right place its on Avamar server itself thank you

2 Intern

 • 

498 Posts

April 27th, 2018 14:00

Client Manager - so much easier

No Events found!

Top