Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-24 Thread Jon Brock
I use REXEC to do pretty much what Gordon describes below, except that 
I can't monitor the results of the SIGNAL SHUTDOWN command, so I just use a 
sleep program to pause my z/OS job.  I have ordered the z/OS add-ons so that I 
can start using ssh, which should be more secure and give me more capabilities.

Jon



The easiest way to do this is if you are running a release of zVM late enough 
to use the CP SIGNAL command.  I don't remember when exactly this command was 
added to zVM, but I think it was zVM 4.3.

The following is for SuSE Linux and will work on SLES8 or SLES9, but not SLES7. 
 It wil probably work on RHEL3 and RHEL4, but I haven't tested it.

Go into Linux and add the following lines to /etc/inittab:

# what to do when CTRL-ALT-DEL is pressed
ca::ctrlaltdel:/sbin/shutdown -h -t 4 now

Then look at /etc/zipl.conf and be sure the line with "root=/dev/dasda1" (or 
whatever your root disk is) contains vmpoff=LOGOFF

Run zipl, shut down and reboot your linux image to make all of this active.


Now when you want to shut down the linux image, say LNX6, from VM, issue 
the command

CP SIGNAL SHUTDOWN USER LNX6 WITHIN 60
(if this is running Oracle, you may want to make the 60 be 300)

Then set a loop to monitor the command 

CP QUERY LNX6
And look for a return code of 45, which lets you know the image is down.

Then do what you need to  do to back it up, and restart it with

CP XAUTOLOG LNX6
(The linux image may need an XAUTOLOG entry in its directory to allow this)



--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-23 Thread Wolfe, Gordon W
The easiest way to do this is if you are running a release of zVM late enough 
to use the CP SIGNAL command.  I don't remember when exactly this command was 
added to zVM, but I think it was zVM 4.3.

The following is for SuSE Linux and will work on SLES8 or SLES9, but not SLES7. 
 It wil probably work on RHEL3 and RHEL4, but I haven't tested it.

Go into Linux and add the following lines to /etc/inittab:

# what to do when CTRL-ALT-DEL is pressed
ca::ctrlaltdel:/sbin/shutdown -h -t 4 now

Then look at /etc/zipl.conf and be sure the line with "root=/dev/dasda1" (or 
whatever your root disk is) contains vmpoff=LOGOFF

Run zipl, shut down and reboot your linux image to make all of this active.


Now when you want to shut down the linux image, say LNX6, from VM, issue 
the command

CP SIGNAL SHUTDOWN USER LNX6 WITHIN 60
(if this is running Oracle, you may want to make the 60 be 300)

Then set a loop to monitor the command 

CP QUERY LNX6
And look for a return code of 45, which lets you know the image is down.

Then do what you need to  do to back it up, and restart it with

CP XAUTOLOG LNX6
(The linux image may need an XAUTOLOG entry in its directory to allow this)

"The Church is near, but the road is icy.  The tavern is far, but I will walk 
carefully." - old Hungarian Proverb
Gordon W. Wolfe, Ph.D. Boeing VM Enterprise Servers 425-865-5940


-Original Message-
From: David Boyes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 23, 2005 9:18 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue 
commands


> What I would like to do is have a mainframe batch job issue a
> command to a linux z/VM instance and shut the linux instance
> down.  Then through the scheduling mainframe package, a
> mainframe job could be run to do an FDR backup of the DASD
> assigned to that instance.  When the job successfully
> completes it could trigger a subsequent mainframe job to
> issue a command to bring the z/VM instance back up.
>
> I was thinking I could use a rexx exec to make this happen,
> but I am not quite sure how.  Is there an easier way to
> accomplish this task?

Well, the *easy* way is to license FDR's Linux backup solution (it works
well, and since it's running inside the Linux guest, it handles the caching
problem neatly). But, we're here, and easy solutions aren't any fun...

This actually would be a good use of our SYSVINIT package -- it's got all
the PROP automation for controlling guests already done; you'd just need to
set up the NJE connection between z/OS and VM. The price is right, anyway.
In that case, your command to send from z/OS might look like this:

XMIT (MSG) VMSYS AUTOLOG1 SERVICE  STOP(shuts down the Linux
guest gracefully)
Wait a bit, or wait for the "service stopped" message.
Do your backup
XMIT (MSG) VMSYS AUTOLOG1 SERVICE  START(bring the Linux guest
back up)

