Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


uname command (displays information about the OS or hardware)

Organization of this page

Format

(Windows only) uname [-a] [-m] [-n] [-r] [-s] [-v] [-w]
(UNIX only) uname [-a] [-m] [-n] [-r] [-s] [-v]

Description

This command outputs information about the OS, the system host name, or hardware to the standard output.

Arguments

When this command is executed with no options specified, the processing is the same as when the -s option is specified.

-a
(Windows only)

When the -a option is specified and the -w option is omitted, the command displays the following information all on one line in the order shown in the following:

  • OS name (always Windows)

  • Node name

  • Information about the OS

  • Most recent service pack installed on the OS

  • OS version

  • Machine (hardware) type

When the -a option is specified and the -w option is also specified, the command displays the following information one item per line in the order shown in the following:

  • OS name, installation folder for that OS, and partition information for the disk on which the OS is installed

  • Node name

  • OS release (always unknown)

  • OS version

  • Machine (hardware) type

(UNIX only)

The command displays the following information all on one line in the order shown in the following:

  • OS name

  • Node name

  • OS release

  • OS version

  • Machine (hardware) type

-m

Specifies that the type of machine (hardware) is to be displayed.

-n

Specifies that the node name is to be displayed.

-r

Specifies that the OS release is to be displayed. In Windows, unknown is always displayed.

-s

Specifies that the OS name is to be displayed.

In Windows, the command displays the following information as the OS name:

  • When the -w option is omitted, the command always displays Windows.

  • When the -w option is also specified, the command displays the OS name, installation folder for that OS, and partition information for the disk on which the OS is installed.

-v

Specifies that the OS version is to be displayed.

-w (Windows only)

Specifies that the information is to be displayed in the format used in JP1/Advanced Shell version 10-01 or earlier. When the -w option is specified, the command displays the information as follows:

  • The information about each option is displayed on a single line.

  • The information that is displayed by the -a and -s options is variable. For details, see the description of each option.

If only this option is specified, the command's processing is the same as when the -w and -s options are both specified.

Return codes

Return code

Meaning

0

Normal termination

1 or greater

Error termination

Notes

Usage examples