Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!chukran.austin.ibm.com!rudy From: rudy@chukran.austin.ibm.com Newsgroups: comp.unix.aix Subject: Re: lscfg from a subroutine Message-ID: <4347@awdprime.UUCP> Date: 27 Nov 90 01:10:06 GMT References: <1990Nov23.214323.12835@odi.com> Sender: news@awdprime.UUCP Reply-To: chukran@austin.iinus1.ibm.com () Organization: IBM Advanced Workstation Division Lines: 16 In article <1990Nov23.214323.12835@odi.com>, benson@odi.com (Benson I. Margulies) writes: > Can anyone tell me how to get the sysplanar "processor identification" > from inside a program, other than reading a pipe from lscfg? I need > a machine serial number type item, and gethostid returns the IP address. I believe you want to use the uname system call. As a command, uname -m reports that number. ********************************************************************* Rudy Chukran | EMAIL: IBM AIX Porting Center | RSCS: CHUKRAN at AUSTIN 11400 Burnet Rd. | AWDnet: rudy@chukran.austin.ibm.com Internal ZIP 2830 | internet: chukran@austin.iinus1.ibm.com Austin, Texas 78758 | Voice: 512-838-4674 Tieline: 678-4674 *********************************************************************