How to invoke db2top in batch mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sansaniwal12
    New Member
    • Sep 2007
    • 4

    How to invoke db2top in batch mode

    I have installed db2top on solaris 10 and i trying to run db2top in batch mode. I tried with following option for batch mode:

    db2top -d UBIS -u db2das -p db2das -i 3 -b l -X -o db2top.xml -m 10

    But still this utility runs in interactive mode.

    could someone suggest me how can i run db2top in batch mode.

    Best Regards,
    Deepak Sansaniwal
  • niladri123
    New Member
    • Dec 2007
    • 8

    #2
    please read the following details [from the manual]

    db2top can be run in replay mode, which means it can be
    run against a saved copy of the raw binary snapshot data.
    In order to do so, db2top must be run first in data collector
    mode, either in batch mode by running db2top from
    the command line with the [−C] switch, or by activating/
    deactivating data collection from an interactive session
    by pressing C. This will create a file
    <db2snap−<Machi ne> in the current directory. Afterwards,
    db2top can be ran against <db2snap−<Machi ne> by using the
    [−f <db2snap−<Machi ne> arguments. db2top does not need to
    attach to DB2 in replay mode, which makes convenient to do
    remote monitoring. The stream will only contain the lock
    information if the −x option has been used at collection
    time.

    Comment

    Working...