errpt grep

Hi All,

I have multiple error on my AIX 53. How do I trim the report per date only?

Please help.

Thanks,
itik

Hi,

you may use the flags -s <startdate> -e <enddate> to create a report for a specific timewindow:

errpt -s 0602000008 -e 0602235908

reports only errors from yesterday (2nd June).

This one really helped me to look at my issues. Is there a way to script this and output it to a file?

What would be the goal of that script? Caputre all errors which occured today until now and store that info somewhere?

errpt -s `date +%m%d0000%y` >/path/to/logfile

In case you need a different date this link may help:http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html