• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 724
  • Last Modified:

Where can I find 'uname' outputs for the major Unix OS's?

I am writing a script and would like to be able to parse the output of the uname command (specifically the OS name, and OS version).  

For example, I know on a HP-UX 10.20 system, "uname -n" will respond with "HP-UX".

Where can I find the output for the following Unix operating systems:

AIX 4.3
AIX 5.2
Solaris 7,8,9
HP-UX 11i
Redhat Enterprise Server 2,3
Sco

I don't have access to these systems, otherwise I would run the command myself.

Thanks....
0
ddurmon
Asked:
ddurmon
3 Solutions
 
TintinCommented:
Solaris

uname -s  will report SunOS
uname -r  will report the SunOS version number, ie: 5.7, 5.8 or 5.9

Redhat ES2,3

uname -s will report Linux
uname -r will report the Linux kernel version (this will vary depending on what kernel update you are running)
cat /etc/redhat-release will report the Redhat release details

Don't have access to the other flavours.
0
 
ahoffmannCommented:
AIX:

uname -s  reports AIX
echo `uname -r`"."`uname -v` reports release version (not shure for newer versions of AIX)

HP-UX:
uname -s reports HP-UX
uname -r reports release version


IRIX:
uname -s reports IRIX
uname -r reports release version


FreeBSD:
uname -s reports FreeBSD
uname -r reports release version


SCO:
uname -s reports scounix
uname -r reports release version
0
 
brettmjohnsonCommented:
Mac OS X:
uname -s reports Darwin
uname -r is release version
0
 
ddurmonAuthor Commented:
Thanks to everyone who replied.  I split the points based on the number of OS's given in your answers.  
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now