Keyboard Shortcuts
Likes
- H390-MVS
- Messages
Search
Re: Automating cleanup of printer output files
Hello Drew,
Am 20.07.2020 um 04:11 schrieb Drew Derbyshire <swhobbit@...>: You may solving the wrong problem. :-)Maybe? At the moment, I mostly care about me not needing to to housekeeping. What are computers actually for, if not for automating boring and repetitive tasks? :-) It takes the raw monolithic JES2 output and splits the SYSOUT by JOB/TSU/STC. Thus you don't have to purge all or nothing.Thanks for the hint. Maybe in a later point in time, I'll reconsider my approach, especially when considering printing reports to PDF. First, I want to get accustomed to JCL, to VSAM, and then to COBOL with KICKS4TSO. (I'm already having great fun with my old AS/400 writing small applications for housekeeping with just a few database files.) Right now, I'm just not doing enough serious stuff with the machine. ATM, I'm just fine with another shell window, 132 chars wide and a tail -f on prt00e running inside. find /my/print/directory -type f -name '*.txt' -atime +5 -ls -deleteThanks, I noticed. Just a hint (and not meant as being cocky): I'm using Linux since 1995, and I'm a Linux System Administrator since around 1997. I'm just new to MVS. :wq! PoC PGP-Key: DDD3 4ABF 6413 38DE - |
Re: Automating cleanup of printer output files
开云体育On 7/19/20 3:07 AM, Patrik Schindler
wrote:
On an actually used (TK4-) system, printer output files tend to get large over time. So I want to truncate them to zero. I'm running 4.3.9999.0-SDL-g9ceed2cc on Linux. What is the recommended way to do this without stopping and restarting hercules? Usually, a program has to be forced to close and reopen a file, so the actual blocks on disk are freed. You may solving the wrong problem.? :-) This doesn't do your clean up, but may help: It takes the raw monolithic JES2 output and splits the SYSOUT by
JOB/TSU/STC.?? Thus you don't have to purge all or nothing. Once running this, you might run a command via CRON to kill
listings older than N days, for example: find /my/print/directory -type f -name '*.txt' -atime +5 -ls -delete Note that NO commands need to be issued to Hercules (and you
don't wipe out everything at once.) -ahd- -- Drew Derbyshire "Never meddle in the affairs of Windows Vista, but it is slow to boot and quick to crash." -- alt.sysadmin.recovery |
Re: Automating cleanup of printer output files
good thinking. you could also pipe them to the Apache rotatelogs program, then you don't even need to poke hercules to change files.
On Sunday, July 19, 2020, 1:00:57 PM EDT, Patrik Schindler <poc@...> wrote:
Hello Doug, Am 19.07.2020 um 17:12 schrieb Doug Wegscheid <dwegscheid@...>: > There is a thread here referring to a hercctl utility to allow you to shoot commands at a running Hercules instance, but the link in it is stale, and I can't find it anywhere else. Thanks for the hint to local http server! I completely forgot about that one. (I found a reference that it's just a shell script, so I don't need that anyway.) I'll let logrotate do the housekeeping: [/etc/logrotate.d/hercules-mvs]: ---8<--- /opt/mvsrun/prt/prt002.txt /opt/mvsrun/prt/prt00e.txt /opt/mvsrun/prt/prt00f.txt { ? ? ? ? rotate 4 ? ? ? ? weekly ? ? ? ? missingok ? ? ? ? notifempty ? ? ? ? compress ? ? ? ? delaycompress ? ? ? ? postrotate ? ? ? ? ? ? ? ? /opt/mvsrun/logrotate-prt.sh ? ? ? ? endscript } ---8<--- [/opt/mvsrun/logrotate-prt.sh]: ---8<--- #!/bin/sh for DEV in 002 00e 00f; do ? ? ? ? curl -d "command=devinit+${DEV}" -X POST done ---8<--- :wq! PoC PGP-Key: DDD3 4ABF 6413 38DE - |
Re: Automating cleanup of printer output files
Hello Doug,
Am 19.07.2020 um 17:12 schrieb Doug Wegscheid <dwegscheid@...>: There is a thread here referring to a hercctl utility to allow you to shoot commands at a running Hercules instance, but the link in it is stale, and I can't find it anywhere else.Thanks for the hint to local http server! I completely forgot about that one. (I found a reference that it's just a shell script, so I don't need that anyway.) I'll let logrotate do the housekeeping: [/etc/logrotate.d/hercules-mvs]: ---8<--- /opt/mvsrun/prt/prt002.txt /opt/mvsrun/prt/prt00e.txt /opt/mvsrun/prt/prt00f.txt { rotate 4 weekly missingok notifempty compress delaycompress postrotate /opt/mvsrun/logrotate-prt.sh endscript } ---8<--- [/opt/mvsrun/logrotate-prt.sh]: ---8<--- #!/bin/sh for DEV in 002 00e 00f; do curl -d "command=devinit+${DEV}" -X POST done ---8<--- :wq! PoC PGP-Key: DDD3 4ABF 6413 38DE - |
Re: Automating cleanup of printer output files
On Sun, Jul 19, 2020 at 09:05 AM, Patrik Schindler wrote:
Now I'll have to see how I can automate this, with cron or other means, from outside. Any hint on that?write a shell script to scratch the file and shoot the devinit command at Hercules via HTTP:? (probably using curl). schedule it in cron. There is a thread referring to a hercctl utility to allow you to shoot commands at a running Hercules instance, but the link in it is stale, and I can't find it anywhere else. This worked for me, no way to see what the response is. curl -d "command=ipl+148" -X POST http://localhost:8081/cgi-bin/tasks/syslog You may want to consider having it name your printer files yyyymmdd, then you can keep a few days worth around, and clean them up with a find command. Spitballin' here, but something like: #!/bin/bash ymd=`date +"%Y%m%D"` curl -d "command=devinit+10d+$ymd.txt" -X POST http://localhost:8081/cgi-bin/tasks/syslog |
Re: Automating cleanup of printer output files
Hello Doug,
Am 19.07.2020 um 13:34 schrieb Doug Wegscheid <dwegscheid@...>: DEVINIT to a new file, delete the old.Thanks! I think, deleting the old file, and then just doing a devinit should close the file and create a new one. 摆…闭 Yap, works! Thanks! Now I'll have to see how I can automate this, with cron or other means, from outside. Any hint on that? :wq! PoC PGP-Key: DDD3 4ABF 6413 38DE - |
Re: Automating cleanup of printer output files
Thank you autocorrect.
toggle quoted message
Show quoted text
DEVINIT to new file, delete the old.
|
Re: Automating cleanup of printer output files
DEVINIT to a new file, delete the old.
toggle quoted message
Show quoted text
|
Automating cleanup of printer output files
Hello,
an an actually used (TK4-) system, printer output files tend to get large over time. So I want to truncate them to zero. I'm running 4.3.9999.0-SDL-g9ceed2cc on Linux. What is the recommended way to do this without stopping and restarting hercules? Usually, a program has to be forced to close and reopen a file, so the actual blocks on disk are freed. I did some research on the net but found nothing related. Thanks! :wq! PoC PGP-Key: DDD3 4ABF 6413 38DE - |
Re: REVLMOD versions
On 2020-07-16 3:05 AM, cjar1950 via groups.io wrote:
in SYS2,LINKLIB, I have?37.0, which may have been installed from the Prycroft site.Sure, why not? The later version has support for processing segment overlay programs. Cheers, Greg |
REVLMOD versions
I was looking at the versions of software on my MVS38J builds, and noticed that I have 2 different versions of REVLMOD.
in SYS2,LINKLIB, I have?37.0, which may have been installed from the Prycroft site. in SYSC.LINKLIB (which is Jays SYSCPK v 1.17), I also have 37.0. Jay appears to have added this to SYSCPK very recently. in SYS2.CMDLIB, I have v 47.1, which appears to have been installed from a REVIEW installation. Can/should I just delete the old version from SYS2.LINKLIB? Chris ? |
Re: IPLing two LPARs under one instance of Hercules
Hi Mark,
Can you point me to some documentation for interconnecting 2 MVS guests using CTCs and VTAM?? I've got the CTCs genned in MVS, but haven't found any documentation yet on how to take advantage of them.? I'd prefer to work outside of VM, but I'll start there to get it working and then move it outside if I have to. Thanks, Jeff |
Re: IPLing two LPARs under one instance of Hercules
Robert Schreiber
Mark is right.? When LPARs first came out every once and awhile you would get some VM errors messages as it crashed. It was originally just a VM system with the covers closed so that you didn't have to "learn" VM and could not run applications on it.
|
Re: IPLing two LPARs under one instance of Hercules
开云体育Both. VM level such that multiple 16M guest machines can run; guest level to support added concurrent jobs within the 16M virtual machine. Huge amounts of work can be done with this scenario. MVS guests can be interconnected with virtual CTCAs along with VTAM routing. This also permits full disk sharing via full-pack minidisks in scenarios that can break Hercules’ current disk sharing methods under load. ? ? From: [email protected] <[email protected]> On Behalf Of Doug Wegscheid
Sent: Monday, July 13, 2020 6:26 PM To: [email protected] Subject: Re: [H390-MVS] IPLing two LPARs under one instance of Hercules ? Creating paging volumes at the guest or host level? |
Re: IPLing two LPARs under one instance of Hercules
开云体育Also, memory/paging performance can be readily extended by dynamically creating paging volumes on RAM-disks for high performance using a script. ? Mark ? ? From: [email protected] <[email protected]> On Behalf Of Mark Waterbury
Sent: Monday, July 13, 2020 5:29 PM To: [email protected] Subject: Re: [H390-MVS] IPLing two LPARs under one instance of Hercules ? Rahim, |
Re: IPLing two LPARs under one instance of Hercules
Rahim,
If you load and run VM/370 as the primary OS, then you can run multiple operating systems under it, each in their own "virtual machine."? You could run DOS/360, DOS/VS, OS/360 (MFT or MVT, your choice), or OS/VS1 or MVS 3.8J ... And of course you can also have multiple users signed on to VM running CMS... all at the same time. Where do you think "LPARs" came from originally?? :-) Hope that helps, Mark S. Waterbury |
Re: IPLing two LPARs under one instance of Hercules
开云体育Each instance of Hercules presents an individual LPAR or BASIC mode machine. Later on, there may be controlling software that handles multiple instances of Hercules on the same physical machine, thus giving more of the appearance of a multi-LPAR machine. But for now, you have to handle each instance separately. ? Mark ? ? From: [email protected] <[email protected]> On Behalf Of Rahim Azizarab via groups.io
Sent: Sunday, July 12, 2020 8:40 PM To: [email protected] Subject: [H390-MVS] IPLing two LPARs under one instance of Hercules ? ? I am curious to find out if anyone has been able to ipl two instances of any OS under Hercules when more than one CPU is defined.? I can ipl zlinux and MVS separately with the same config file but not both at the same time when I attempt a second IPL it say ? HHCPN053E ipl rejected.? I was hoping to assign each OS to a different CPU somehow. ? Of course I can have separate instances of HERCULES running different Operating Systems. ? ? ? regards; ? ? Rahim
|
Re: IPLing two LPARs under one instance of Hercules
1. Hercules doesnt have LPARs 2. Run VM, then ipl each os as a VM Guest Joe On Sun, Jul 12, 2020 at 10:44 PM Rahim Azizarab via <rahimazizarab=[email protected]> wrote:
|