Agent Call Sequence
A custom agent usually calls Agent API functions in the in the following order:
sm1252sp1
A custom agent usually calls Agent API functions in the in the following order:
Sm_AgentApi_GetConfig() // Required with central host configurationSm_AgentApi_Init()Sm_AgentApi_SetAgentInstanceInfo() For agent discovery (12.5 agents and later)Sm_AgentApi_SetDefaultAgentId() // Central host configuration onlySm_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()