Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!decwrl!shlump.dec.com!riscy.dec.com!croton.DEC.COM!frank From: frank@croton.DEC.COM (Frank Wortner) Newsgroups: comp.unix.ultrix Subject: Re: How do you identify VAX/PMAX cpu's from software? Keywords: CPU identification Message-ID: <1242@riscy.dec.com> Date: 30 May 89 16:00:05 GMT References: <40619@bbn.COM> <105@asihub.UUCP> <7005@cbmvax.UUCP> Sender: news@riscy.dec.com Distribution: na Lines: 28 In article <40619@bbn.COM>, fkittred@bbn.com (Fletcher Kittredge) writes: > In article <105@asihub.UUCP> dan@asihub.UUCP (Dan O'Neill) writes: > > Is there a way to determine the class of a VAX or PMAX cpu under > > Ultrix? We would like to be able to tell the difference between a > > VAXstation 3200, VAXstation 3600, VAXstation 3100 and a DECstation > > 3100 (pmax) from within a program. Any and all suggestions are > > appreciated. > > Well, I don't have access to all of these systems, so this is a guess. Try > the uname() system call and check the resulting structure. If DEC > did a smart implementation, then the resulting information should tell > you what you need. At minimum it should at least tell you if > your CPU is a MIPS or a VAX chip and the name and version of the O/S. > Fletcher, you are right. Ultrix uname does exactly the minimum you describe. Unfortunately, it does not descriminate amoung the various CPU implementations. That is, uname will say that the machine is a VAX, but nothing more. It could be a 780, 3600, or whatever. I'm afraid that bit-twiddling of magic words obtained from the kernel is needed to get more information. Regards, Frank All opinions expressed are mine. They can be yours for a small fee.