Symantec Access Management

Expand all | Collapse all

4.x custome agent API behaviour

Jump to Best Answer
  • 1.  4.x custome agent API behaviour

    Posted 02-12-2016 10:09 AM

    Hi All,

     

    From our documentation (SDK C-library wiki.ca.com) this is the call sequence for a custom agent:

     

    Sm_AgentApi_GetConfig() // Required with central host configuration

    Sm_AgentApi_Init()

    Sm_AgentApi_SetAgentInstanceInfo() For agent discovery (12.5 agents and later)

    Sm_AgentApi_SetDefaultAgentId() // Central host configuration only

    Sm_AgentApi_DoManagement()

    Sm_AgentApi_IsProtected()

    Sm_AgentApi_Login()

    Sm_AgentApi_Authorize()

    // . . .

    // Call other Agent API functions here, including

    // periodic calling of Sm_AgentApi_DoManagement()

    Sm_AgentApi_Logout()

    Sm_AgentApi_Uninit()

     

    Could you please assure me that in a 4.x version of custom agent any function DOES NOT call into its body the function Sm_AgentApi_Init?

     

    I would be assured that for example INSIDE the Sm_AgentApi_DoManagement (or any other ones) BODY there is NO any call to Sm_AgentApi_Init.

     

    Really thanks in advance,

     

    Vito



  • 2.  Re: 4.x custome agent API behaviour
    Best Answer

    Posted 02-13-2016 07:54 AM

    Hi Vito,


    I can confirm this. No other functions call Init() within it.


    Let me know if you have any other concerns?


    Cheers,

    Ujwol Shrestha 



  • 3.  Re: 4.x custome agent API behaviour

    Posted 02-15-2016 12:03 AM

    Hi Vito,

     

    Some of the old document mentioned

     

    "applications should not call init and unInit more than once in their lifetime"

     

    SAP Portal Services

     

    Therefore, Sm_AgentApi_Init should not be called within the function.

     

    Regards,

    Kar Meng



  • 4.  Re: 4.x custome agent API behaviour

    Posted 02-15-2016 09:52 AM

    All,

     

    thanks for your prompt answers.

     

    The question came from a customer site where it seemed a custom agent switched connection to Policy Servers with no apparent reasons. So I was convincing the customer that the only point where sdk set the connection (managing a round robin or failover based on nFailover parameter) in inside Sm_AgentApi_Init.

     

    Again thanks,

     

    Vito