Re: advise on a simple REXX script to automate FTP from zVM to Linux server
Hi Can anyone advise or has a ready zVM REXX script (zVM 5.4) that will ftp a file from zVM to linux (or unix)? Is it using VMFTP? A simple one will do ... will try to automate it afterwards. Many thanks in advance.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
quick and dirty exec Make sure you are linked to TCPMAINTS 592 mdisk to get the FTP module /* FTP the file to xlxap01q.testbbh.com */ MAKEBUF QUEUE 'velftp ' QUEUE PUT ''ZVMLPARS.RP123109'' 'ZVMLPARS.RP123109.txt' QUEUE PUT ''LINUXSYS.RP123109'' 'LINUXSYS.RP123109.txt' QUEUE PUT ''LINUXMEM.RP123109'' 'LINUXMEM.RP123109.txt' QUEUE 'QUIT' QUEUE ' ' 'FTP' XLXAP01Q.TESTBBH.COM DROPBUF EXIT is of course the password to VELFTP good luck Bill Munson Sr. z/VM Systems Programmer Brown Brothers Harriman CO. 525 Washington Blvd. Jersey City, NJ 07310 201-418-7588 President MVMUA http://www2.marist.edu/~mvmua/ http://www.linkedin.com/in/BillMunson Magat, Martin martin.ma...@citi.com Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 01/14/2010 06:02 AM Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: advise on a simple REXX script to automate FTP from zVM to Linux server Hi Can anyone advise or has a ready zVM REXX script (zVM 5.4) that will ftp a file from zVM to linux (or unix)? Is it using VMFTP? A simple one will do ... will try to automate it afterwards. Many thanks in advance. *** IMPORTANT NOTE*-- The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman Co., its subsidiaries and affiliates (BBH). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
Simple: Queue (host) Queue (userid) Queue (password) Queue cd directory Queue ascii Queue put (filename) Queue quit PIPE CMS FTP, | (filename) FTPLOG A If rc0 then Say FTP of CPU information failed with rc=rc. Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE RHCE American Income Life Insurance Co. Phone: (254)761-6649 1200 Wooded Acres Dr.Fax: (254)741-5777 Waco, Texas 76710 -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Magat, Martin Sent: Thursday, January 14, 2010 5:02 AM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: advise on a simple REXX script to automate FTP from zVM to Linux server Hi Can anyone advise or has a ready zVM REXX script (zVM 5.4) that will ftp a file from zVM to linux (or unix)? Is it using VMFTP? A simple one will do ... will try to automate it afterwards. Many thanks in advance. _ This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at privacy...@ailife.com.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
This is a sample rexx procedure and runs as a VMFTP macro. /* */ Parse arg $cd , $in , $out open ftp.server.com myuseridgoesjhere myPassWordGoesHere passive cd '/'$cd binary put $in $out quit Jim Hughes 603-271-5586 It is fun to do the impossible. ==-Original Message- ==From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On ==Behalf Of Magat, Martin ==Sent: Thursday, January 14, 2010 6:02 AM ==To: IBMVM@LISTSERV.UARK.EDU ==Subject: Re: advise on a simple REXX script to automate FTP from zVM to ==Linux server == ==Hi == ==Can anyone advise or has a ready zVM REXX script (zVM 5.4) that will ftp ==a file from zVM to linux (or unix)? ==Is it using VMFTP? ==A simple one will do ... will try to automate it afterwards. == ==Many thanks in advance.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
I always use the exit option on the FTP command so I know that the transf er really worked. e.g. 'FTP XLXAP01Q.TESTBBH.COM (EXIT' quick and dirty exec Make sure you are linked to TCPMAINTS 592 mdisk to get the FTP module /* FTP the file to xlxap01q.testbbh.com */ MAKEBUF QUEUE 'velftp ' QUEUE PUT ''ZVMLPARS.RP123109'' 'ZVMLPARS.RP123109.txt' QUEUE PUT ''LINUXSYS.RP123109'' 'LINUXSYS.RP123109.txt' QUEUE PUT ''LINUXMEM.RP123109'' 'LINUXMEM.RP123109.txt' QUEUE 'QUIT' QUEUE ' ' 'FTP' XLXAP01Q.TESTBBH.COM DROPBUF EXIT
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
-Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Hughes, Jim Subject: Re: advise on a simple REXX script to automate FTP from zVM to Linux server This is a sample rexx procedure and runs as a VMFTP macro. /* */ Parse arg $cd , $in , $out open ftp.server.com myuseridgoesjhere myPassWordGoesHere Not to pick on Jim, since everybody's given the same advice so far, but... Just as a matter of clarification, can I ask why someone would put login credentials inside of an EXEC that calls FTP, in preference to making use of NETRC DATA ? ok r.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
We run a RULES based VMSECURE system so no one without authorization can view the macros stored in our production dasd. Pick on me. It's okay. I learn quite a bit when picked on. It makes me think. Jim Hughes 603-271-5586 It is fun to do the impossible. ==-Original Message- ==From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On ==Behalf Of Stricklin, Raymond J ==Sent: Thursday, January 14, 2010 10:57 AM ==To: IBMVM@LISTSERV.UARK.EDU ==Subject: Re: advise on a simple REXX script to automate FTP from zVM to ==Linux server == == -Original Message- == From: The IBM z/VM Operating System == [mailto:ib...@listserv.uark.edu] On Behalf Of Hughes, Jim == Subject: Re: advise on a simple REXX script to automate FTP == from zVM to Linux server == == This is a sample rexx procedure and runs as a VMFTP macro. == == == /* */ == Parse arg $cd , $in , $out == == open ftp.server.com == myuseridgoesjhere == myPassWordGoesHere == ==Not to pick on Jim, since everybody's given the same advice so far, ==but... == ==Just as a matter of clarification, can I ask why someone would put login ==credentials inside of an EXEC that calls FTP, in preference to making use ==of NETRC DATA ? == ==ok ==r.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
Agree -- that way you can have the same code run against different hosts, etc and be separated from the userid/pw pair to use. And updating a NETRC DATA file through automation is much easier than updating an EXEC - if you need a way to keep up with pw changes. It's really not any more secure, though.. it's still readable text in a file. Just better separation of code from 'data'. Scott On Thu, Jan 14, 2010 at 8:57 AM, Stricklin, Raymond J raymond.j.strick...@boeing.com wrote: -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Hughes, Jim Subject: Re: advise on a simple REXX script to automate FTP from zVM to Linux server This is a sample rexx procedure and runs as a VMFTP macro. /* */ Parse arg $cd , $in , $out open ftp.server.com myuseridgoesjhere myPassWordGoesHere Not to pick on Jim, since everybody's given the same advice so far, but... Just as a matter of clarification, can I ask why someone would put login credentials inside of an EXEC that calls FTP, in preference to making use of NETRC DATA ? ok r.
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
On Thursday, 01/14/2010 at 10:58 EST, Stricklin, Raymond J raymond.j.strick...@boeing.com wrote: Just as a matter of clarification, can I ask why someone would put login credentials inside of an EXEC that calls FTP, in preference to making use of NETRC DATA ? (cough) The security exposure and subsequent audit failure is the same, whether you have a clear-text password in an EXEC or a NETRC file. In either case, the password should be in clear-text only in flight, not at rest. While at rest it should be encrypted (preferred), hashed, or otherwise obscured. This is why user certficate support for Secure FTP is needed. Then you won't need a password (unless the other end requires 2-factor authentication). Alan Altmark z/VM Development IBM Endicott
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
On Thursday, 01/14/2010 at 12:25 EST, David Boyes dbo...@sinenomine.net wrote: Ugh. Can we try to avoid more certificate-based stuff until there is a sane way to manage the things? That's why SCP is more widely used than SFTP; certificate management is a enormous pain. ssh has certificate management issues, too. But I agree that central administration of certificates would be a Good Thing. We won't go into the cost and extortion involved in getting external assurance for CA identities. Dude. If you want *assurances* about identities, it isn't free. No one said otherwise. Who issues your certificates for ssh? Oh. You generate them *yourself* and ask the server admin to install your public key (or via other key management mechanism)? I'm not impressed. Alan Altmark z/VM Development IBM Endicott
JES to RSCS LPR printer
Is it possible to route JES output to an LPR printer defined to RSCS? The LPR printer works great in RSCS, but can't for the life of me make it work with IP Printway in z/OS. I already have RSCS and JES connected, I currently use it to send output to my VM userid, and then print it from my VM userid to the RSCS printer. I would just like to remove the step of logging in to VM and printing. Thanks for any assistance. -- Mark Pace Mainline Information Systems 1700 Summit Lake Drive Tallahassee, FL. 32317
Re: advise on a simple REXX script to automate FTP from zVM to Linux server
Hi, Mark. In addition to the many excellent suggestions you've already received, you might also want to consider using the CMS Pipeline FTP stage. A very simple example of its use is: PIPE test file a | ftp use...@host.domain/test.file It also supports using an FTP proxy server,as well. You can find it here: http://vm.marist.edu/~pipeline/ftp.rexx Have a good one. DJ On 01/14/2010 05:02 AM, Magat, Martin wrote: Hi Can anyone advise or has a ready zVM REXX script (zVM 5.4) that will ftp a file from zVM to linux (or unix)? Is it using VMFTP? A simple one will do ... will try to automate it afterwards. Many thanks in advance. -- Dave Jones V/Soft www.vsoft-software.com Houston, TX 281.578.7544
Re: JES to RSCS LPR printer
For some VSE output, we send from POWER to a service virtual machine that uses the form number as printer number, receives it, does some manipulation then sends it off to the printer. But for those that don't require 'adjustment' we send directly to the RSCS printer. -Original Message- From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Mark Pace Sent: January 14, 2010 13:19 To: IBMVM@LISTSERV.UARK.EDU Subject: JES to RSCS LPR printer Is it possible to route JES output to an LPR printer defined to RSCS? The LPR printer works great in RSCS, but can't for the life of me make it work with IP Printway in z/OS. I already have RSCS and JES connected, I currently use it to send output to my VM userid, and then print it from my VM userid to the RSCS printer. I would just like to remove the step of logging in to VM and printing. Thanks for any assistance. -- Mark Pace Mainline Information Systems 1700 Summit Lake Drive Tallahassee, FL. 32317 The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review retransmission dissemination or other use of or taking any action in reliance upon this information by persons or entities other than the intended recipient or delegate is strictly prohibited. If you received this in error please contact the sender and delete the material from any computer. The integrity and security of this message cannot be guaranteed on the Internet. The sender accepts no liability for the content of this e-mail or for the consequences of any actions taken on the basis of information provided. The recipient should check this e-mail and any attachments for the presence of viruses. The sender accepts no liability for any damage caused by any virus transmitted by this e-mail. This disclaimer is property of the TTC and must not be altered or circumvented in any manner.
Re: JES to RSCS LPR printer
Mark, We do it all the time. Just define a DESTID in JES and route to the node name of the RSCS queue for the LPR. Works great. From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Mark Pace Sent: Thursday, January 14, 2010 1:19 PM To: IBMVM@LISTSERV.UARK.EDU Subject: JES to RSCS LPR printer Is it possible to route JES output to an LPR printer defined to RSCS? The LPR printer works great in RSCS, but can't for the life of me make it work with IP Printway in z/OS. I already have RSCS and JES connected, I currently use it to send output to my VM userid, and then print it from my VM userid to the RSCS printer. I would just like to remove the step of logging in to VM and printing. Thanks for any assistance. -- Mark Pace Mainline Information Systems 1700 Summit Lake Drive Tallahassee, FL. 32317
Re: JES to RSCS LPR printer
We do that. I'm not a z/OS person, but I think they just use DEST=vmnode.printer Marcy This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf Of Mark Pace Sent: Thursday, January 14, 2010 10:19 AM To: IBMVM@LISTSERV.UARK.EDU Subject: [IBMVM] JES to RSCS LPR printer Is it possible to route JES output to an LPR printer defined to RSCS? The LPR printer works great in RSCS, but can't for the life of me make it work with IP Printway in z/OS. I already have RSCS and JES connected, I currently use it to send output to my VM userid, and then print it from my VM userid to the RSCS printer. I would just like to remove the step of logging in to VM and printing. Thanks for any assistance. -- Mark Pace Mainline Information Systems 1700 Summit Lake Drive Tallahassee, FL. 32317