Re: VM User ID or z series LPAR name under RHEL4 U3

2007-03-01 Thread Roach, Dennis
Thanks to all who responded - /proc/sysinfo has everything that I needed.

Dennis Roach
United Space Alliance
600 Gemini Avenue
Mail Code USH-4A3L
Houston, Texas 77058
Voice:   (281) 282-2975
Page:(713) 736-8275
Fax: (281) 282-3583
E-Mail:  [EMAIL PROTECTED]

All opinions expressed by me are mine and may not agree with my employer or any 
person, company, or thing, living or dead, on or near this or any other
planet, moon, asteroid, or other spatial object, natural or manufactured, since 
the beginning of time.

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


VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread Roach, Dennis
Is there a way to get the VM 5.2 user ID or the z series LPAR name under Linux?
What I would like to do is use this to determine the hostname and the IP 
address of the Linux system, instead of having to change it in each one.

Dennis Roach
United Space Alliance
600 Gemini Avenue
Mail Code USH-4A3L
Houston, Texas 77058
Voice:   (281) 282-2975
Page:(713) 736-8275
Fax: (281) 282-3583
E-Mail:  [EMAIL PROTECTED]

All opinions expressed by me are mine and may not agree with my employer or any 
person, company, or thing, living or dead, on or near this or any other
planet, moon, asteroid, or other spatial object, natural or manufactured, since 
the beginning of time.


--
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: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread Neale Ferguson
cat /proc/sysinfo

On Fri, 2007-02-23 at 08:34 -0600, Roach, Dennis wrote:
 Is there a way to get the VM 5.2 user ID or the z series LPAR name under 
 Linux?
 What I would like to do is use this to determine the hostname and the IP 
 address of the Linux system, instead of having to change it in each one.

--
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: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread David Kreuter
The CP QUERY USERID command can be issued a variety of ways from a linux 
virtual machine.

from a 3270 use #CP Q USERID

within linux you can install and use:
Neale Ferguson's CPINT package
IBM vmcp driver

If you are on a vswitch (as I recall when we chatted in Tampa) do from TCPMAINT 
or MAINT CP QUERY VSWITCH DETAILS
I love the command, it includes the names of all vm's using a vswitch and the 
ip info.

David



-Original Message-
From: Linux on 390 Port on behalf of Roach, Dennis
Sent: Fri 2/23/2007 9:34 AM
To: LINUX-390@VM.MARIST.EDU
Subject: VM User ID or z series LPAR name under RHEL4 U3
 
Is there a way to get the VM 5.2 user ID or the z series LPAR name under Linux?
What I would like to do is use this to determine the hostname and the IP 
address of the Linux system, instead of having to change it in each one.

Dennis Roach
United Space Alliance
600 Gemini Avenue
Mail Code USH-4A3L
Houston, Texas 77058
Voice:   (281) 282-2975
Page:(713) 736-8275
Fax: (281) 282-3583
E-Mail:  [EMAIL PROTECTED]

All opinions expressed by me are mine and may not agree with my employer or any 
person, company, or thing, living or dead, on or near this or any other
planet, moon, asteroid, or other spatial object, natural or manufactured, since 
the beginning of time.


--
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: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread Alan Altmark
On Friday, 02/23/2007 at 08:34 CST, Roach, Dennis
[EMAIL PROTECTED] wrote:
 Is there a way to get the VM 5.2 user ID or the z series LPAR name under
Linux?
 What I would like to do is use this to determine the hostname and the IP

 address of the Linux system, instead of having to change it in each one.

1. Use a layer 2 VSWITCH and put a DHCP server on it (see prior posts
about needed Linux qeth config changes)
2. Assign a unique MACPREFIX to your system in SYSTEM CONFIG.  The
MACPREFIX is the high-order 3 bytes of the MAC address.
3. Predefine the MACID on the NICDEF in the directory.  This is is the
low-order 3 bytes of the MAC address.
4. Concatenate the MACPREFIX and MACID to get the MAC address of that
particular virtual NIC.  Put that information in the DHCP configuration
for static assignment.

Given MACPREFIX 020001 and MACID 50:

host alan {
   hardware ethernet 02:00:01:00:00:50;
   fixed-address 192.168.1.50;
}
-- or --
host alan {
   hardware ethernet 40:00:80:00:00:C0;
   fixed-address 192.168.1.50;
}

(I can't remember whether the VM-specified MAC address is reversed by the
time it reaches the canonical format or not.)

If you already have a DHCP server on the LAN segment (even if not on VM),
add the MAC address/IP info to that server instead.  (I haven't seen any
dhcpd config options to limit the MAC addresses it will serve.)

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


Re: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread Mark Post
 On Fri, Feb 23, 2007 at 11:33 AM, in message
[EMAIL PROTECTED], Alan
Altmark [EMAIL PROTECTED] wrote: 
-snip-
 Given MACPREFIX 020001 and MACID 50:
 
 host alan {
hardware ethernet 02:00:01:00:00:50;
fixed- address 192.168.1.50;
 }
 --  or --
 host alan {
hardware ethernet 40:00:80:00:00:C0;
fixed- address 192.168.1.50;
 }
 
 (I can't remember whether the VM- specified MAC address is reversed by the
 time it reaches the canonical format or not.)

Ok, you're going to have to explain this one.  Exactly in what way is 
02:00:01:00:00:50 a reversal of 40:00:80:00:00:C0?  That doesn't look right, 
even if you reverse the bits in each hex character.


Mark Post

--
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: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread Alan Altmark
On Friday, 02/23/2007 at 10:35 MST, Mark Post [EMAIL PROTECTED] wrote:
  On Fri, Feb 23, 2007 at 11:33 AM, in message
 [EMAIL PROTECTED],
Alan
 Altmark [EMAIL PROTECTED] wrote:
 -snip-
  Given MACPREFIX 020001 and MACID 50:
 
  host alan {
 hardware ethernet 02:00:01:00:00:50;
 fixed- address 192.168.1.50;
  }
  --  or --
  host alan {
 hardware ethernet 40:00:80:00:00:C0;
 fixed- address 192.168.1.50;
  }
 
  (I can't remember whether the VM- specified MAC address is reversed by
the
  time it reaches the canonical format or not.)

 Ok, you're going to have to explain this one.  Exactly in what way is
 02:00:01:00:00:50 a reversal of 40:00:80:00:00:C0?  That doesn't look
right,
 even if you reverse the bits in each hex character.

Well, uh, ummm CHUCKIE!  HE DID IT!

Ok, ok, so my mirror is broken.  (Hush, peanut gallery!) I can't
bit-reverse 0x50 correctly.  :-)   0101   =  1010 = 0A
so make that
 hardware ethernet 40:00:80:00:00:0A;

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


Re: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread David Boyes
 If you already have a DHCP server on the LAN segment (even if not on
VM),
 add the MAC address/IP info to that server instead.  (I haven't seen
any
 dhcpd config options to limit the MAC addresses it will serve.)

One easy way (at least with dhcp3) is to define a group, and put the MAC
addresses of the hosts into the group entry. You can then specify the
group in a 'scope' entry, and the DHCP server will serve only members of
the group with that scope. If the MAC address does not qualify for
membership in the scope, no answer is returned to that MAC address. 

--
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: VM User ID or z series LPAR name under RHEL4 U3

2007-02-23 Thread David Boyes
Modern DHCP servers don't require the bit reversal evil any longer. It was
much more of a big deal for token-ring adapters than Ethernet, anyway. Use
the canonical form everywhere -- it's Just Right.

It would be interesting if VM set the default MAC prefix to one of the
user-managed spaces as the systemwide default, though. Oh, well, another
requirement...8-).

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