View Single Post

   
  #3 (permalink)  
Old 01-05-2008, 09:30 AM
Mike
 
Posts: n/a
Default Re: Scanning AIX error log for only previous 24 hours errors

On 2006-05-11, Jones <huy_jones@hotmail.com> wrote:
> Guys!!
>
> I am try to build up a shell script which scans for permenant hardware
> errors in AIX error log and mail to specific users about these errors!!
>
> i have nearly succeded in doing so , but stuck up at one step...
>
> See , i am using errpt -s command with current date/time of system (
> and this date/time is off course is the system time at which the script
> is run by cron)....
>
> problem is that how can i insert date value of 24 hours back ( from
> current system time ) with errpt -s .... as i want to scan for only
> those errors which arrive in last 24 hours only....
>
>
> Does somebody help me for providing any way to scan for errors in last
> 24 hours only..
>
> Thanks in advance
>
> Jones
>


Are you using a shell script?

#!/bin/sh

TZ=-24
d=`date '+%y%m%d%H%M%S'`

*** Posted via a free Usenet account from http://www.teranews.com ***
Reply With Quote