Agent functions

Online 

Creates an empty file with the specified name, unless one already exists. 

Monitor 

Checks for the specified file. If it exists, the agent reports as online. If it does not exist, the resource faults.  

Clean 

Terminates all ongoing resource actions and takes the resource offline, forcibly when necessary.