AS/400 HELP
oprmonE
Monitors QSYSOPR ‘Reply Needed’
messages and sends an E-mail
message

E-mail address can also be a cellular
phone or pager

oprmonE was developed at V5r1
oprmonE uses API
QMHLSTM to record messages sent to
qsysopr that need a reply. These messages left unanswered may indicate an area
of your AS/400 is not functioning.
OpmonE is ideally suited for the night or weekend when no one is around
to handle these messages.
Monitoring
frequency is user selected from one to
ninety-nine minutes. Messages
scanned by oprmonE are those sent to
QSYSOPR AFTER the date /time entered.
An E-mail is sent just once per message/date/time
Messages can be
bypassed by entering them into File OPRMONEMSG (use STRDFU). (you probably don’t want to be notified of
messages like CPA3387 -
Device xxx not available -) see
NOTE3
You must have
SMTP configured and up and running.
SNDDST command is used to send the message.
(We use
Microsoft Exchange with mail forwarding turned on)
PC INSTRUCTIONS:
Download "oprmonE” to your PC.
Go to a DOS session and enter the following;
FTP SYSTEM (system = your AS/400’s
name or IP address)
Enter a valid user id and password
CD QGPL
LCD C:\DIRECTORY (directory= the directory on your pc where you
downloaded “ oprmonE.savf”
QUOTE
SITE NAMEFMT 1
BIN
PUT
OPRMONE.SAVF
QUOTE RCMD
RSTLIB SAVLIB(OPRMONE) DEV(*SAVF) SAVF(QGPL/OPRMONE)
Note: If there is a security problem restoring all
objects with the command above, sign on
to your as/400 as Qsecofr and run RSTLIB
from the command line.
AS/400
INSTRUCTIONS:
1)
install the OPRMONE library (rstlib). After it’s installed...
2)
enter; ADDJOBQE
SBSD(QSYS/QBATCH) JOBQ(OPRMONE/OPRMONE) SEQNBR(NNN) where NNN is an unique number
not already assigned to QBATCH (enter DSPSBSD
QBATCH option 6 to see all existing jobqe entries)
3)
To start oprmonE, enter OPRMONE/OPRMONE You will be prompted for the following;.
Explanation;
FREQUENCY run the monitor every n minutes
(10 = every minutes
Start
CYYMMDDHHMMSS enter a valid date/time
EG 1040731010101 (july 31 2004 01am
‘1’ means this century
(20)
E-mail
address Enter your e-mail adddress
or your cell / pager number
(ask your cell provider
for the proper syntax)
4)
Verify oprmonE is running by WRKACTJOB look for
OPRMONITOR running in QBATCH.
To
cancel oprmonE in Qbatch use WRKACTJOB and enter a 4 next to it. (Use CMD 4 as
you enter and use option *IMMED)
NOTE: If the message does not appear correctly on
your cell phone or pager screen you may need to modify program OPRMONE to
change the layout of the character string. Also check with cellular company if
sending text messages as to how long they can be (BELL MOBILITY in Canada
limits text messages to 140 characters)
NOTE. The documentation for QMHLSTM says that new
messages are prevented from being added or removed to the queue while this api
is running, so to avoid a temporary lockout, I think a frequency of at least
10 minutes or higher is recommended. There should not be a problem
as only unanswered messaged are scanned (*MNR)
NOTE3:
Messages to by bypassed are stored in OPRMONEMSG. Use STRDFU to add messages
you don’t want to be notified of
OPRMONEMSG file is read as a table at program initiation. Additions or
deletions to this file will not be recognized by oprmonE after it’s running. You must end the program and
restart it in order for any changes to be recognized.