How to display DB2 db2diag.log appended records using follow parameter

08 September,2014 by Tom Collins

Question: How can I view  db2diag.log entries as they are written? While I’m troubleshooting ,  I open the db2diag.log file and then press refresh to see the latest entries.

Answer: Use the db2diag –follow parameter to continuously display appended records as they appear in db2diag.log. The records continue to appear until you execute Ctrl + C.

  

Db2diag –f
Db2diag –follow 


More information on db2diag.log

db2diag.log file delete on Linux and DB2

db2diag.log file filling - DBA DB2

Analyzing a DB2 trap file - DBA DB2

 

 

Author: Rambler(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to display DB2 db2diag.log appended records using follow parameter

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright