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

Jeff Michaud michaud at vaxcpu.nac.dec.com
Fri Jun 2 07:14:45 AEST 1989


> 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 <standard/disclaimer.h>



More information about the Comp.unix.ultrix mailing list