( name ofitstartswith"Linux SuSE Enterprise Server 11"OR name ofitstartswith"Linux SuSE Enterprise Server 12"OR name ofitstartswith"Linux SuSE Enterprise Desktop 11"OR name ofitstartswith"Linux SuSE Enterprise Desktop 12"OR name ofitstartswith"Linux Ubuntu 14.04"OR name ofitstartswith"Linux Ubuntu 16.04"OR name ofitstartswith"CentOS release 7"OR ( name ofitstartswith"Linux Red Hat Enterprise Server 6"AND version ofitas string >= "6.1" ) OR name ofitstartswith"Linux Red Hat Enterprise Server 7"OR ( name ofitstartswith"Linux Red Hat Enterprise Workstation 6"AND version ofitas string >= "6.1" ) OR ( name ofitstartswith"Linux Red Hat Enterprise Desktop 6"AND ( version ofitas string >= "6.1" ) ) ) of operating system
(name ofitstartswith"Linux SuSE Enterprise Server 11"OR name ofitstartswith"Linux SuSE Enterprise Server 12"OR name ofitstartswith"Linux SuSE Enterprise Desktop 11"OR name ofitstartswith"Linux SuSE Enterprise Desktop 12"OR name ofitstartswith"Linux Ubuntu 14.04"OR name ofitstartswith"Linux Ubuntu 16.04"OR name ofitstartswith"CentOS release 7"OR (name ofitstartswith"Linux Red Hat Enterprise Server 6"AND version ofitas string >= "6.1") OR name ofitstartswith"Linux Red Hat Enterprise Server 7"OR (name ofitstartswith"Linux Red Hat Enterprise Workstation 6"AND version ofitas string >= "6.1") OR (name ofitstartswith"Linux Red Hat Enterprise Desktop 6"AND (version ofitas string >= "6.1")) ) of operating system
notexists ( itas string as version ) whose ( it >= "0.6.0" ) of values "DisplayVersion"of keys whose ( value "DisplayName"ofitas string startswith"Rancher Desktop" ) of keys "Software\Microsoft\Windows\CurrentVersion\Uninstall"of ( user key of current user )
notexists (itas string as version) whose(it >= "0.6.0") of values "DisplayVersion"of keys whose(value "DisplayName"ofitas string startswith"Rancher Desktop") of keys "Software\Microsoft\Windows\CurrentVersion\Uninstall"of (user key of current user)
IF ( name of operating system as lowercase startswith"win" ) THEN ( if ( name of operating system ="Win95"OR name of operating system ="Win98"or name of operating system ="WinME" ) then"Workstation"else ( if ( value "ProductType"of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions"of registry ="WinNT" ) then"Workstation"else"Server" ) ) ELSEIF ( name of operating system as lowercase contains"server"OR name of operating system as lowercase contains"aix"OR name of operating system as lowercase contains"hp-ux"OR name of operating system as lowercase contains"sunos"OR name of operating system as lowercase contains"vmware esx"OR ( name of operating system as lowercase contains"linux"AND ( name of operating system as lowercase contains"redhat enterprise as "OR name of operating system as lowercase contains"redhat enterprise es " ) ) ) THEN"Server"ELSEif ( ( name of operating system as lowercase contains"linux"AND name of operating system as lowercase contains"desktop" ) OR name of operating system as lowercase contains"mac os x" ) THEN"Workstation"else"Unknown" & name of operating system
IF (name of operating system as lowercase startswith"win") THEN (if (name of operating system ="Win95"OR name of operating system ="Win98"or name of operating system ="WinME") then"Workstation"else (if (value "ProductType"of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions"of registry ="WinNT") then"Workstation"else"Server")) ELSEIF (name of operating system as lowercase contains"server"OR name of operating system as lowercase contains"aix"OR name of operating system as lowercase contains"hp-ux"OR name of operating system as lowercase contains"sunos"OR name of operating system as lowercase contains"vmware esx"OR (name of operating system as lowercase contains"linux"AND (name of operating system as lowercase contains"redhat enterprise as "OR name of operating system as lowercase contains"redhat enterprise es "))) THEN"Server"ELSEif ((name of operating system as lowercase contains"linux"AND name of operating system as lowercase contains"desktop") OR name of operating system as lowercase contains"mac os x") THEN"Workstation"else"Unknown" & name of operating system
( notexists file "/etc/enterprise-release" ) AND ( exists file "/etc/redhat-release"whose ( exists line whose ( exists match ( regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5" ) ofit ) ofit ) )
(notexists file "/etc/enterprise-release") AND (exists file "/etc/redhat-release"whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5") ofit) ofit))
( exists match ( regex "Linux Red Hat Enterprise (AS|ES|WS) 4" ) ofitORexists match ( regex "Linux Red Hat Enterprise (Server|Client|Workstation) (5|6)" ) ofitOR ( it="SunOS 5.10" ) ORexists match ( regex "AIX (5.3|6.1|7.1)" ) ofitORexists match ( regex "Linux SuSE Enterprise (Desktop|Server) 11" ) ofit ) of name of operating system
(exists match (regex "Linux Red Hat Enterprise (AS|ES|WS) 4") ofitORexists match (regex "Linux Red Hat Enterprise (Server|Client|Workstation) (5|6)") ofitOR (it="SunOS 5.10") ORexists match (regex "AIX (5.3|6.1|7.1)") ofitORexists match (regex "Linux SuSE Enterprise (Desktop|Server) 11") ofit ) of name of operating system
( exists match ( regex "Linux Red Hat Enterprise (Server|Desktop) (5|6)" ) of name of operating system ) OR ( exists file "/etc/redhat-release"whose ( exists line whose ( exists match ( regex "Red Hat Enterprise Linux (AS|ES|WS) release 4" ) ofit ) ofit ) )
(exists match (regex "Linux Red Hat Enterprise (Server|Desktop) (5|6)") of name of operating system) OR (exists file "/etc/redhat-release"whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (AS|ES|WS) release 4") ofit) ofit))
( exists file "/etc/enterprise-release"whose ( exists line whose ( exists match ( regex "Enterprise Linux Enterprise Linux (AS|Server) release 5" ) ofit ) ofit ) ) OR ( exists file "/etc/redhat-release"whose ( exists line whose ( exists match ( regex "Red Hat Enterprise Linux (Client|Desktop|Server|Workstation) release (5|6)" ) ofitorexists match ( regex "CentOS.* (5|6)" ) ofit ) ofit ) )
(exists file "/etc/enterprise-release"whose (exists line whose (exists match (regex "Enterprise Linux Enterprise Linux (AS|Server) release 5") ofit) ofit)) OR (exists file "/etc/redhat-release"whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (Client|Desktop|Server|Workstation) release (5|6)") ofitorexists match (regex "CentOS.* (5|6)") ofit) ofit))
exists file "/etc/redhat-release"whose ( exists line whose ( exists match ( regex "Red Hat Enterprise Linux (AS|ES|WS) release 4" ) ofitorexists match ( regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5" ) ofit ) ofit ) OR ( itstartswith"linux fedora core"AND following text of last " "ofitas version >= "3"and following text of last " "ofitas version < "6" ) of ( name of operating system as lowercase )
exists file "/etc/redhat-release"whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (AS|ES|WS) release 4") ofitorexists match (regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5") ofit) ofit) OR (itstartswith"linux fedora core"AND following text of last " "ofitas version >= "3"and following text of last " "ofitas version < "6") of (name of operating system as lowercase)
exists file "/etc/redhat-release"whose ( exists line whose ( exists match ( regex "Red Hat Enterprise Linux (AS|ES|WS) release 4" ) ofitorexists match ( regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5" ) ofit ) ofit )
exists file "/etc/redhat-release"whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (AS|ES|WS) release 4") ofitorexists match (regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5") ofit) ofit)
exists file "/etc/redhat-release"whose ( exists line whose ( exists match ( regex "Red Hat Enterprise Linux (AS|ES|WS) release 4" ) ofitorexists match ( regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5" ) ofitorexists match ( regex "Fedora Core release (3|4|5|6|7)" ) ofitorexists match ( regex "Fedora release (3|4|5|6|7)" ) ofit ) ofit )
exists file "/etc/redhat-release"whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (AS|ES|WS) release 4") ofitorexists match (regex "Red Hat Enterprise Linux (Client|Desktop|Server) release 5") ofitorexists match (regex "Fedora Core release (3|4|5|6|7)") ofitorexists match (regex "Fedora release (3|4|5|6|7)") ofit) ofit)