Configuring Db2 fault monitor using the db2fm command

You can alter the Db2 fault monitor registry file using the db2fm command.

Here are some examples of using the db2fm command to update the fault monitor registry file:

Example 1: Update START_TIMEOUT

To update the START_TIMEOUT value to 100 seconds for instance DB2INST1, type the following command from a Db2 database command window:

   db2fm -i db2inst1 -T 100
Example 2: Update STOP_TIMEOUT

To update the STOP_TIMEOUT value to 200 seconds for instance DB2INST1, type the following command:

   db2fm -i db2inst1 -T /200
Example 3: Update START_TIMEOUT and STOP_TIMEOUT

To update the START_TIMEOUT value to 100 seconds and the STOP_TIMEOUT value to 200 seconds for instance DB2INST1, type the following command:

   db2fm -i db2inst1 -T 100/200
Example 4: Turn on fault monitoring

To turn on fault monitoring for instance DB2INST1, type the following command:

   db2fm -i db2inst1 -f yes
Example 5: Turn off fault monitoring

To turn off fault monitoring for instance DB2INST1, type the following command:

   db2fm -i db2inst1 -f no

On UNIX systems, to confirm that the fault monitor is no longer running for DB2INST1, type the following command :

   ps -ef|grep -i db2fmd

On Linux® systems, to confirm that the fault monitor is no longer running for DB2INST1, type the following command:

   ps auxw|grep -i db2fmd
The following sample output from the grep command shows that the fault monitor is still running on that instance:
   ps -ef|grep -i db2fmd
db2inst1 21430542 30867910   0 10:45:00  pts/3  0:00 grep -i db2fmd
db2inst1 39453016        1   0 10:38:27      -  0:00 /opt/IBM/db2/V11.5/bin/db2fmd -i svtdbm2 -m /opt/IBM/db2/V11.5/lib64/libdb2gcf.a

To turn off the fault monitor, type the following command as the instance owner:

   db2fm -i db2inst1 -D