IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

USS syslog how to


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Alex Alvarez

New User


Joined: 25 May 2021
Posts: 1
Location: United States

PostPosted: Tue May 25, 2021 7:33 pm
Reply with quote

Hi. I'd like to save our syslog in USS prior to an ipl and create a new one after the IPL. Do anyone know how I can accomplish this?
Thank you so much.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 470
Location: Denmark

PostPosted: Tue May 25, 2021 10:32 pm
Reply with quote

Are you using SYSLOG or OPERLOG?
If SYSLOG, do you or can you switch it before ipl? Then use the external writer to write it to a USS file.
In case of OPERLOG I expect that you can use the IEAMDBLG program to copy to a USS file.
Basic question, what do you do today to save SYS/OPERLOG?
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 513
Location: Bamberg, Germany

PostPosted: Tue May 25, 2021 11:33 pm
Reply with quote

Willy Jensen wrote:
Are you using SYSLOG or OPERLOG?

OPERLOG can be used as an addition to SYSLOG so it would be AND, right? However, access to OPERLOG LS needs to be restricted or the IBM provided ASM needs to be modified to remove the existing DELETE option.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 886
Location: The Universe

PostPosted: Tue May 25, 2021 11:55 pm
Reply with quote

There are two parts to this query.

The first part is "starting a new SYSLOG with an IPL." At one level this query is moot: an IPL always starts a new SYSLOG data set within JES.

The second part: transferring the SYSLOG to a USS data set is potentially more complex. As Mr. Jensen mentioned, what do you use today to save SYSLOG? If you are already saving SYSLOG then this process would have to be altered to both save it to your USS file AND save it to your current standard. If you are not saving SYSLOG you can prepare and run an external writer to save the SYSLOG to your USS file.

HTH
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 470
Location: Denmark

PostPosted: Wed May 26, 2021 1:13 am
Reply with quote

Quote:
OPERLOG can be used as an addition to SYSLOG so it would be AND, right

Yes, at least the manual says so, though personally I would go for OPERLOG only. Simple to set up, even for a single-system sysplex.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 470
Location: Denmark

PostPosted: Wed May 26, 2021 1:38 pm
Reply with quote

Maybe you can use the SDSF REXX API? See section 'Browsing the system log with ISFLOG' in the 'SDSF User's Guide' manual.
I just realized that we haven't really addressed the USS part, but writing to a USS file should be common knowledge by now, something like:
Quote:
//OUT DD PATH='/tmp/LOGOUT.OUT',PATHOPTS=(OWRONLY,OCREAT),
// PATHMODE=SIRWXU

And I must admit to be curious, why specifically before an ipl? Syslog is typically hardened after midnight, if at all. And why USS only in this case?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts CA Sysview - JCL or Rexx - Read or Ex... CA Products 4
No new posts Suppress messages from being written ... All Other Mainframe Topics 6
No new posts ICETOOL- syslog extract and transpose DFSORT/ICETOOL 37
No new posts MSGs from HSM activity logs to syslog JCL & VSAM 13
No new posts SYSLOG Message ID Activated Assembly ... PL/I & Assembler 9
Search our Forums:

Back to Top