Eric,
I am curious, are you doing real-time error/event reporting, or just making
a log of these errors to be reported, perhaps, once a day?
However, I would strongly recommend the SQL SELECT command upon the ACTLOG
table. Here is an example of one I use to report a daily status via E-mail
to us ADSM administrators. It reports all previous day messages and up to
the time it runs at 7:00am in the morning. Notice that I filter out some of
the noise messages (and I keep thinking I am going to add to this). The
results of this output is piped to a dataset that is then E-mailed. Hope
this helps.
select (char(date(date_time)),5) as date, time(date_time) as time, message
from actlog where date(date_time)>=current date - 1 day and severity<> 'I'
and msgno not in (0422,0482,0944,2034,2166,2904,2940)'
The output looks something like this (look at it in fixed font format):
DATE TIME MESSAGE
----- --------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------
----------------------------------------------------------
09-01 02:12:53 ANR0530W Transaction failed for session 2089 for node
09-01 02:12:53 ANR0530W Transaction failed for session 2089 for node
DCPP100 (WinNT) - internal server error detected.
Mark Mapes
PG&E
> ----------
> From: Eric Tang[SMTP:tangeric AT HK1.IBM DOT COM]
> Reply To: ADSM: Dist Stor Manager
> Sent: Wednesday, September 02, 1998 12:15AM
> To: ADSM-L AT VM.MARIST DOT EDU
> Subject: ADSM Error message on Console
>
> I am running AIX ADSM v2 server. "dsmadmc -id=admin -pa=admin -con" is run
>
> under a unix telnet session, capture all the messages and alert messages
>
> with suffix "E" to operator with the help of a OS/2 console monitoring s/w
>
>
>
> I am now testing v3 server. If I issue a wrong command under my dsmadmc
>
> session eg "q",error msg will prompt at my dsmadmc session & console:
>
> "ANR2021E Query: Missing subcommand keyword."
>
> Or "q pro" while there is no process running:
>
> "ANR0944E Query Process: No active processes found."
>
>
>
> In V2, these messages only display at my dsmadmc session but not console.
>
> And this is good as these are non-critical messages while console only
>
> capture the critical ones (eg tape I/O error) and operators can get alert
>
> I try "end eventlogging console" and it stops those non-critical messages
> & all other error messages from console.
>
> I think I can use "disable event console" but there needs to disable each
> unwanted
> messages one by one.
>
> Question: is there easy way to get the same console message handling
> effect
> as in v2?
>
> Regards,
> Eric Tang / Hong Kong / IBM @ IBMHK
> Technical Services, Strategic Outsourcing,
> IBM Greater China Group
> Tel: (852)-2105-2119, Fax: (852)-2861-2493
> Notes: Eric KF Tang/Hong Kong/IBM@IBMHK
> Internet : tangeric@ hk1.ibm.com
>
|