If you made a minor modification to the SERVICE exec in SYSVINIT, you could
send a file back that could be used to trigger the backup job via a ETT
trigger in TWS or CA-7. You'd need RSCS on the VM system, and a CTC
connection to z/OS to make this work, but that's actually a good thing; once
this is available, then you can do a lot more with controlling the Linux
environment from z/OS.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-23 Thread David Boyes
> What I would like to do is have a mainframe batch job issue a
> command to a linux z/VM instance and shut the linux instance
> down.  Then through the scheduling mainframe package, a
> mainframe job could be run to do an FDR backup of the DASD
> assigned to that instance.  When the job successfully
> completes it could trigger a subsequent mainframe job to
> issue a command to bring the z/VM instance back up.
>
> I was thinking I could use a rexx exec to make this happen,
> but I am not quite sure how.  Is there an easier way to
> accomplish this task?

Well, the *easy* way is to license FDR's Linux backup solution (it works
well, and since it's running inside the Linux guest, it handles the caching
problem neatly). But, we're here, and easy solutions aren't any fun...

This actually would be a good use of our SYSVINIT package -- it's got all
the PROP automation for controlling guests already done; you'd just need to
set up the NJE connection between z/OS and VM. The price is right, anyway.
In that case, your command to send from z/OS might look like this:

XMIT (MSG) VMSYS AUTOLOG1 SERVICE  STOP(shuts down the Linux
guest gracefully)
Wait a bit, or wait for the "service stopped" message.
Do your backup
XMIT (MSG) VMSYS AUTOLOG1 SERVICE  START(bring the Linux guest
back up)

If you made a minor modification to the SERVICE exec in SYSVINIT, you could
send a file back that could be used to trigger the backup job via a ETT
trigger in TWS or CA-7. You'd need RSCS on the VM system, and a CTC
connection to z/OS to make this work, but that's actually a good thing; once
this is available, then you can do a lot more with controlling the Linux
environment from z/OS.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-23 Thread Miller, Ila
What I would like to do is have a mainframe batch job issue a command to
a linux z/VM instance and shut the linux instance down.  Then through
the scheduling mainframe package, a mainframe job could be run to do an
FDR backup of the DASD assigned to that instance.  When the job
successfully completes it could trigger a subsequent mainframe job to
issue a command to bring the z/VM instance back up.  

I was thinking I could use a rexx exec to make this happen, but I am not
quite sure how.  Is there an easier way to accomplish this task?

Ila Z. Miller
___
___
Health Care Information Systems
University of Iowa Hospitals & Clinics
[EMAIL PROTECTED]
Phone:  319.356.0067
FAX: 319.356.3521

Notice: This e-mail (including attachments) is covered by the Electronic
Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may
be legally privileged.  If you are not the intended recipient, you are
hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited.  Please reply to
the sender that you have received the message in error, then delete it.
Thank you.


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-16 Thread John Summerfied

Tom Duerbusch wrote:

The exec I listed last week, didn't allow for the return of the results,
at least in the form that the exec could parse thru.

However, you can always (linux form) pipe the results to a file and
then ftp the file back to the calling exec.  Then parse the results
there.

I've not had the need to do this with Linux, yet, but I do have some
VM/Windows applications that do the same thing.  i.e.  initiate some
process on the pc, send the resulting data to CMS, stage the data to
tape, report results back to PC, send "OK" to user if everything is just
fine.

Sure it is klunky.

We need something simular to the P/390 utilities, "OS2" command and
"OS2PIPE".  That allowed CMS users to send commands to the OS2 side of
the P/390 and return the results.


or to learn to use better tools:)

One can talk to almost anything using expect (a programming language, an
extention of TCL). Expect is fully interactive (but you need to know the
likely paths in the conversation).

One can imbed expect into Perl - see perl-expect.

One can do this
command-generator | ssh -t linux-box
or even
command-generator | ssh -t linux-box | command-checker

One can write a CGI and talk to it with Any Web Browser (but watch your
security). If you don't like a Patchy web server, you can write your own
in half-a-dozen or so lines of Perl or Python.

One _could_ put somethig to run a shell into xinet.d/shell.conf and pipe
commands to it with netcat like in the ssh exmaples above:
command-generator | nc linux-box
Of course, this isn't very secure, even with tcpwrappers.

One could also use TCP sockets (when I used REXX on OS/2 there was a
sockets package) to chat up the Linux box. Again, watch your security.


command-generator and command-checker can be written in REXX, or as
simple as this:
ssh -t http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-16 Thread Tom Duerbusch
The exec I listed last week, didn't allow for the return of the results,
at least in the form that the exec could parse thru.

However, you can always (linux form) pipe the results to a file and
then ftp the file back to the calling exec.  Then parse the results
there.

