Client Automation - SD Trigger sent slowly by SDServer
search cancel

Client Automation - SD Trigger sent slowly by SDServer

book

Article ID: 208486

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

SD Trigger are sent very slowly by SDServer on Scalability server

 

Environment

Client Automation - All version.

 

Cause

SDServer could take time to send a trigger to a machine when :
 
- it could not find it in the local cserver database
- it could not resolve the fqdn and short name to ipaddress
 
 
Example :
 
1- SDServer could not find machine COMP12345678 in cserver database
 
 
020221-17:59:22.2143201L|005700|000017ec|SDServer |SDServer |swjsscheduling.cpp |000821|INFO | Do trig the unit! , name=<COMP12345678> address=<COMP12345678.broadcom.com> CA=<>
020221-17:59:22.2144049L|005700|000017ec|SDServer |SDServer |sdsvrunit.cpp |000978|DETAIL | Query cserverM about data for F70094AA-6DC3-49AD-97F3-DA124B9F290D(F70094AA-6DC3-49AD-97F3-DA124B9F290D) PP12345678(.)
020221-17:59:22.2204257L|005700|000017ec|SDServer |cserverm | |000000|WARNING| Request failed with result=4
020221-17:59:22.2204591L|005700|000017ec|SDServer |SDServer |sdsvrunit.cpp |001052|WARNING| No data for F70094AA-6DC3-49AD-97F3-DA124B9F290D COMP12345678 in cserver
020221-17:59:22.2204872L|005700|000017ec|SDServer |SDServer |sdsvrunit.cpp |000796|WARNING| No address specified
020221-17:59:22.2205189L|005700|000017ec|SDServer |SDServer |swjsscheduling.cpp |000881|WARNING| Failed to get address for unit, use cached address COMP12345678.broadcom.com
 
 
2- Then it tries to resolve COMP12345678.broadcom.com and COMP12345678 but resolutions are failing :
 
020221-17:59:22.2205528L|005700|000017ec|SDServer |SDServer |sdsvrunit.cpp |000728|NOTIFY | Trigging COMP12345678(.) Address COMP12345678.broadcom.com HostUUID=F70094AA-6DC3-49AD-97F3-DA124B9F290D WOLCmd=N/A
020221-17:59:22.2212209L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|DETAIL | CCFOSGeneral::GetAddressFromNameEx: pszName: COMP12345678.broadcom.com
020221-17:59:22.2248667L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: GetAddrInfoW: 11001 for COMP12345678.broadcom.com
020221-17:59:22.2251349L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: GetAddrInfoW (IPv6): 11001 for COMP12345678.broadcom.com
020221-17:59:22.2252014L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: trying getaddrinfo(COMP12345678.broadcom.com)
020221-17:59:22.2274509L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: getaddrinfo: 11001
020221-17:59:22.2275603L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|DETAIL | CCFOSGeneral::GetAddressFromNameEx: COMP12345678.broadcom.com resolved to: <error>
020221-17:59:22.2275969L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|DETAIL | CCFOSGeneral::GetAddressFromNameEx: pszName: COMP12345678
020221-17:59:23.0852008L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: GetAddrInfoW: 11001 for COMP12345678
020221-17:59:23.9291946L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: GetAddrInfoW (IPv6): 11001 for COMP12345678
020221-17:59:23.9292771L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: trying getaddrinfo(COMP12345678)
020221-17:59:24.7727221L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: getaddrinfo: 11001
020221-17:59:24.7727863L|005700|000017ec|SDServer |cfOSServices |cfOSServices |000000|DETAIL | CCFOSGeneral::GetAddressFromNameEx: COMP12345678resolved to: <error>
020221-17:59:24.7728198L|005700|000017ec|SDServer |CFUtilities_Help|CFUtilities_Helper |000000|DETAIL | Lookup of COMP12345678.broadcom.com was not found from short name using COMP12345678

 
3- Then sdserver is asking the full list of computers in cserver local database. This step could take several seconds :
 
020221-17:59:24.7729943L|005700|000017ec|SDServer |cfUtilities |cfUtilities |000000|DETAIL | CFIMessage::getMessageXML: xmlmsg: <message version="1.0.0.0"><req_get_unit_list version="0.0.0.0"><unit_type>hardware</unit_type>
</req_get_unit_list></message>

020221-17:59:41.8105868L|005700|000017ec|SDServer |cfCafApi | |000000|ERROR | CTrigger::Trigg: SmSend failed, return code=0x33205
020221-17:59:41.8106278L|005700|000017ec|SDServer |SDServer |sdsvrunit.cpp |000762|ERROR | Unable to trig COMP12345678.broadcom.com
020221-17:59:41.8106586L|005700|000017ec|SDServer |SDServer |swjsscheduling.cpp |000885|ERROR | Unable to trig unit

 

Resolution

Set this parameter on Scalability server to avoid the third step which is taking very long time :
 
ccnfcmda -cmd SetParameterValue -ps itrm/common/messaging/session -pn SnFUseCAMNameRes -v 1
caf stop sdserver
caf start sdserver
 
 

Additional Information

In some environment, Name resolution attempts could take time when it fails :
 
170321-14:19:38.6512932L|005660|00000da8|SDServer |cfOSServices |cfOSServices |000000|DETAIL | CCFOSGeneral::GetAddressFromNameEx: pszName: COMP12345678
170321-14:19:57.9567838L|005660|00000da8|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: GetAddrInfoW: 11001 for COMP12345678
170321-14:20:40.4091142L|005660|00000da8|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: GetAddrInfoW (IPv6): 11001 for COMP12345678
170321-14:20:40.4093030L|005660|00000da8|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: trying getaddrinfo(COMP12345678)
170321-14:20:59.2681674L|005660|00000da8|SDServer |cfOSServices |cfOSServices |000000|INFO | CCFOSGeneral::GetAddressFromNameEx: getaddrinfo: 11001
170321-14:20:59.2683221L|005660|00000da8|SDServer |cfOSServices |cfOSServices |000000|DETAIL | CCFOSGeneral::GetAddressFromNameEx: COMP12345678 resolved to: <error>
 
 
In above example it takes 1m21s
Check DNS configuration on the scalability server or add the machines in local hosts file to avoid delay in name resolution.