The resource agents repository (and hence, any installed resource agents package) contains a utility named
ocf-tester. This shell script allows you to conveniently and easily test the functionality of your resource agent.
ocf-tester is commonly invoked, as
root, like this:
ocf-tester -n <name> [-o <param>=<value> ... ] <resource agent>
<name>is an arbitrary resource name.
- You may set any number of
-ooption, corresponding to any resource parameters you wish to set for testing.
<resource agent>is the full path to your resource agent.