Determining machine architecture and ULTRIX version

David Kirkpatrick davidk at pvi.UUCP
Tue Oct 24 08:25:27 AEST 1989


Are there any reliable methods for determining the architecture of a 
machine running ULTRIX from a bourne shell script?  I am looking for
something similar to SUN's "arch" command, which returns a string 
containing "sun3", "sun4", etc.. depending on the machine.  

In a similar vein, I would also like to determine the version of ULTRIX 
that is running, and the version of DECWindows (or UWS) programmatically,
(bourne shell script).  

I have tried things like the following:

   strings /vmunix |grep Ultrix        which yields the following line:
 
    Ultrix Worksystem V2.0 (Rev. 7) System #1: Tue Mar 21 20:01:54 MST 1989

Unfortunately, this only tells me the version of Workstation software 
(DECwindows), and not the version of ULTRIX.

Any help on either or both of the questions would be greatly appreciated.  
Please send replies to:

David Kirkpatrick

...{ncar, boulder}!pvi!davidk        
(303) 530-9000  x-435



More information about the Comp.unix.ultrix mailing list