Class | Sys::Uname |
In: |
lib/windows/sys/uname.rb
lib/unix/sys/uname.rb lib/unix/sys/uname.rb |
Parent: | Object |
The Uname class encapsulates information about the system.
VERSION | = | '0.9.0' | ||
UnameStruct | = | Struct.new("UnameStruct", *fields) | The UnameStruct is used to store platform information for some methods. | |
VERSION | = | '0.9.0' | The version of the sys-uname library | |
BUFSIZE | = | 65 | ||
BUFSIZE | = | 32 | ||
BUFSIZE | = | 257 | ||
BUFSIZE | = | 256 | ||
CTL_HW | = | 6 | ||
HW_MODEL | = | 2 | ||
SI_SYSNAME | = | 1 | ||
SI_HOSTNAME | = | 2 | ||
SI_RELEASE | = | 3 | ||
SI_VERSION | = | 4 | ||
SI_MACHINE | = | 5 | ||
SI_ARCHITECTURE | = | 6 | ||
SI_HW_SERIAL | = | 7 | ||
SI_HW_PROVIDER | = | 8 | ||
SI_SRPC_DOMAIN | = | 9 | ||
SI_PLATFORM | = | 513 | ||
SI_ISALIST | = | 514 | ||
SI_DHCP_CACHE | = | 515 | ||
UnameStruct | = | Struct.new("UnameStruct", *fields) | ||
VERSION | = | '0.9.0' | The version of the sys-uname library | |
BUFSIZE | = | 65 | ||
BUFSIZE | = | 32 | ||
BUFSIZE | = | 257 | ||
BUFSIZE | = | 256 | ||
CTL_HW | = | 6 | ||
HW_MODEL | = | 2 | ||
SI_SYSNAME | = | 1 | ||
SI_HOSTNAME | = | 2 | ||
SI_RELEASE | = | 3 | ||
SI_VERSION | = | 4 | ||
SI_MACHINE | = | 5 | ||
SI_ARCHITECTURE | = | 6 | ||
SI_HW_SERIAL | = | 7 | ||
SI_HW_PROVIDER | = | 8 | ||
SI_SRPC_DOMAIN | = | 9 | ||
SI_PLATFORM | = | 513 | ||
SI_ISALIST | = | 514 | ||
SI_DHCP_CACHE | = | 515 | ||
UnameStruct | = | Struct.new("UnameStruct", *fields) |
uname | -> | uname_c |
uname | -> | uname_c |
The string consisting of the ASCII hexidecimal encoding of the name of the interface configured by boot(1M) followed by the DHCPACK reply from the server.
The string consisting of the ASCII hexidecimal encoding of the name of the interface configured by boot(1M) followed by the DHCPACK reply from the server.
The ASCII representation of the hardware-specific serial number of the physical machine on which the function is executed.
The ASCII representation of the hardware-specific serial number of the physical machine on which the function is executed.
Returns the nodename. This is usually, but not necessarily, the same as the system‘s hostname.
Returns the name of this node within the communications network to which this node is attached, if any. This is often, but not necessarily, the same as the host name.
Example:
Uname.nodename # => 'your_host.foo.com'
Returns the name of this node within the communications network to which this node is attached, if any. This is often, but not necessarily, the same as the host name.
Example:
Uname.nodename # => 'your_host.foo.com'
Returns the name of this implementation of the operating system.
Example:
Uname.sysname # => 'SunOS'
Returns the name of this implementation of the operating system.
Example:
Uname.sysname # => 'SunOS'
Returns the version plus patch information of the operating system, separated by a hyphen, e.g. "2915-Service Pack 2".