View previous topic :: View next topic
|
Author |
Message |
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Hi,
We use to get some job specific information in ULOG. i want to capture whatever information available in ULOG via a job.
Do we have any tool that will extract the information that get displayed in ULOG... |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello,
I use this if there is a need,
Code: |
/*REXX*/
"ALLOC F(OUTFILE) DS('"WELLS.ULOG.DATA"') SHR REUSE"
TRACE "O"
PARSE SOURCE _SYS _HOW _CMD .
PARSE ARG ARGS
DEBUG = 1
ISFRC = ISFCALLS("ON")
IF ISFRC ¬= 0 THEN DO
SAY "ISFCALLS RC" ISFRC
EXIT
END
CMD = "/D U,TAPE,ONLINE,,255" /* <-- SAMPLE SDSF COMMAND */
ADDRESS SDSF "ISFEXEC '" || CMD || "' "
IF RC ¬= 0 THEN DO
SAY "ISFEXEC RC" RC
SAY ISFMSG
DO IM = 1 TO ISFMSG2.0
SAY ISFMSG2.IM
END
EXIT
END
"EXECIO * DISKW OUTFILE (STEM ISFULOG. FINIS"
CALL ISFCALLS "OFF"
"FREE DD(OUTFILE)"
EXIT |
IIRC this code was stolen long time back from one of Enrico's post.
Credits to him if it works for you. |
|
Back to top |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Hi,
Thanks a lot to Enrico for the code..and vasanth also for sharing it again here...
i want this code to run for 15 minutes, so that i get all the log information generated in the ULOG.
How can i do it..? any help? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
i want this code to run for 15 minutes, |
I suspect probably not. . .
Quote: |
so that i get all the log information generated in the ULOG. |
What do you consider "all the log information"? |
|
Back to top |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Hi,
I want to trace the ULOG message across the day. There will be a message displayed in the ULOG and we have take an action immediately once it is displayed. Hence i thought of running REXX ULOG extract for every 15 mins and sort out the message if it is there and send mail to the team to take an action, this will avoid keep monitoring the ULOG for 24 hrs.
But the above code extracting the log the messages which ever displayed during the execution. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What causes the message(s) to be put into the ulog?
Suggest the process that puts "critical action" info in the ulog might also initiate the e-mail. |
|
Back to top |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Thanks for ur reply dicl scherrer....
that cannt be done now.. i want get it from ULOG.... any idea how to extract it?? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
No, i don't know how to extract this specifically . . .
In general, you would read the data and select "things" you want. Then act on them (i.e. send the alert e-mail).
For someone to be more help you need to post what you have as "input data" and the "rules" for your process. Then someone may have a suggestion.
Once you have a process working manually, it can be scheduled thru the system scheduler to run when needed.
If someone wants this badly enough and using the ulog data becomes not an option, the process that creates the ulog entries would need to be changed. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
hmmm,
a ulog is a user log: logs the activity of a user.
so, if the user did something that caused a ulog entry,
he would probably be aware of what he did.
why send him/her an email about something he/she knows he/she did?
since, with the appropriate profile, you can sign off of tso and sign back on and delete the previous ulog,
seems sort of hit-and-miss. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
sounds like another one of those
summone is looking in my priiivate PDS!!!! |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello,
Quote: |
Hence i thought of running REXX ULOG extract for every 15 mins and sort out the message if it is there and send mail to the team to take an action, this will avoid keep monitoring the ULOG for 24 hrs. |
Are you sure its ULOG? The above quote sounds as if you need to extract SYSLOG, I hope it is not the case.
I dont have much idea about JES and console but I think ULOG records details of the commands and messages which are generated as a result of a user command as mentioned by DBZ |
|
Back to top |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Hi,
i am going to fillter the ulog with "vary cn" (/v,cn(*),rout) commands. i want the job to capture all the msgs displayed 00:00 hrs to 23:59 hrs.... for this we cannt open ulog session and capture manually.
Any help running the REXX code from a particular period of time ??? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the question is not clear....
which ULOG do You want to process ???
the only ULOG available to <browse/look at> is the one related to the user invoking the ULOG command. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
some more concerns ...
Quote: |
There will be a message displayed in the ULOG and we have take an action immediately once it is displayed. |
why reinvent the wheel use You automation package to intercept the console messages and act on them
the topic belongs to the category
Quote: |
Topics Not Eligible to Discuss in our Forum |
because of the item
Quote: |
How to design your own scheduling system. The forum moderators recommend not attempting this.
|
even if not specifically cited an automation package falls into the same category
topic will be moved and locked very shortly! |
|
Back to top |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Hi,
We give ULOG in EJES panel and enter into ulog cosole. There we will give /v,cn(*),rout(LPAR) command to filter only particular LPAR msgs. This should be monitored 24/7. sometimes we miss to monitor this due to other work... so i am thinking to run a job that will run for every 30 mins(should run for 30 mins) and extract the ulog msgs and search for a particular msg and send mail thru the job. Once we get mail, we will take an action.
Hope i am clear now. |
|
Back to top |
|
|
|