Console display of primary IP address

I have seen multiple posts for the display of the primary IP of a system in the console. We have a “management” IP starting with 10…x.x.x which I don’t care about. Our other NIC is the primary starting with 172.x.x.x. I only want to see the 172.x.x.x. I see several references to a something available starting in version 7.0 but the article is out of date. How can I modify the relevence to display the desired NIC and not the management NIC? I am on version 9.5.
Thank you in advance.

on a phone so I can’t test, but something along the lines of

ip addresses whose (it starts with "172.") of adapters whose (up of it) of adapters of network

1 Like

@trn You were close. Needed to cast to string and I think you got adapters in there twice, but the intention was spot on.

This is one way to do it:
q: addresses whose (it as string starts with "172.") of adapters whose (up of it) of network

The other thing you might be thinking of here is this inspector which figures out which interface the Bigfix client is using to talk to it’s BigFix relay or server
q: registration address of client

2 Likes

I need a relevance debugger that runs on my phone for those idle moments😀

2 Likes

Thanks guys!! I have to admit that I have NO experience with this. I used Brolly33’s first suggestion and created a duplicate of the original “IP Address” and renamed it. It worked and will save me a ton of time!!!

@olsonc58
There is a ton of material out there on relevance language.
Some of my favorites are the tutorial on https://developer.bigfix.com/relevance/tutorial.html

and later on, the Reference from 2006 that I first learned from (it’s still very good after all these years)
http://support.bigfix.com/fixlet/documents/BES_Relevance_Language_Reference_60_2006-11-03.pdf

1 Like