Note that the lsdasd command only exists in SLES 9 as well; You'd have to grep 
/proc/dasd/devices in SLES 8 to find the trigger device, although that wouldn't 
be difficult to do. The vmcp command also exists only in SLES 9.


--
Robert P. Nix           Mayo Foundation
RO-OC-1-13              200 First Street SW
507-284-0844            Rochester, MN 55905
-----
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Hayden
Sent: Thursday, March 02, 2006 8:58 PM
To: [email protected]
Subject: Re: Passing a parameter to a linux guest at IPL time

Since you're running under VM, you could read a file from a CMS
minidisk using the cmsfs program, or play some tricks using virtual
devices.  For instance, your boot process could check to see if a
device exists at a certain virtual address, and if so, don't start
WebSphere.  An easy device to create is a virtual printer, as in CP
DEF PRT AS 9999.  Then, see if it exists using hcp q v 9999 (or the
vmcp command).  If you don't want to depend on the hcp command, define
a 1 cyl tdisk and check to see if it appears in /proc/dasd/devices or
in the output of the lsdasd command (assuming it is a dasd address
defined to the kernel.)  If you want to pass a string using a device,
define a printer and put some data in the tag area (up to 136
characters) for the device.  You'd have to read that data using the
hcp command.

----------------------------------------------------------------------
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

Reply via email to