The following examples show how to use commands 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