[indiana-discuss] uname output reference
Dennis Clarke
blastwave at gmail.com
Thu Jul 3 13:02:11 PDT 2008
On Thu, Jul 3, 2008 at 5:03 PM, Hugo Garcia <hgarcia at bluekorn.com> wrote:
> Hi
>
> I have to modify a sh script that currently uses 'uname -s' to to
> distinquish between linux, freebsd and solaris. I would like to be
> more specific and add a test for the different versions of
> OpenSolaris. Is there a table somewhere with the different outputs
> from uname on diff versions of OpenSolaris?
>
> For example my 'uname -a; is
>
> $ uname -a
> SunOS boulder 5.11 snv_91 i86pc i386 i86pc Solaris
>
> What is it for an x86 32 bit machine? For a Sparc platform?...
That is x86 arch and we do not know about the proc from that data.
Try :
$ uname -X
System = SunOS
Node = aequitas
Release = 5.11
KernelID = snv_91
Machine = i86pc
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
old Solaris 8 on Sparc looks like
# cat /etc/release
Solaris 8 2/04 s28s_hw4wos_05a SPARC
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Assembled 08 January 2004
# uname -X
System = SunOS
Node = odin
Release = 5.8
KernelID = Generic_108528-29
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2
#
More information about the indiana-discuss
mailing list