It is currently Mon, 25 Sep 2023 11:04:17 GMT



 
Author Message
 Needfull Things: after a script that monitors a sap log file for specific words
Hello

I am after a script that monitors a sap log file for specific words like
"spool full" or "user logged".  If these words are added to the
log file then I need the next word mailed to me as this usually means
there is a problem on a machine

Your thanks in advance!!!!!

Ulli



 Sat, 29 Apr 2006 00:44:40 GMT   
 Needfull Things: after a script that monitors a sap log file for specific words

If I understand you right, your problem is the monitoring part, not the
scan for specific words, so:

What about using the following construct:

   tail -f YOUR_LOG_FILE|YOUR_MAIL_SCRIPT

Inside YOUR_MAIL_SCRIPT, which I personally would write in awk or perl
(because of more flexibility), you check the standard input for the
offending lines and fire up an email.

Ronald



 Sun, 30 Apr 2006 14:48:55 GMT   
 Needfull Things: after a script that monitors a sap log file for specific words

Hi Ulli,

The information that you want is probably contained in the SAP
system log (SM21). You can monitor it in Unix using the command
'rslgview'. I believe that this command existed as far back as R/3
v3.x. I am not sure about the various options, but you can
try logging on as <sid>adm and typing 'rslgview -help'.
You might also try setting up email facilities from RZ20 (The
CCMS monitor), but I think that this is available from WASv6.20
(R/3 v47) and onwards only.

Finally, for SAP related questions try posting on 'www.sapfans.com'.

I think that this is much more of an SAP issue than a Unix
shell scripting one.

Best of Luck,
SAP BASIS Consultant



 Wed, 03 May 2006 21:59:45 GMT   
 
   [ 3 post ] 

Similar Threads

1. Needfull Things: script that monitors a sap log file for specific words

2. Find and replace specific word in file

3. How to substitute a specific word in text files

4. Check file for specific words

5. Script to Monitor Specific FIel system and send alert

6. how to monitor a specific file ?

7. How to get DHCPd to log to a specific file

8. Log file gzipping and numbering thing

9. Ignore specific hosts in log files ?

10. some things in my messags log file making me queasy


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software