Detecting Operating System Details

BrowserHawk provides several properties related to the visitor's operating system details. These properties are Platform, OSDetails, OSName, OSVersion and OSArch. The following information will help you understand the differences between these properties so that you can choose the best detection technique for your particular needs.

Understanding the Platform and OSDetails properties

The Platform property returns the operating system installed on a visitor's machine. Possible return values include "WinXP", "Windows Server 2003", "Windows Vista", "MacPPC", "MacOSX", and "UNIX".

 

The OSDetails property typically provides more general information about the OS, and typically not details information despite its property name. Possible return values include "Microsoft", "Macintosh", "SunOS", "Linux", and "SGI".

 

The Platform and OSDetails properties are obtained from the browser's user agent string, or in some cases inferred based on a browser type and version that may only be available on a particular platform.

 

The Platform and OSDetails properties are available in all editions of BrowserHawk.

Understanding the OSName, OSVersion, and OSArch properties

OSName, like the Platform property, also returns the operating system installed on a visitor's machine. Possible return values are the same as the Platform property, and include "WinXP", "Win2000", "WinME", "Windows Server 2003", "WinCE", "Windows Vista", "MacOSX", "Linux", "SunOS", and "IRIX64".

 

The difference with OSName compared to Platform is that the OSName comes from the visitor's operating system itself, rather than from the user agent string. This makes for a more accurate and reliable reading in some cases, as covered in the Advantages/Disadvantages section below.

 

OSVersion returns the version of the installed operating system. Possible return values include "9.2.2", "10.1", "10.3.9", "10.4", "10.4.2" (in the case of a MacOS), "4.0", "4.1", "4.9", "5.0", "5.1", "5.2" and "6.0" (in the case of Windows) and other values with other operating systems.

 

OSArch returns a string with information about the type of hardware architecture in use. Possible return values include "x86", "x86_64", "ppc" (Mac OS X 10+), "powerpc" (Mac OS prior to X), "i386", "mips", and "sparc".

 

Note: The OSName, OSVersion, and OSArch properties require the Enterprise Edition of BrowserHawk.

 

Advantages and Disadvantages of using Platform Vs. OSName and OSVersion:

Advantages of Platform property:

Disadvantages of Platform property:

Summary:

 

Sample Results

The following table shows typical results returned for the properties used in detecting operating system details. This provides an idea of what type of return results you can expect in each property. However actual results will be dependant on the specific operating system and version.

 

Tip: Use BrowserHawk Reports to collect this data and monitor it over time to get a full sense for what all the possible values are specific to your web site's audience.

 

Platform  OSDetails OSName  OSVersion OSArch

Win95   Microsoft Win95   4.0  x86

Win98   Microsoft Win98   4.10  x86

WinME  Microsoft WinME   4.90  x86

Win200  Microsoft Win2000  5.0  x86

WinXP  Microsoft WinCE   5.0 build 0 x86

WinXP  Microsoft WinXP   5.1  x86

Windows Server 2003  Microsoft Windows Server 2003  5.2  x86

Windows Vista  Microsoft Windows Vista  6.0  x86

MacPPC  Macintosh Mac OS  9.2.2  PowerPC

MacOSX  Macintosh MacOSX  10.3.9  ppc

MacOSX  Macintosh MacOSX  10.4  ppc

MacOSX  Macintosh MacOSX  10.4.2  ppc

UNIX   SunOS  SunOS   5.8  sparc

UNIX   Linux  Linux   2.4.20-28.8smp i386

UNIX   SunOS  SunOS   5.8  sparc

UNIX   SGI  IRIX64   6.5  mips

 

See Also:

Additional Steps Required for Java based properties

Platform Property

Platform Property (.NET)
OSName Property

OSName Property (.NET)

OSVersion Property

OSVersion Property (.NET)

OSArch Property

OSArch Property (.NET)