Re: Hostid Value - CPUID

2002-03-29 Thread Post, Mark K
ooted, and /proc/sysinfo is there now. Mark Post -Original Message- From: Oliver Paukstadt [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Re: Hostid Value - CPUID On Fri, 29 Mar 2002, Post, Mark K wrote: > What kernel level made this a

Re: Hostid Value.

2002-03-29 Thread Alan Altmark
On Friday, 03/29/2002 at 10:27 CST, "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: > Greetings; > > I guess you mean it is a privileged instruction in linux/390 because it > isn't in VM. This leads to the strange situation where you need to be a > privileged linux user to issue general user CP comma

Re: Hostid Value - CPUID

2002-03-29 Thread Oliver Paukstadt
On Fri, 29 Mar 2002, Post, Mark K wrote: > What kernel level made this available? My 2.4.9 system does not have it, so > it must be later than that. November last year for 2.4.7: http://www10.software.ibm.com/developerworks/opensource/linux390/current2_4.shtml#nov232001-linux Report this as a b

Re: Hostid Value - CPUID

2002-03-29 Thread Post, Mark K
What kernel level made this available? My 2.4.9 system does not have it, so it must be later than that. Mark Post -Original Message- From: Oliver Paukstadt [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: Re: Hostid Value - CPUID -snip

Re: Hostid Value.

2002-03-29 Thread Dennis G. Wicks
tmark cc: Sent by: LinuxSubject: Re: Hostid Value. on 390 Port <[EMAIL PROTECTED] ARIST.EDU> 03/29/02 08:17 AM Ple

Re: Hostid Value - CPUID

2002-03-29 Thread Oliver Paukstadt
On Fri, 29 Mar 2002, Dennis G. Wicks wrote: > Hey, that's neat! > > Even has the nuber of processors assigned and the type of hardware. > Too bad it doesn't also have the hardware model. That might be useful > for analysis programs. /proc/sysinfo has the complete information available through STS

Re: Hostid Value.

2002-03-29 Thread Alan Altmark
On Friday, 03/29/2002 at 07:55 CST, "Dennis G. Wicks" <[EMAIL PROTECTED]> wrote: > I can't tell you how to get it in C but you shouldn't need root. > > Querying the CPUid is a class G (General/everybody/anybody) command. > > Good Luck! > Dennis You need the Neale's cpint package if you want to is

Re: Hostid Value - CPUID

2002-03-29 Thread Dennis G. Wicks
cc: Sent by: Linux on 390 Subject: Re: Hostid Value - CPUID Port <[EMAIL PROTECTED]> 03/29/02 08:21 AM Please respond to Linux on 390 Port Try reading the /proc/cpuinfo file.

Re: Hostid Value - CPUID

2002-03-29 Thread Oliver Paukstadt
On Fri, 29 Mar 2002, Ferguson, Neale wrote: > Try reading the /proc/cpuinfo file. /proc/sysinfo is much better but only available in up-to-date kernels. Greetings Oliver Paukstadt +++LINUX++ +++Manchmal stehe ich sogar nachts auf u

Re: Hostid Value - CPUID

2002-03-29 Thread Ferguson, Neale
Try reading the /proc/cpuinfo file.

Re: Hostid Value.

2002-03-29 Thread Dennis G. Wicks
ct: Re: Hostid Value. on 390 Port <[EMAIL PROTECTED] ARIST.EDU> 03/29/02 03:35 AM Please respond to Linux on 390 Port &g

Re: Hostid Value.

2002-03-29 Thread Reinald Verheij
>> You can write a tiny app to grab the IBM cpu id >> hack it up a bit and dump it in hostid if you want how do I grab the IBM cpu id from a C program (which has no root privilege)? Reinald

Re: Hostid Value.

2002-03-28 Thread Rick Troth
I was wrong. I misunderstood the nature of gethostid() and therefore misunderstood the relationship of 'hostid' to it. Thanks to those who have indulged me in re-education.

Re: Hostid Value.

2002-03-28 Thread Alan Cox
> I submit to you that the inspriation for 'hostid' on Linux > comes from 'hostid' on Solaris, which does NOT report something > tied to the IP address (as gethostid() would). I further submit Its way older than Solaris > that 'hostid' on Linux does not necessarily report something > t

Re: Hostid Value.

2002-03-28 Thread Rick Troth
I have spoken from experience rather than from the spec. Here I am scratching my head trying to figure out why Willem and Alan are confusing 'hostid' with gethostid(), and lo and behold I see cross reference when I bother to read the man pages. Sorry. HOWEVER: hostid != gethostid

Re: Hostid Value.

2002-03-28 Thread Alan Cox
> And I agree with Alan Cox that things like > get-me-a-world-unique-64-bit-number() should be obtained by something > other than the gethostid(). Make such a call part of the POSIX standard > or something. It's not a networking thing. gethostid(), for better or > worse, is. For pseudo-random

Re: Hostid Value.

2002-03-28 Thread Alan Altmark
On Thursday, 03/28/2002 at 08:17 CST, Rick Troth <[EMAIL PROTECTED]> wrote: > When I said it should be "retooled" > what I meant was that for some HW platforms (like zSeries) > there is a hardware concept of a processor serial number. > On such platforms, 'hostid' should report that value > or s

Re: Hostid Value.

2002-03-28 Thread Rick Troth
When I said it should be "retooled" what I meant was that for some HW platforms (like zSeries) there is a hardware concept of a processor serial number. On such platforms, 'hostid' should report that value or should report something derived from it and not something derived from IP address or fi

Re: Hostid Value.

2002-03-28 Thread Dougie G Lawson
>For S/390 you simply need to set the hostid in the file at boot appropriately >by default. (/etc/hostid) On SuSE 7.0 the hostid file is /var/adm/hostid Setting it is easy from root (I assume it checks for uid(0) rather than root - haven't looked at the source yet) with `hostid 12345`. So I susp

Re: Hostid Value.

2002-03-27 Thread Willem Konynenberg
"Rick Troth" wrote: > 'hostid' should probably be retooled for zSeries. "Retooled" is probably a somewhat "heavy" term for optionally calling the sethostid function once during installation, which will store its argument value in /etc/hostid, from where gethostid will fetch it henceforth. > In m

Re: Hostid Value.

2002-03-27 Thread Alan Cox
> Linux then emulated this nifty tool, but did so sloppily.=20 > Well ... for older PCs what we have is better than nothing, IMHO.=20 > But again, should be retooled so that where the processor=20 > supports a serial number, that is what gets reported.=20 > (No comments about the privacy conce

Re: Hostid Value.

2002-03-27 Thread Steve Kotzmoyer
Just fyi, on OS/390 or z/OS 1.x, gethostid returns the 32 bit IP address of the primary interface. Many applications written for the mainframe expect this behavior. Steve Alan Cox wrote: > > > Linux then emulated this nifty tool, but did so sloppily.=20 > > Well ... for older PCs what we have

Re: Hostid Value.

2002-03-27 Thread Rick Troth
'hostid' should probably be retooled for zSeries. In my experience, it started with Sun where each motherboard had (has) a unique serial number. Memory is a little fuzzy but it was (is) probably tied to the MAC address (ethernet HW addr) which followed (follows) the motherboard in many case

Re: Hostid Value.

2002-03-27 Thread Post, Mark K
t: Wednesday, March 27, 2002 7:09 AM To: [EMAIL PROTECTED] Subject: Hostid Value. Hello, We currently run Linux under VM (2.4.0) in LPAR on S390 G6 processor. When we issue 'HOSTID - V' cmd we get a hex and a decimal value returned. Can anyone tell us what this value means or is tak

Re: Hostid Value.

2002-03-27 Thread Dougie G Lawson
Eric, Try `man hostid` On my SuSE Intel system (9.180.130.22) I get this: root@silica ~> hostid -v Hostid is 3020494466 (0xb4091682) root@silica ~> So hostid in that case is giving the, sort of, little-endian form of 9.180.130.22 (0x09B48216). Regards, Dougie Lawson -- ITS Technical Support

Hostid Value.

2002-03-27 Thread Eric Lawler
stack and we do not have a mac address which Linux running on an Intel for example returns as the Hostid value. See example below of cmd issued on Linux in a virtual machine.:- hostid -v Hostid is 134881268 (0x80a1ff4) Thanks, Eric Lawler. Eric Lawler, Infrastructure Support (Platforms), Barcl