Previous  |  Next  >  
Product: Cluster Server Guides   
Manual: Cluster Server 4.1 Agent Developer's Guide   

Using the VCS Engine Process

When the VCS engine process "had" becomes active on a system, it automatically starts the appropriate agent processes, based on the contents of the configuration files. A single VCS agent process monitors all resources of the same type on a system.

After the VCS engine process is active, type the following command at the system prompt to verify that the agent has been started and is running:


 haagent -display resource_type

For example, to test the Oracle agent, type:


 haagent -display Oracle

If the Oracle agent is running, the output resembles:


#Agent Attribute    Value
Oracle AgentFile
Oracle Faults     0
Oracle Running    Yes
Oracle Started    Yes

Test Commands

The following examples show how VCS commands can be used to test the agent:

  • To activate agent debug messages for C++ agents, type:

  •    hatype -modify resource_type LogDbg -add DBG-AGINFO 
  • To check the status of a resource, type:

  •    hares -display resource_name
  • To bring a resource online, type:

  •    hares -online resource_name -sys system
    This causes the online entry point of the corresponding agent to be called.
  • To take a resource offline, type:

  •    hares -offline resource_name -sys system
    This causes the offline entry point of the corresponding agent to be called.
  • To deactivate agent debug messages for C++ agents, type:

  •    hatype -modify resource_type LogDbg -delete DBG-AGINFO

 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 Agent Developer's Guide  
VERITAS Software Corporation
www.veritas.com