Solaris 11 OS Relevance

Wondering if anyone can point out the obvious for me please?

For Solaris 11.2 and Solaris 11.3 the OS shows as SunOS 5.11 (11.2) and SunOS 5.11 (11.3) respectively however for Solaris 11.4 it shows as SunOS 5.11 (11.4.20.4.0) which causes a problem in relevance as I want to exclude all Solaris 11.4 servers from a fixlet but with so many minor numbers it’s gonna be impossible to do.

Is there some sort of 11.4.* or 11.4.% that I can do to resolve this?

Version comparisons are limited to the significant blocks of the shorter operator. A version comparison between β€œ11” and β€œ11.4.20.4.0” would say they are equal - check that you are casting it with version "X" or "X" as version.

My samples below are for my Windows client but the same should hold true on Solaris.
You should be able to use

version of operating system < version "11.4"

Samples from my Windows debugger:

q: version "11" = version "11.4.20"
A: True
T: 0.241 ms

q: version of operating system
A: 10.0.18362.1139
T: 0.213 ms

q: version of operating system = version "10"
A: True
T: 0.184 ms

q: version of operating system < version "10"
A: False
T: 0.147 ms

q: version of operating system <= version "10"
A: True
T: 0.111 ms

q: version of operating system = version "10.0.18362"
A: True
T: 0.074 ms

q: version of operating system < version "10.0.18362.1139"
A: False
T: 0.037 ms
2 Likes

Excellent, thanks again Jason, much appreciated :smiley: