View previous topic :: View next topic
|
Author |
Message |
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Is it possible to write the content of the file into syslog through REXX? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
please clarify the term syslog |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Syslog means system log. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
what would be the reason for writing a file to the system log ?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
enrico-sorichetti wrote: |
what would be the reason for writing a file to the system log ?? |
Exactly the same question that I would ask.
Maybe it's the requirement |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
I extracted the contents from the syslog into a file for the production environment. now i need this process for test simulation environment. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
so the process was the other way around ,
still it is not clear to what system log You are referring
might be clear for You, not the same for us...
please enlighten |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
i want to check the messages or events of all the users according to their process.for example.,when a user logs off a subsystem,then the following message will be displayed in the syslog.
IEF126I H905058 - LOGGED OFF - TIME=15.41.21
$HASP395 H905058 ENDED |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
OK! what is the problem?
still it is not clear what issues You are facing |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Does your process examine SYSLOG records in real time?
I'm not sure how to get the messages back into the active SYSLOG. You could do a WTO or DISPLAY in a program but the message IDs may not appear in the same location in the log records.
I think it would be easier to run actual jobs on your test system. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What information is it that you want to get, and why.
There are other methods of getting statistics / information from the system |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Is it possible to write the content of the file into syslog through REXX? |
If I understand the thread: you have a program that will read syslog so that you can perform 'actions' based on certain messages. And now you want to test your 'actions' and in order to test, you need to trigger them by getting the messages into syslog.
You should be able to develop your 'actions' as subroutines. And have a test program that only pretends it got the message from syslog and then calls your subroutine.
======
to get messages in to syslog:
1. you need an authorized program to issue a WTO. The parm to the program should be the message to be written.
2. call the program from your rexx.
note: there are security / auditing implications here so you are unlikely to be allowed to create such a program. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
now i need this process for test simulation environment. |
until the TS clarify the application design any reply is just pure speculation |
|
Back to top |
|
|
sathish1760
New User
Joined: 02 May 2008 Posts: 42 Location: chennai
|
|
|
|
Hi pedro,
Thanks for your information.
Can you explain briefly about how to use WTO? |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
The WTO assembler macro is described in the manual here publibz.boulder.ibm.com/epubs/pdf/iea2a981.pdf
You can use the method where the message data is in a work area with a length indicator. The ROUTCDE values allow you to direct the message to the SYSLOG along with certain consoles or no consoles. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
You can also use the SEND command to get stuff into SYSLOG. but I think messages are prefixed with a '+' sign to indicate it is not a real message. |
|
Back to top |
|
|
|