Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!decwrl!shlump.dec.com!vaxcpu.nac.dec.com!michaud From: michaud@vaxcpu.nac.dec.com (Jeff Michaud) Newsgroups: comp.unix.ultrix Subject: Re: How do you identify VAX/PMAX cpu's from software? Keywords: CPU identification Message-ID: <2675@shlump.dec.com> Date: 1 Jun 89 21:14:45 GMT References: <893@sceard.COM> <7005@cbmvax.UUCP> <105@asihub.UUCP> <1241@riscy.dec.com> <743@dinorah.wustl.edu> Sender: news@shlump.dec.com Distribution: na Organization: DEC Lines: 18 > What you do is look at the front panel of the computer (or the invoice > for the system) and then write a shell script /etc/what_kind_of_system_this_is > that echos said information. This then has the advantage of being able to > be run on lots of different kinds of systems. Even to be extended to the > determination of cabinet configuration, color, or line voltage... Take a look at the script /bin/machine on the DS3100 (PMAX). It echos the machine type as `mips'. Hopefully the next release of ULTRIX on the VAX will have such a script also but will echo `vax'. For now though # Assume "vax" by default set Machine = "vax" if( -x /bin/machine ) set Machine = `/bin/machine` Not exactly a "/etc/what_kind_of_system_this_is", but does allow you to cleanly ifdef things like your .login and .cshrc. Jeff #include