Adding a custom verification method

You may want to add a custom verification method to check for a particular issue on your cluster. For example, you could add a script to check for the version of an application. You could include an error message for display and to write to the clverify.log file.

About this task

Note: During node startup, automatic verification and synchronization does not include any custom verification methods.

To add a custom verification method, complete the following steps:

Procedure

  1. From the command line, enter smit sysmirror
  2. In SMIT, select Problem Determination Tools > PowerHA SystemMirror Verification > Configure Custom Verification Method > Add a Custom Verification Method and press Enter.
  3. Enter the field values as follows:
    Table 1. Add a Custom Verification Method fields
    Field Value
    Verification Method Name Enter a name for the verification method. Method names can be up to 64 alphanumeric characters. Do not use the word "all," as this is a keyword indicating that all custom verification methods are to be run.
    Verification Method Description Enter a short description of the verification method.
    Verification Type Select Script if the type of verification method you want to use is a script. Select Library if the type of verification method you want to use is a library that was built with an API.
    Verification Script Filename Enter the file name for the verification method that is executable.
  4. Press Enter. The method is added to the list of verification methods you can use when you select the PowerHA® SystemMirror® Verification option under the Problem Determination Tools menu.