Sm_AgentApi_SetAgentInstanceInfo()

Sets the agent instance information specified in the agent discovery data structure. All values in the Sm_AgentApi_AgentDiscovery_t are initialized to "unknown". Call this function after Sm_AgentApi_Init() to set the values of these attributes when you want the agent to come under the purview of agent discovery.
casso127
Sets the agent instance information specified in the agent discovery data structure. All values in the Sm_AgentApi_AgentDiscovery_t are initialized to "unknown". Call this function after Sm_AgentApi_Init() to set the values of these attributes when you want the agent to come under the purview of agent discovery.
Syntax
int SM_EXTERN Sm_AgentApi_SetAgentInstnaceInfo (
   const void*                            pHandle,
   Sm_AgentApi_AgentDiscovery_t*          arrParams[]
   int               nCount             
);
Parameter
I/O
Description
pHandle
I
Agent API session handle returned in parameter
ppHandle
of Sm_AgentApi_Init().
arrParams[]
I
Array containing name/value pairs of attributes for the agent instance.
nCount
I
Number of elements in the array of attributes.
Return Values
  • SM_AGENTAPI_YES. The resource is protected.
  • SM_AGENTAPI_NO. The resource is not protected.
  • SM_AGENTAPI_NOCONNECTION. The initialization was not done.
  • SM_AGENTAPI_FAILURE. The server could not be reached.
  • SM_AGENTAPI_TIMEOUT. The function timed out.