How do you identify VAX/PMAX cpu's from software?

Frank Wortner frank at croton.DEC.COM
Wed May 31 02:00:05 AEST 1989


In article <40619 at bbn.COM>, fkittred at bbn.com (Fletcher Kittredge) writes:

> In article <105 at asihub.UUCP> dan at 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.



More information about the Comp.unix.ultrix mailing list