[comp.unix.aix] Unique ID for a RS6000 Host.

csko@cybaswan.UUCP (y w ko) (01/13/91)

Hi,
	I am currently involved in porting software to an RS6000 320 running 
AIX 3.1.
In order to implement software protection, we need to be able to uniquely 
identify a particular RS6000 m/c on which the software is licensed. 
	On SUN's, there is a system call "gethostid" which does just that. 
It returns an id. no. which is picked up from the CPU board and is unique 
across all SUN hardware.
	Now, does anyone know if there is an equivalent on an RS6000?

	Thanks a lot in advance!

											ywko

jfh@greenber.austin.ibm.com (John F Haugh II) (01/15/91)

In article <2230@cybaswan.UUCP> csko@cybaswan.UUCP (y w ko) writes:
>	On SUN's, there is a system call "gethostid" which does just that. 
>It returns an id. no. which is picked up from the CPU board and is unique 
>across all SUN hardware.
>	Now, does anyone know if there is an equivalent on an RS6000?

The uname() system call returns a (struct utsname *) filled in with
information about the system.  One of the members in that structure,
machine, contains the machine serial number.
-- 
John F. Haugh II      |      I've Been Moved     |    MaBellNet: (512) 838-4340
SneakerNet: 809/1D064 |          AGAIN !         |      VNET: LCCB386 at AUSVMQ
BangNet: ..!cs.utexas.edu!ibmchs!auschs!snowball.austin.ibm.com!jfh (e-i-e-i-o)