uname.1 (2010 09)
u
uname(1) uname(1)
NAME
uname - display information about computer system; set node name (system name)
SYNOPSIS
uname [-ailmnrsv]
uname [-S nodename ]
DESCRIPTION
In the first form above, the
uname
command displays selected information about the current computer
system, derived from the
utsname structure (see uname(2)).
In the second form,
uname sets the node name (system name) that is used in the
utsname structure.
Options
uname recognizes the options listed below. If you enter several options, the output is always in the order
shown for the -a option.
none Equivalent to
-s.
-a Display the options below in the following order, separated by blanks.
-s -n -r -v -m -i -l
-i Display the machine identification number (or the node name, if the machine
identification number cannot be determined). This option cannot display the unique
machine identification number. For getting the unique machine identification
number refer to the getconf command or confstr call. See getconf (1)) and
confstr (3C).
-l Display the license level of the operating system. 128-, 256-, and unlimited-user
licenses are shown as unlimited-user license
.
-m Display the machine hardware and model names. On Itanium(R)-based systems,
this option always displays ia64. See WARNINGS .
-n Display the node name (system name) by which the system is usually known in a
UUCP network. See WARNINGS .
-r Display the current release level of the operating system.
-s Display the name of the operating system. On standard HP-UX systems, this option
always displays HP-UX.
-v Display the current version level of the operating system.
-S nodename Change the node name (system name) to nodename . nodename is restricted to
UTSLEN-1 characters (see uname(2)). See WARNINGS. Only users with
appropriate privileges can use the -S option.
EXAMPLES
When you execute the command
uname -a, it produces output like the following:
HP-UX myhost A.09.01 C 9000/750 2015986034 32-user license
The displayed fields are interpreted as follows:
HP-UX The operating system name (option -s).
myhost The UUCP network system name by which the system is known (-n).
B.11.00 The operating system release identifier (-r).
A The operating system version identifier (-v).
9000/889 The machine and model numbers (-m).
2015986034 The machine identification number (-i).
32-user license The operating system license level (-l).
WARNINGS
It is recommended that the
model command or the getconf command be used to obtain the model
name, since future model names may not be compatible with uname. See model (1) and getconf (1).
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1