Handling BIOS Version Filtering in ControlUp’s Devices Index: Workarounds for Lexicographical Text Comparison
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 article here...
