Controls the DB2® fault
monitor daemon. You can use db2fm to configure
the fault monitor.
This command
is available on UNIX and Linux operating systems.
Authorization
Authorization over the instance
against which you are running the command.
Command syntax
>>-db2fm--+- -t--service--+-- -m--module path------------------->
'- -i--instance-'
>--+--------------+--------------------------------------------><
+- -u----------+
+- -d----------+
+- -s----------+
+- -k----------+
+- -U----------+
+- -D----------+
+- -S----------+
+- -K----------+
+- -f--+-on--+-+
| '-off-' |
+- -a--+-on--+-+
| '-off-' |
+- -T--T1/T2---+
+- -l--I1/I2---+
+- -R--R1/R2---+
+- -n--email---+
+- -h----------+
'- -?----------'
Command parameters
- -m module-path
- Defines the full path of the fault monitor shared library for
the product being monitored. The default is $INSTANCEHOME/sqllib/lib/libdb2gcf.
- -t service
- Gives the unique text descriptor for a service.
- -i instance
- Defines the instance of the service.
- -u
- Brings the service up.
- -U
- Brings the fault monitor daemon up.
- -d
- Brings the instance down.
- -D
- Brings the fault monitor daemon down.
- -k
- Kills the service.
- -K
- Kills the fault monitor daemon.
- -s
- Returns the status of the service.
- -S
- Returns the status of the fault monitor daemon. The status of
the service or fault monitor can be one of the following
- Not properly installed,
- INSTALLED PROPERLY but NOT ALIVE,
- ALIVE but NOT AVAILABLE (maintenance),
- AVAILABLE, or
- UNKNOWN
- -f on | off
- Turns fault monitor ON or OFF. If this option is set off,
the fault monitor daemon will not be started, or the daemon will exit
if it was running.
- -a on | off
- Activates or deactivates fault monitoring. If this option if set
to OFF, the fault monitor will not be actively monitoring,
which means if the service goes down it will not try to bring it back.
- -T T1/T2
- Overwrites the start and stop time-out.
For example:
- -T 15/10 updates the two
time-outs
- -T 15 updates the start
time-out to 15 secs
- -T /10 updates the stop
time-out to 10 secs
- -I I1/I2
- Sets the status interval and time-out.
- -R R1/R2
- Sets the number of retries for the status method and action before
giving up.
- -n e-mail
- Sets the email address for notification of events.
- -h | -?
- Displays command usage help.
Usage notes
- If you want to set up email notifications to be sent by the fault
monitor daemon, you must have SMTP running on the local host. The DB2
fault monitor does not have a setting for specifying the SMTP server.
In order for the fault monitor to send email notifications, you have
to bind the hostname to the SMTP server, or, as a workaround, make
the hostname an alias of the localhost in the /etc/hosts file.