This post is more than 5 years old
2 Intern
•
247 Posts
0
1894
August 21st, 2018 07:00
Migrating DT/LT clients to new Avamar grids
Hi all,
I've approached the limits of my Avamar expertise, so could use some help with the following
I've inherited two Avamar 6.1 grids that are in dire need of a tech refresh. To this purpose, we've installed several newer virtual grids. I'm now in the process of migrating roughly 5000 DT/LT clients from the old grids to the new grids. This is where I run into two challenges:
- There was no real client management on the old grids, resulting in a large amount of clients that no longer exist. I would like to clean up all the clients that haven't contacted the grid in >2 months. To my knowledge, MCCLI and the GUI don't really allow you to delete or retire clients based on just the last contact date. Does anyone have specific scripts for this? I'd like to do a "if client hasn't contacted grid in 2 months, retire client".
- Using the enterprise manager, I've managed to move a large amount of active clients. Unfortunately, moving the clients is a manual, bulk task. If a client is offline, the move fails. This means that I run into a challenge where a client could be briefly online and contacting the Avamar, but I might not have a move active. Is there a way to persistently advertise to clients they should move to a new Avamar, without having to periodically trigger a move and hope for the best? Something like a HTTP 301 "permanently moved" sign...
Cheers!
Jon
No Events found!
ionthegeek
2 Intern
•
2K Posts
1
August 21st, 2018 09:00
The easiest way to handle (1) is probably using mcdb to generate a list of clients, then using a short script to call mccli client retire on each client in the list.
To get into mcdb, you can use:
psql -p 5555 mcdb
Note that you should only run SELECT calls and only use the views (anything that starts with v_). Modifying the database could cause severe problems on the system.
A SELECT like this should give you something like the client list you need:
SELECT full_domain_name, checkin_ts FROM v_clients where (checkin_ts < '2018-06-01' AND checkin_ts > '1970-01-01') ORDER BY full_domain_name;
We're setting checkin_ts > '1970-01-01' here because VMware Image clients do not check in and we don't necessarily want to retire them. If the systems don't have VMware Image clients, you can drop this condition.
You may want to tinker with the query a bit to do things like check if the client is enabled, registered, etc.. You can get a description of the information available in the client view by running the following at the psql prompt:
\d v_clients
For (2), I don't know of an easy way to do this.
JonK1
2 Intern
•
247 Posts
0
August 22nd, 2018 07:00
Thanks Ian! I'll give this a go tomorrow, and will let you know how it turns out!
ionthegeek
2 Intern
•
2K Posts
1
August 28th, 2018 06:00
Glad to hear that did the trick. My pleasure!
JonK1
2 Intern
•
247 Posts
0
August 28th, 2018 06:00
Slightly delayed, but this works brilliantly. Thanks again Ian Anderson !