I have a need to use different device templates based on the version number of the device. Specifically i'm talking about MikroTik devices which have 1 distinct different between RouterOS V6 and RouterOS V7 - the latter must have 'show-sensitive' appended to the /export terse command, otherwise it will not export any passwords or sensitive data, resulting in an incomplete config. And unfortunately the way RouterOS works, is it will simply not execute the command at all if any invalid part of the command is supplied. So whilst I could write something like '/export terse ; /export terse show-sensitive' and it would run both commands on V7, it will not run at all on V6 and simply error out
The version number is located at OID .1.3.6.1.4.1.14988.1.1.7.7.0 however my understanding is Solarwinds doesn't parse this in any way, it simply returns true/false if the OID contains any data and therefore would always be true on both firmware firms. I really hope I am wrong and can use RegEx which would be very simply to parse if this is 7.x or 6.x and would solve the problem
Is there any other way? I notice there is a SystemDescriptionRegex= field in the template, but unfortunately system description doesn't include any information about version. Is there any other valid parameter that could be used?
If the answer is no, is there any other method to automatically change the device template, such as a script that could run and when it detects the version (also shown in config downloads) then it could automatically switch the template?