operating system
The operating system
type provides information about the operating system and computer.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Creation
Returns the operating system object.
- Q: operating system
- A: Win8.1 6.3.9600
- Q: operating system
- A: Mac OS X 10.10.2
- Q: operating system
- A: Linux Ubuntu 14.04.1 LTS (3.13.0-33-generic)
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
Returns whether the computer is big-endian.
- Q: big endian of operating system
- A: False
Version | Platforms |
---|---|
9.1.1117.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
9.5.13.130 | Raspbian |
Returns the most significant 16 bits of the build number.
- Q: (build number high of it, version of it, name of it) of operating system
- A: 0, 6.3.9600, Win8.1
Version | Platforms |
---|---|
8.0.584.0 | Windows |
9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns the least significant 16 bits of the build number.
- Q: (build number low of it, version of it, name of it) of operating system
- A: 9600, 6.3.9600, Win8.1
Version | Platforms |
---|---|
8.0.584.0 | Windows |
9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns the build number of the operating system.
- Q: (build number of it, version of it, name of it) of operating system
- A: 9600, 6.3.9600, Win8.1
Version | Platforms |
---|---|
8.0.584.0 | Windows |
9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns a string corresponding to the build number of the OS.
- Q: (build of it, name of it) of operating system
- A: Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64, Mac OS X
- Q: (build of it, name of it) of operating system
- A: #58-Ubuntu SMP Tue Jul 29 16:45:05 UTC 2014, Linux Ubuntu 14.04.1 LTS
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
9.0.586.0 | Windows |
9.5.13.130 | Raspbian |
Returns a string that corresponds to the codename of the given release. For example, Ubuntu 8.04 has the codename of 'hardy'.
- Q: (codename of it, name of it) of operating system
- A: trusty, Linux Ubuntu 14.04.1 LTS
Version | Platforms |
---|---|
8.1.535.0 | AIX, Debian, HP-UX, Red Hat, SUSE, Solaris, Ubuntu |
9.5.5.193 | Mac |
9.5.13.130 | Raspbian |
Returns the Corrective Service Disk version of the operating system. This is the szCSDVersion
as returned by the GetVersionEx function. The format varies depending on the installed service packs. For WinNT it contains a string such as 'Service Pack 3', for Win95 it can contain a string such as 'B'.
- Q: (csd version of it, name of it) of operating system
- A: , Win8.1
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the OS name in a human readable format following different rules for each OS.
On Windows, it returns the value in the ProductName
key.
Example of QnA ran on Windows.
- Q: display name of operating system
- A: Windows Server 2022 Datacenter
On Unix systems, it returns the value of the PRETTY_NAME
key in the os-release file.
Example of QnA ran on Linux.
- Q: display name of operating system
- A: Oracle Linux Server 7.8
On Mac, it returns the macOS codename
.
Example of QnA ran on macOS.
- Q: display name of operating system
- A: macOS Monterey
Version | Platforms |
---|---|
11.0.2.0 | AIX, Debian, Mac, Raspbian, Red Hat, Solaris, SUSE, Ubuntu, Windows |
Returns the Windows operating system version. This inspector returns valid information only on Windows 10 20H2 and later Windows 10 versions. Running this inspector on other Windows operating systems results in an error referring to a nonexistent object.
Running the inspector on Windows 10, OS Build 19042.928:
- Q: display version of operating system
- A: 20H2
Version | Platforms |
---|---|
10.0.3.0 | Windows |
This inspector returns one of the following hypervisors:
- "Google Cloud Engine"
- "Hyper-V"
- "KVM"
- "QEMU"
- "VIOS"
- "VMware"
- "VirtualBox"
- "Xen"
Running this inspector on an operating system with a different hypervisor or without an hypervisor results in an error referring to a nonexistent object.
Version | Platforms |
---|---|
9.5.3.211 | Windows |
9.5.7.90 | Debian, Red Hat, SUSE, Solaris, Ubuntu |
Returns True
if the computer is running Linux.
Example of QnA ran on Linux Ubuntu 20.04.4 LTS.
- Q: linux of operating system
- A: True
Example of QnA ran on Windows Server 2022.
- Q: linux of operating system
- A: False
Version | Platforms |
---|---|
11.0.2.0 | AIX, Debian, Mac, Raspbian, Red Hat, Solaris, SUSE, Ubuntu, Windows |
Returns True
if the computer is little-endian.
- Q: little endian of operating system
- A: True
Version | Platforms |
---|---|
9.1.1117.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
9.5.13.130 | Raspbian |
Returns True
if the computer is a Macintosh.
- Q: (mac of it, name of it) of operating system
- A: True, Mac OS X
- Q: (mac of it, name of it) of operating system
- A: False, Win8.1
- Q: (mac of it, name of it) of operating system
- A: False, Linux Ubuntu 14.04.2 LTS
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the major version of the operating system.
- Q: (major version of it, version of it, name of it) of operating system
- A: 6, 6.3.9600, Win8.1
- Q: (major version of it, version of it, name of it) of operating system
- A: 14, 14.04, Linux Ubuntu 14.04.1 LTS
- Q: (major version of it, version of it, name of it) of operating system
- A: 10, 10.10.2, Mac OS X
Version | Platforms |
---|---|
8.0.584.0 | Windows |
9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns the result of the GetSystemMetrics function for the integer argument. The integer constants and their meaning are defined by Microsoft. For example, the integer 87 indicates that the operating system is a media center edition.
- Q: metric 87 of operating system
- A: 0
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the minor version of the operating system.
- Q: (minor version of it, version of it, name of it) of operating system
- A: 3, 6.3.9600, Win8.1
- Q: (minor version of it, version of it, name of it) of operating system
- A: 4, 14.04, Linux Ubuntu 14.04.1 LTS
- Q: (minor version of it, version of it, name of it) of operating system
- A: 10, 10.10.2, Mac OS X
Version | Platforms |
---|---|
8.0.584.0 | Windows |
9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns the name of the operating system as a string.
- Q: name of operating system
- A: Win8.1
- Q: name of operating system
- A: Linux Ubuntu 14.04.1 LTS
- Q: name of operating system
- A: Mac OS X
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the rate at which the performance counter is being incremented per second. This value comes from the QueryPerformanceFrequency function.
- Q: performance counter frequency of operating system
- A: 2938672 hertz
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the current 64-bit performance counter value. This value comes from the QueryPerformanceCounter function.
- Q: performance counter of operating system
- A: 11657096717
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the dwPlatformId
as returned by the GetVersionEx function. Possible values are 1 for Win9x and 2 for WinNT.
- Q: platform id of operating system
- A: 2
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the result of the GetProductInfo function. The inspector only provides meaningful results for Windows Vista and newer versions of the OS.
- Q: (product info numeric of it, name of it) of operating system
- A: 6, Win8.1
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns a string derived from the GetProductInfo function. Some example values are 'Business', 'Cluster Server', 'Enterprise', 'Home', etc.
- Q: (product info string of it, name of it) of operating system
- A: Business, Win8.1
Version | Platforms |
---|---|
8.0.584.0 | Windows |
8.2.1078.0 | Mac |
9.0.586.0 | AIX, Debian, HP-UX, Red Hat, SUSE, Solaris, Ubuntu |
9.5.13.130 | Raspbian |
Returns the "ReleaseId" of the Windows operating system which indicates the update level. This is also included in the base string representation of the <operating system> inspector. A value is returned only if the "ReleaseId" is defined on the operating system.
Version | Platforms |
---|---|
9.5.0.311 | Windows |
9.5.3.211 | Mac |
Returns the service pack that matches the string in the format "base-tl-sp-date". For example, AIX 5.3 at technology level 6 and service pack 3, which was released on the 32nd week of 2007, would be "5300-06-03-0732". Note: older service packs may not have a date portion, and the final service pack at a particular technology level has a SP value of 'CSP'.
Version | Platforms |
---|---|
8.2.1078.0 | AIX |
Returns True
if the local computer is a UNIX system.
- Q: (unix of it, name of it) of operating system
- A: True, Linux Ubuntu 14.04.2 LTS
- Q: (unix of it, name of it) of operating system
- A: False, Mac OS X
- Q: (unix of it, name of it) of operating system
- A: False, Win8.1
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns a time interval that represents the elapsed time since the operating system was last booted.
Note: Depending on the computer, this may not include time spent in hibernation.
- Q: uptime of operating system
- A: 12 days, 18:10:01.642793
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns the UUID (Universally Unique Identifier) of the operating system.
For AIX
This property returns a UUID in the AIX Object Data Manager (ODM) Customized Attribute entry. You can get the attribute by performing the ODM query attribute=os_uuid and name=sys0
.
Alternatively, you can use the ODM inspector with the Relevance uuid (attribute value of customized attribute "attribute=os_uuid" of odm)
to generate the UUID.
If the AIX installation does not have an operating system UUID already set, then a Relevance check of exists uuid of operating system
evaluates to false.
For Solaris
For Solaris, the operating system UUID is associated with a zone. Every configured zone has a UUID that is returned by the inspector.
A Relevance check of exists uuid of operating system
evaluates to false, if:
- the Solaris installation does not have a configured zone
- the Relevance check is done in the global zone
Version | Platforms |
---|---|
9.5.7.90 | AIX, Debian, Red Hat, SUSE, Solaris, Ubuntu, Windows |
Returns True
if the computer is running Windows.
- Q: (windows of it, name of it) of operating system
- A: True, Win8.1
- Q: (windows of it, name of it) of operating system
- A: False, Mac OS X
- Q: (windows of it, name of it) of operating system
- A: False, Linux Ubuntu 14.04.2 LTS
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |