The agent consists of resource type definitions and agent executables. The agent executables are organized into online, offline, monitor, and clean functions.
Table: DB2 agent functions lists the DB2 agent functions.
Table: DB2 agent functions
Agent operation
|
Description |
Online
|
Starts the DB2 database process by using the following command:
db2start
|
Offline
|
Stops the DB2 database process with the specified options by using the following command:
db2stop
|
Monitor
|
Verifies the status of the DB2 database server processes. The DB2 agent provides two levels of monitoring: basic and detail.
|
imf_init
|
Initializes the agent to interface with the AMF kernel driver, which
is the IMF notification module for DB2 agent. This function runs
when the agent starts up. |
imf_
getnotification
|
Gets notification about resource state changes. This function runs
after the agent initializes with the AMF kernel module. This function
continuously waits for notification and takes action on the resource
upon notification. |
imf_register
|
Registers or unregisters resource entities with the AMF kernel
module. This function runs for each resource after the resource
goes into steady state (online or offline). |
Clean
|
Forcibly stops the DB2 database by using the following command:
db2stop force
If the process does not respond to the db2stop force command, then the agent does the following:
Scans the process table for the processes that are associated with the configured instance
Kills the processes that are associated with the configured instance
Cleans the IPC resources that the DB2 instance creates using the ipcclean utility provided by DB2
|