I want my box, V5R4, to send me an email when we get specific messages.
Since we use a product to email specific spool files I was hoping there was
a way to generate a spool file when a specific message comes up.
Any ideas?
Thanks!
Regards, Chuck
--
All comments provided "as is" with no warranties of any kind
whatsoever and may not represent positions, strategies, nor views of my
employer
First, "monitoring messages" may mean different things on System i. For
example see the MONMSG CL command.
One thought - check into using the QSYSMSG message queue. A monitor
(batch) job could receive messages from the queue (eg using RCVMSG CL
command), or could process them with a break handling program.
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rbam6/qsysm.htm
In the link labeled "Messages sent to QSYSMSG message queue", there
appear to be messages involving disk unit problems. When a message of
interest is detected, the program could (for example) create a spool
file containing the message in it (eg using a print file). Or for a
simpler (fixed content) spool file, a command like CPYF ..
TOFILE(*PRINT) could be used.
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rbam6/bhprg.htm
--
Karl Hanson
We use a "never ending program" (in command language) that is waiting
for messages on qsysmsg, and when a message is received than it's past
to a list of programs:
the first of them send us a mail (the text from the message is formatted
using rpg) using "sendmail" (from Uzaemon),
the second program searches in a file ("chain" :-) for a specific
program related to message id.
HTH
Stefano P.
--
"Niuna impresa, per minima che sia,
può avere cominciamento e fine senza queste tre cose:
e cioè senza sapere, senza potere, senza con amor volere"
[Anonimo fiorentino, XIV sec.]
(togliere le "pinzillacchere" dall'indirizzo email ;-)