I've not had the need to do this with Linux, yet, but I do have some
VM/Windows applications that do the same thing.  i.e.  initiate some
process on the pc, send the resulting data to CMS, stage the data to
tape, report results back to PC, send "OK" to user if everything is just
fine.

Sure it is klunky.

We need something simular to the P/390 utilities, "OS2" command and
"OS2PIPE".  That allowed CMS users to send commands to the OS2 side of
the P/390 and return the results.

Tom Duerbusch
THD Consulting

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-13 Thread Post, Mark K
Care to donate the source code to the web site?


Mark Post

-Original Message-
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Dave Jones
Sent: Saturday, August 13, 2005 11:23 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Mainframe REXX EXEC to logon to zVM Linux instance and
issue commands


Hi, James.

I've got some code here that might do what you want..there are two
separate pieces to this application:

1) a piece, written in PL/I, that run on CMS and uses TCP/IP socket
calls to connect with.
2) the piece, written in C, that runs on Linux and waits for
connections. When a TCP connection from the CMS PL/I code is made and
validated, the CMS side sends one, or more, Linux commands; for each
command, the Linux piece connects stdin and stdout to the socket, runs
the command, and returns any return code to the CMS side.

Let me know if that might be of use to you.

Have a good one.

DJ

James Melin wrote:
> We use a product called Universal Command from stonebranch software. 
> Using that we've built an ISPF dialogue that caused scripts to be 
> shipped from z/OS hfs to linux and be executed, returning stdout/stdin

> and return codes of a sort. We have it in place for the operations 
> staff to stop/start WebSphere and look at WebSphere logs without 
> having to learn anything linux.
>
>
>
>
>
>  Alan Altmark
>  <[EMAIL PROTECTED]
>  ibm.com>
To
>  Sent by: Linux on LINUX-390@VM.MARIST.EDU
>  390 Port
cc
>  <[EMAIL PROTECTED]
>  IST.EDU>
Subject
>Re: Mainframe REXX EXEC to
logon to
>zVM Linux instance and issue
>  08/12/2005 03:09  commands
>  PM
>
>
>  Please respond to
>  Linux on 390 Port
>  <[EMAIL PROTECTED]
>  IST.EDU>
>
>
>
>
>
>
> On Friday, 08/12/2005 at 02:59 EST, "Miller, Ila" 
> <[EMAIL PROTECTED]>
> wrote:
>
>>Is it possible to write a mainframe REXX exec which will logon to a 
>>zVM Linux instance and issue commands.  If so, can you be specific in 
>>how to do it?
>
>
> Yes.  Diagnose 0x7C lets a virtual machine create logical 3270s and 
> manipulate them.  (This is how the VM TELNET server works.)
>
> If you have the IBM PVM product, a nice programming interface is 
> availabled called 'MPVM'.  Otherwise you can get RXLDEV from the 1998 
> VM Workshop Tape (http://ukcc.uky.edu/%7Etools.1998/).
>
> But there are probably easier ways to do whatever it is you're trying 
> to do.  Tell us?
>
> Alan Altmark
> z/VM Development
> IBM Endicott
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or 
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or 
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-13 Thread Dave Jones

Hi, James.

I've got some code here that might do what you want..there are two
separate pieces to this application:

1) a piece, written in PL/I, that run on CMS and uses TCP/IP socket
calls to connect with.
2) the piece, written in C, that runs on Linux and waits for
connections. When a TCP connection from the CMS PL/I code is made and
validated, the CMS side sends one, or more, Linux commands; for each
command, the Linux piece connects stdin and stdout to the socket, runs
the command, and returns any return code to the CMS side.

Let me know if that might be of use to you.

Have a good one.

DJ

James Melin wrote:

We use a product called Universal Command from stonebranch software. Using
that we've built an ISPF dialogue that caused scripts to be shipped from
z/OS hfs to linux and be executed, returning stdout/stdin and return codes
of a sort. We have it in place for the operations staff to stop/start
WebSphere and look at WebSphere logs without having to learn anything
linux.





 Alan Altmark
 <[EMAIL PROTECTED]
 ibm.com>   To
 Sent by: Linux on LINUX-390@VM.MARIST.EDU
 390 Port   cc
 <[EMAIL PROTECTED]
 IST.EDU>  Subject
   Re: Mainframe REXX EXEC to logon to
   zVM Linux instance and issue
 08/12/2005 03:09  commands
 PM


 Please respond to
 Linux on 390 Port
 <[EMAIL PROTECTED]
 IST.EDU>






On Friday, 08/12/2005 at 02:59 EST, "Miller, Ila" <[EMAIL PROTECTED]>
wrote:


