Network Change & Configuration Management

Reply
Accepted Solution

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

MTurczan
Techie
Posts: 14
1689     0

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: 328
1689     0
I believe it is a simple string comparison.

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

Expert
Posts: 193
1690     0

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: 328
1690     0
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.
Showing results for 
Search instead for 
Do you mean 

Recommended for You