Can a single Windows agent be deployed to multiple Windows hosts?
With a need to deploy a custom agent to 120+ hosts. This is possible by providing the right Compress file. For example, let's call this custom agent "MyAgent". Look at one of the Windows Compress file for the structure. The structure is the same as what is installed on a Windows client. For custom agent, you probably only need to have a script and World folder.
For example:
This zip file should be named as followed: <AgentName>.<Platform>.<Version>.fgl.zip
Where <Version> should be the current version of the FMS as a start.
MyAgent.Windows2003.v42.000.050608p.fgl.zip
script
|--MyAgent.script
World
|--DBVARS
|--MyAgent.ver
Take DBVARS from one of the Windows client Compress file for use here. Try specifying a version in MyAgent.ver to keep track of your own agent version. Let's say next time you update the agent, then you can create a new Compress file with the updated MyAgent.script and MyAgent.ver, and name this file: MyAgent.Windows2003.v42.000.yymmddp.fgl.zip where yymmdd stands for the date of the packaging, e.g.: MyAgent.Windows2003.v42.000.080513p.fgl.zip. That way, when you do setHostState, the new file will overwrite the old file because it is extracted based file name sort order.
Put this Compress file into server %FGLHOME%\Compress location, then call setHostState from server %FGLHOME%:
foglight setHostState <hostname> 4
Call setHostState for each Windows host to be updated. Try create a script to call setHostState for about 10 hosts at a time, then check the status of each host to make sure they are upgraded before calling setHostState for the next set of hosts. We can query for host status with this command:
%FGLHOME%\foglight dbexport -g infrastructure -t hosts -F host_status -Q host_name{<hostname>}
host_status: 1 = Foglight started, 2 = Foglight stopped, 3 = Ping fails, 4 = Foglight update in progress
We can also query for the cartridge version to make sure it is installed:
%FGLHOME%\foglight dbexport -g versions -t cartridges -F Version -Q "Host{HOSTNAME.EN} Name{MYAGENT.EN}"
The Version that is returned will be what was in MyAgent.ver file.
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy