Previous Topic: Sm_AgentApi_MakeCertificateHash()Next Topic: Sm_AgentApi_SetDefaultAgentId()


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.

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