How can I schedule the Asset Management agent execution along several hours to avoid the network flooding at the beginning of the day?

Document ID : KB000011921
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

I have thousands of computers in my installation distributed in small sites, most of them without a local scalability server. I want to avoid the simultaneous execution of the AM agent at the beginning of the day when the computers are booted.

Question:

How can I schedule the Asset Management agent execution along several hours to avoid the network flooding at the beginning of the day?

Environment:
Client Automation 12.9, Client Automation 14.0
Answer:

The following commands should be run on each and every computer running the asset management agent: 

 

* caf noauto amagent 

* ccnfcmda -cmd SetParameterValue -ps itrm/common/caf/plugins/amagent -pn loadonstartup -v 0 

 

And the following configuration policy values should be applied also to all of them:  

In the example here below, a new policy named 'AgentDemand' has been created to hold the new settings:

* Starting hour: 09:00h

* Time to run the agent: 300 minutes (09:00h + 300m = 14:00h)

 

According to that, set the following values: 

 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/General/CAF: enable registration on startup = False 

------ 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Refresh Location Aware/CAF Scheduler: Hour = 9 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Refresh Location Aware/CAF Scheduler: Random minutes = 300 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Refresh Location Aware/CAF Scheduler: Type of Job = 'day random' 

------ 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Registration refresh scheduled job/CAF Scheduler: Hour = 9 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Registration refresh scheduled job/CAF Scheduler: Random minutes = 300 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Registration refresh scheduled job/CAF Scheduler: Type of Job = 'day random' 

------ 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Run the UAM agent/CAF Scheduler: Hour = 9 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Run the UAM agent/CAF Scheduler: Random minutes = 300 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Run the UAM agent/CAF Scheduler: Type of Job = 'day random' 

------ 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Run the UAM agent in USD hint mode/CAF Scheduler: Hour = 9 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Run the UAM agent in USD hint mode/CAF Scheduler: Random minutes = 300 

/Domain/Control Panel/Configuration/Configuration Policy/AgentDemand/DSM/Common Components/CAF/Scheduler/Run the UAM agent in USD hint mode/CAF Scheduler: Type of Job = 'day random' 

 

Additional Information:

Having these settings configured, at each boot, caf (Common Application Framework) will start and will change the 'Last Agent Run' value, but the Asset Management plugin will not start, so no inventory collection modules will be executed. 

That is why, in the 'All Computers' listing the 'Last Agent Run' appears updated to the boot time. 

In order to check if the inventory collection modules last execution time, you should go to the following DSM Explorer locations and check them: 

 

/Domain/Computers and Users/All Computers/{Group Details}/Configuration/Collect Tasks/Inventory Configuration 

/Domain/Computers and Users/All Computers/{Group Details}/Configuration/Collect Tasks/Software Inventory Configuration 

/Domain/Computers and Users/All Computers/{Group Details}/Configuration/Collect Tasks/User Template Configuration