You can run the info agent function to return database information. In this example, the info agent function retrieves the database information.
To retrieve database information
# haconf -makerw
# hatype -modify Db2udb InfoInterval 300
In this command, Db2udb is the name of the DB2 resource type. InfoInterval 300 is the duration (in seconds) after which the info agent function executes the info script. The script gets the information of the processes that the agent monitors.
The value needs to be overridden at the resource level using the following command:
# hares -override db2udb3_2 InfoInterval
Note that ResourceInfo refreshes every 300 seconds (five minutes), since you set the InfoInterval to 300 in the previous step.
# hares -value db2udb1 ResourceInfo State Valid Msg PARTITION: 0 PID TTY TIME CMD 413924 - 0:00 db2sysc TS Fri Jan 14 18:11:52 2011
# haconf -dump -makero