Infoblox Community
Reply
Accepted Solution

NetMRI Config Search: Using >= operator against Device: OS Version

Techie
Posts: 13
Registered: ‎09-20-2013
MTurczan
Techie
Posts: 13

Folks,

 

I was wondering how to properly use the >= operator with the "Device: OS Version" parameter when using Config Search. For example, how would NetMRI parse the following:

 

O/S Version: IOS-XE 03.03.05SE

 

I'm assuming it would ignore the "IOS-XE" and the "SE" portion, and just apply the operator against the numerical portion of the version, but when I search for the following:

 

"Device: OS Version" >= 03.04.00

 

NetMRI still returns hits for devices running 03.03.05SE.

 

Any help would be appreciated,

 

-Mark 

Highlighted

Re: NetMRI Config Search: Using >= operator against Device: OS Version

Adviser
Posts: 310
Registered: ‎10-26-2007
Adviser
Posts: 310
I believe it is a simple string comparison.

Re: NetMRI Config Search: Using >= operator against Device: OS Version

Expert
Posts: 182
Registered: ‎09-19-2007
Expert
Posts: 182

John is the expert on this but I agree that OS version is a string.  Since ">=" is for a numerical comparison, I don't see how it could work.  You could compare via regex with something like /03\.\d[4-9]\.\d\d/  or whatever your definition of greater than might be.

Re: NetMRI Config Search: Using >= operator against Device: OS Version

Adviser
Posts: 310
Registered: ‎10-26-2007
Adviser
Posts: 310
It probably does an ordering based on the ASCII when used on strings (so alphabetical but upper case before all lowercase). But I haven’t tested that to be sure.