Is it possible to write a mainframe REXX exec which will logon to a zVM
Linux instance and issue commands.  If so, can you be specific in how to
do it?



Yes.  Diagnose 0x7C lets a virtual machine create logical 3270s and
manipulate them.  (This is how the VM TELNET server works.)

If you have the IBM PVM product, a nice programming interface is
availabled called 'MPVM'.  Otherwise you can get RXLDEV from the 1998 VM
Workshop Tape (http://ukcc.uky.edu/%7Etools.1998/).

But there are probably easier ways to do whatever it is you're trying to
do.  Tell us?

Alan Altmark
z/VM Development
IBM Endicott

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread David Boyes
> Is it possible to write a mainframe REXX exec which will
> logon to a zVM Linux instance and issue commands.  If so, can
> you be specific in how to do it?

There are several ways to do this:

1) Enable REXEC on the Linux guest, and use the REXEC client supplied with
VM TCPIP.

2) Use CP SEND and WAKEUP to send commands and capture responses.

3) Enable telnet on the Linux guest and use RXSOCKET to connect to the
telnet port, log in, and get commands and responses.

#1 involves little or no coding, but is somewhat high overhead unless your
command is running a script on the Linux guest to do multiple commands. #2
and #3 require some coding, and can be a little timing sensitive.

What are you trying to accomplish?

-- db

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread Stephen Y Odo

Miller, Ila wrote:


Is it possible to write a mainframe REXX exec which will logon to a zVM
Linux instance and issue commands.  If so, can you be specific in how to
do it?



We have a generic SSH thing that we do to run commands on our Sun
servers from our job scheduler.  It probably would work with Linux under
z/VM too ...

I have a somewhat outdated document at
 that kinda
explains what we do.

Hope this is useful.

-Stephen

--
--
---
Stephen Y. Odo
Senior Systems Programmerphone:   (808)956-2383
Information Technology Services  FAX: (808)956-2412
University of Hawai'ie-mail: [EMAIL PROTECTED]
...
Region Registrar home phone:  (808)847-1076
American Youth Soccer Organization
Honolulu Region 178  e-mail:   [EMAIL PROTECTED]
---

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread David Kreuter

Depending on your needs you can use the AUTOLOG or XAUTOLOG command to
fire up a linux virtual machine, and use SET SECUSER to control to linux
vm's console. With CP SEND you can issue commands to the linux guest. In
a rexx exec you will easily be able to pass mixed case commands.
From MACHINEA with correct authority to start LINUXA:
/**/
Address 'COMMAND'
'CP XAUTOLOG LINUXA'
'CP SET SECUSER L:INUXA *'
'CP SEND LINUXA  some_linux_command'

You can also wrap this into a PIPE and trap output.
David

David
Alan Altmark wrote:


On Friday, 08/12/2005 at 02:59 EST, "Miller, Ila" <[EMAIL PROTECTED]>
wrote:



Is it possible to write a mainframe REXX exec which will logon to a zVM
Linux instance and issue commands.  If so, can you be specific in how to
do it?




Yes.  Diagnose 0x7C lets a virtual machine create logical 3270s and
manipulate them.  (This is how the VM TELNET server works.)

