Within the ControlUp `devices` index, the BIOS version information is stored in two fields: `hw_bios_name` and `hw_bios_version`. Both fields are of type TEXT rather than a numeric or semantic version format. Due to this design, comparing BIOS versions using relational operators such as “greater than” behaves lexicographically (alphabetically) instead of numerically or semantically. This leads to unexpected results when filtering by version, for example, a BIOS labeled “2.8” is considered greater than “2.18.0” because the comparison is character-by-character rather than numeric or version-aware.
This occurs because hardware vendors inconsistently report BIOS version information, sometimes placing the version string in the `hw_bios_name` field rather than in `hw_bios_version`. Therefore, the field content varies across device models, further complicating reliable numerical comparisons in filters.
Currently, ControlUp does not support version-aware comparisons on text properties. To work around this limitation, users can apply pattern-based filters rather than direct relational comparisons. For instance, one practical approach is to identify which BIOS version strings exist by sorting or grouping devices by their `hw_bios_name` values and then build an OR filter with “Begins With” conditions that match only the desired higher version prefixes (e.g., “2.18.1” OR “2.19” OR “2.20”). Alternatively, if the goal is to find devices needing updates, users can list all up-to-date versions with “Does Not Contain” filters combined with AND operators. Pairing version filters with model-specific filters is recommended since BIOS versioning conventions differ across hardware vendors and product lines.
It is generally not feasible to change the underlying index type from text to numeric for these properties, given the diverse string formats used by BIOS versioning across devices. This makes workarounds based on text pattern matching the most viable option until ControlUp implements dedicated semantic version support.
For additional contextual control, review ControlUp product documentation and community resources at https://docs.controlup.com and https://community.controlup.com for updates on version-aware filtering capabilities and best practices for device inventory management.
Read the entire ‘Handling BIOS Version Filtering in ControlUp’s Devices Index: Workarounds for Lexicographical Text Comparison’ thread below:
Hi all,
Within the `devices` index, there are two properties: `hw_bios_name` and `hw_bios_version`, both of type `TEXT`. For some reason, the BIOS version is stored in `hw_bios_name`.
I want to create a filter that returns all laptops where `hw_bios_name` is greater than `2.18.0`.
However, the filter also returns devices where `hw_bios_name` is `2.8`.
It appears that the comparison is being performed lexicographically (as a string) rather than numerically (as a version number).
How can I solve this?
Ideally, I want to compare the values as semantic versions rather than plain text.
Hi Rico! Good question.
You’ve read it right. Both BIOS properties are stored as text, so “greater than” compares them character by character, like alphabetical order, not as version numbers. That’s why 2.8 slips through: comparing “2.8″ with “2.18.0”, the “8″ beats the “1” at the third character, so 2.8 counts as “higher”. As far as I can tell there isn’t a version-aware comparison for text properties at the moment.
On the naming: both fields show the BIOS details as the device reports them, and hardware vendors aren’t consistent about where they put the version number. On some models the readable version ends up under the name field, which is likely what you’re seeing.
A couple of workarounds that could get you there, no guarantees:
• Match the newer versions by pattern instead of comparing. Sort or group the hw_bios_name column first to see which versions you actually have (BIOS releases per model are usually a short list). Then build an OR filter with one “Begins With” condition per newer version, e.g. 2.18.1 OR 2.19 OR 2.20 OR 2.21.
• Flip it around. If the end goal is finding laptops that need a BIOS update, it may be shorter to list the up-to-date versions with “Does Not Contain” conditions joined with AND.
• Add a model condition. Different models and vendors number their BIOS releases differently, so pairing the version filter with a model filter keeps the patterns from catching the wrong devices.
One caveat: this is still text matching, so be specific with the patterns. “Begins With 2.2”, for example, would also pick up 2.2.x. You’ll also need to add new versions to the list as they ship.
Let us know how it goes!
maybe fix the index that it’s a number instead of text?
what do you think
Storing `hw_bios_name` as a number is likely not possible. For example we have these values;
Continue reading and comment on the thread ‘Handling BIOS Version Filtering in ControlUp’s Devices Index: Workarounds for Lexicographical Text Comparison’. Not a member? Join Here!
Categories: All Archives
