db2top -i

In today’s post, I look at using the -i option to control the rate at which db2top issues snapshots.

The db2top tool periodically takes snapshots of the database state and updates the screen with the new information. How often these updates occur defaults to two seconds, but can be overridden by the user by specifying the -i option on the command line. The -i option takes an argument that is a number between 1 and 732,809,467,527,166 that represents the amount of time in seconds for db2top to wait between snapshots. Specifying a number outside of this range results in the following error message:

*************************************************************************
***                                                                   ***
*** Error: Time interval can NOT be less than 1 second                ***
***                                                                   ***
*************************************************************************