The following sections describe different ways to build an agent, using the "FileOnOff" resource as an example. For test purposes, instructions for installing the agent on a single system are also provided.
The examples assume:
VCS is installed under /opt/VRTSvcs by default. If your installation directory is different, change VCS_HOME accordingly.
You have created a FileOnOff type definition file.
Note the following about the FileOnOff agent entry points. A FileOnOff resource represents a regular file.
The FileOnOff online entry point creates the file if it does not already exist.
The FileOnOff offline entry point deletes the file.
The FileOnOff monitor entry point returns online and confidence level 100 if the file exists; otherwise, it returns offline.