> Hi everybody!
>
[quoted text clipped - 33 lines]
> Am I doing something wrong? Or are there other commands to reset the
> statistics?
Yes. You have to realize that the snapshot values that you see are
local to your particular instance attachment, as are the monitor
switch settings.
So, running the enableMon will create a new attachment (because it
runs in a separate ksh process than your command line shell),
enable the monitor switches and then exit. The monitor switches
for your current instance attachment are still set to the defaults.
Likewise, the 'resetStats' script does exactly the same thing --
creates a new attachment, resets the stats for that attachment,
and then exits.
The easiest way to do this is to set up shell aliases (put these
in your .profile).
alias monon='db2 update monitor switches using <...>'
alias resetmon='db2 reset monitor all ; db2 flush package cache dynamic'
alias snap='db2 get snapshot for application agentid $1'
# snap 102
Using the aliases lets the commands run within your existing shell
(and therefore the existing instance attachment).
Good luck,
Quasar - 23 Jan 2008 13:28 GMT
Thanks a lot Ian. Your explanation was really helpful and now the
stats are correct!
Thank you!
> Yes. You have to realize that the snapshot values that you see are
> local to your particular instance attachment, as are the monitor
[quoted text clipped - 21 lines]
>
> Good luck,