If you have the IBM PVM product, a nice programming interface is
availabled called 'MPVM'.  Otherwise you can get RXLDEV from the 1998 VM
Workshop Tape (http://ukcc.uky.edu/%7Etools.1998/).

But there are probably easier ways to do whatever it is you're trying to
do.  Tell us?

Alan Altmark
z/VM Development
IBM Endicott

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390







--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread Tom Duerbusch
If you are just talking something rather simple

In this case, I have the secondary console to the Linux machines routed
to PROP.  I use the following exec to issue commands to Linux to
shutdown.

In a test case, just set the secondary user to your CMS machine and do
a "send" to that Linux machine.

/* */
PARSE ARG USERID
PSW = USERID
UPPER USERID
SAY 'NOW SHUTTING DOWN:' USERID
EXEC PROPSEND LINUXCMD USERID 'root'
CP SLEEP 5 SEC
EXEC PROPSEND LINUXCMD USERID PSW
CP SLEEP 5 SEC
EXEC PROPSEND LINUXCMD USERID 'shutdown -h now'
CP SLEEP 30 SEC
EXEC PROPSEND LINUXCMD USERID 'CP LOGOFF'
SAY USERID 'HAS BEEN SHUTDOWN'
RETURN

Tom Duerbusch
THD Consulting

>>> [EMAIL PROTECTED] 08/12/05 4:44 PM >>>
We use a product called Universal Command from stonebranch software.
Using
that we've built an ISPF dialogue that caused scripts to be shipped
from
z/OS hfs to linux and be executed, returning stdout/stdin and return
codes
of a sort. We have it in place for the operations staff to stop/start
WebSphere and look at WebSphere logs without having to learn anything
linux.





 Alan Altmark
 <[EMAIL PROTECTED]
 ibm.com>
To
 Sent by: Linux on LINUX-390@VM.MARIST.EDU
 390 Port
cc
 <[EMAIL PROTECTED]
 IST.EDU>
Subject
   Re: Mainframe REXX EXEC to logon
to
   zVM Linux instance and issue
 08/12/2005 03:09  commands
 PM


 Please respond to
 Linux on 390 Port
 <[EMAIL PROTECTED]
 IST.EDU>






On Friday, 08/12/2005 at 02:59 EST, "Miller, Ila"
<[EMAIL PROTECTED]>
wrote:
> Is it possible to write a mainframe REXX exec which will logon to a
zVM
> Linux instance and issue commands.  If so, can you be specific in how
to
> do it?

Yes.  Diagnose 0x7C lets a virtual machine create logical 3270s and
manipulate them.  (This is how the VM TELNET server works.)

If you have the IBM PVM product, a nice programming interface is
availabled called 'MPVM'.  Otherwise you can get RXLDEV from the 1998
VM
Workshop Tape (http://ukcc.uky.edu/%7Etools.1998/).

But there are probably easier ways to do whatever it is you're trying
to
do.  Tell us?

Alan Altmark
z/VM Development
IBM Endicott

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread James Melin
We use a product called Universal Command from stonebranch software. Using
that we've built an ISPF dialogue that caused scripts to be shipped from
z/OS hfs to linux and be executed, returning stdout/stdin and return codes
of a sort. We have it in place for the operations staff to stop/start
WebSphere and look at WebSphere logs without having to learn anything
linux.





 Alan Altmark
 <[EMAIL PROTECTED]
 ibm.com>   To
 Sent by: Linux on LINUX-390@VM.MARIST.EDU
 390 Port   cc
 <[EMAIL PROTECTED]
 IST.EDU>  Subject
   Re: Mainframe REXX EXEC to logon to
   zVM Linux instance and issue
 08/12/2005 03:09  commands
 PM


 Please respond to
 Linux on 390 Port
 <[EMAIL PROTECTED]
 IST.EDU>






On Friday, 08/12/2005 at 02:59 EST, "Miller, Ila" <[EMAIL PROTECTED]>
wrote:
> Is it possible to write a mainframe REXX exec which will logon to a zVM
> Linux instance and issue commands.  If so, can you be specific in how to
> do it?

Yes.  Diagnose 0x7C lets a virtual machine create logical 3270s and
manipulate them.  (This is how the VM TELNET server works.)

If you have the IBM PVM product, a nice programming interface is
availabled called 'MPVM'.  Otherwise you can get RXLDEV from the 1998 VM
Workshop Tape (http://ukcc.uky.edu/%7Etools.1998/).

But there are probably easier ways to do whatever it is you're trying to
do.  Tell us?

Alan Altmark
z/VM Development
IBM Endicott

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread Alan Altmark
On Friday, 08/12/2005 at 02:59 EST, "Miller, Ila" <[EMAIL PROTECTED]>
wrote:
> Is it possible to write a mainframe REXX exec which will logon to a zVM
> Linux instance and issue commands.  If so, can you be specific in how to
> do it?

Yes.  Diagnose 0x7C lets a virtual machine create logical 3270s and
manipulate them.  (This is how the VM TELNET server works.)

If you have the IBM PVM product, a nice programming interface is
availabled called 'MPVM'.  Otherwise you can get RXLDEV from the 1998 VM
Workshop Tape (http://ukcc.uky.edu/%7Etools.1998/).

But there are probably easier ways to do whatever it is you're trying to
do.  Tell us?

Alan Altmark
z/VM Development
IBM Endicott

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Mainframe REXX EXEC to logon to zVM Linux instance and issue commands

2005-08-12 Thread Miller, Ila
Is it possible to write a mainframe REXX exec which will logon to a zVM
Linux instance and issue commands.  If so, can you be specific in how to
do it?

Ila Z. Miller
___
___
Health Care Information Systems
University of Iowa Hospitals & Clinics
[EMAIL PROTECTED]
Phone:  319.356.0067
FAX: 319.356.3521

Notice: This e-mail (including attachments) is covered by the Electronic
Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may
be legally privileged.  If you are not the intended recipient, you are
hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited.  Please reply to
the sender that you have received the message in error, then delete it.
Thank you.


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390