Unsolved
This post is more than 5 years old
1 Rookie
•
11 Posts
0
4826
February 19th, 2015 08:00
how to control client activation on a client
Hello,
On my production, I need to control on each client, if avamar is active : I need a comand line to launch on the client.
I test options of avtar and avagent comand but I don't find...
All my 5500 clients are physical machines on 2K3 or 2K8 windows.
My grids are on 7.0.2
Clients agents are on 7.0.102-47
Tks
No Events found!


SteveK821
2 Intern
•
153 Posts
0
February 23rd, 2015 06:00
Hi,
you can try the Process Utilities from Windows SysInternals
https://technet.microsoft.com/en-us/sysinternals/bb795533
Something like psservice can query if a certain service is running. The Avamar Client service in Windows is called "Backup Agent"
I tried it on my local client:
C:\Temp\PSTools>psservice query "Backup Agent"
PsService v2.24 - Service information and configuration utility
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
SERVICE_NAME: avbackup
DISPLAY_NAME: Backup Agent
The EMC Avamar Agent backs up data to a central server
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE,NOT_PAUSABLE,ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0 ms
You can also use it to query remote computers. So that should be scriptable. The actual process is called avagent.exe. You could also use "pslist [\\computername] avagent" to see if it is running.
This will not tell you if the client is activated to an Avamar server, just if the client service is running. But you can check that in C:\Program Files\avs\var\avagent.cfg and look for the --mcsaddr entry.
Regards,
Stephen
WilliamEI
1 Rookie
•
11 Posts
0
February 24th, 2015 06:00
Thanks for your answer.
But If process "Backup Agent" is runing, client can be activated, or not...... I've tested it :
- activation of a client
- put on RETIRED this client, on the grid
on the client, process is always running and information is the same...
But there is a difference on the little icon is the right tool bar of the client, because the little green slash has disappeared...
I would like to know with a command line how to have the history of this green slash
SteveK821
2 Intern
•
153 Posts
0
February 24th, 2015 08:00
As I mentioned above, that command only says if the Avamar Client is installed. Not if it is activated.
Look for the C:\Program Files\avs\var\avagent.cfg file
A freshly installed Avamar Client that has not yet been activated will not have this file.
If the file exists, it will show you the Avamar server to which it is registered (--mcsaddr=[avamar-server-name])
Not sure what a retired client would look like.
WilliamEI
1 Rookie
•
11 Posts
0
February 27th, 2015 02:00
thanks for your answer.
What do you think about this solution ?
On each client, once a day, a script will control avs/var/avagent*.log files (actual and ROTATE file)
if we don't have sentence "Registration /*/ successful" , we have an alert (PATROL or another script will re-activate)
what do you think about that ??
SteveK821
2 Intern
•
153 Posts
0
February 27th, 2015 03:00
Hi,
that should be OK, but you should test it first.
But if you want to check if a registered client is no longer checked in to Avamar, you can just run the Avamar report "Client - No Check Ins" and define the timeframe.
You can also install the ODBC plugin to use Excel and MS Query to query the MCDatabase directly using the viewuser credentials and create your own custom reports. Then look for the check-in timestamp to see when a client last checked in with Avamar. Clients normally check in with Avamar once an hour, on the hour (or just after it).
Regards,
Stephen