Sm_AgentApi errors

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

Issue Description: 

See below errors in the webagent log

[ERROR] LLA: SiteMinder Agent Api function failed -'Sm_AgentApi_IsProtectedEx' returned '-1'.
[ERROR] LLA: SiteMinder Agent Api function failed - 'Sm_AgentApi_LoginEx' returned '-2'.
[ERROR] LLA: SiteMinder Agent Api function failed - 'Sm_AgentApi_LoginEx' returned '-1'.

Cause: 

Sm_AgentApi_LoginEx, is function call of agent. This function has -1 or -2 error code return.

*-1 means that webagent failed to communicate with the policy server

*-2 means connection timeout

 

'Sm_AgentApi_IsProtectedEx' is also a function call of agent to check whether accessed resource is protected or not.

Error code return:-

*-1 indicates that the Policy Server could not be reached.

*-2 indicated Policy Server connection is timeout.

These are quite generic error messages. These basically indicate that..

a)    either the Policy Server was down

b)    *OR* was not responding to the agent due to being busy and lack of resources and as a result the agent request timeout occurs

c)    The agent request is not reaching to the policy server or the request is timing out, due to network latency.

 

Resolution:

1. Please verify if the corresponding policy server was too busy or lacking resources during these error timeframe and also check if was there were any network issues, due to which agent could not communicate with policy server and logged these errors.

2. Also in order to accommodate network latency, you can increase the value of "AgentWaitTime" parameter in the Agent configuration (ACO).

For more information on this parameter, refer below documentation link:-

https://docops.ca.com/ca-single-sign-on-12-52-sp1/en/configuring/web-agent-configuration/basic-agent-setup-and-policy-server-connections#BasicAgentSetupandPolicyServerConnections-AccommodateNetworkLatency

 

Additional Information: Also refer KB Article: -TEC1227692

http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1227692.aspx