Why my Linux machines take several minutes to shutdown ?

Document ID : KB000107458
Last Modified Date : 20/07/2018
Show Technical Document Details
Issue:
When the Linux machine is connected to the network it can take one minute to shutdown but if it's offline it can take several minutes.
Environment:
CA Client Automation - All versions
Unix and Linux systems
Cause:
When the system shuts down, a Jobcheck runs before stop CAF to connect to the Scalability Server to see if there are pending jobs marked to "run at shutdown" that is a feature only for Unix/Linux systems.
If the machine if offline, it does several retries every minute.
Resolution:
The shutdown time can be reduced by customizing the retries done by the Jobcheck if the machine is offline with the following configuration parameters under DSM > Software Delivery > Agent:
 
-Communication: Maximum number of initial retries (Unix) = 1
-Communication: Maximum number of retries (Unix) = 0

Important: setting the initial retries parameter to 0 will prevent even the initial connection so no job will be executed even if the machine is online as the first connection will not be done.

Both parameters are set to 3 by default.

The following Idea has been raised at the Communities to avoid the Jobcheck at shutdown completely if the "run at shutdown" is not used in the environment:

https://communities.ca.com/ideas/235740387-remove-jobcheck-at-shutdown-to-speed-up-linux-machines-shutdown