IP Address Concatination issue

(imported topic written by rnalluri91)

Hi All,

The ip address returned by Big Fix tool is having 3-4 Ip addresses separated by space. Is there anyway to set the properties such that we would get only one ip address from the Big Fix?

Thanks,

Rambo

(imported comment written by Lee Wei)

If you have multiple IP addresses, which one within the list would you want to show?

Here are one or 2 ideas.

The first one will concatenate all the IP addresses together, so you have only one line.

The second one will return only the first item.

q: addresses whose (it as string != 
"0.0.0.0") of ip interfaces whose (loopback of it = 

false) of network A: 192.168.1.102 A: 169.254.228.228 A: 169.254.173.40   q: concatenation 
"; " of (addresses whose (it as string != 
"0.0.0.0") of ip interfaces whose (loopback of it = 

false) of network as string) A: 192.168.1.102; 169.254.228.228; 169.254.173.40   q: preceding text of first 
";" of concatenation 
";" of (addresses whose (it as string != 
"0.0.0.0") of ip interfaces whose (loopback of it = 

false) of network as string) A: 192.168.1.102

(imported comment written by jessewk)

Starting in version 7.1, we also introduced the concept of a ‘primary ip address’. See Ben’s explaination here:

http://forum.bigfix.com/viewtopic.php?id=2924

Jesse

(imported comment written by SystemAdmin)

This might also be helpful…

addresses whose (it as string != “0.0.0.0” and (it as string contains “169.”)!=true and it as string starts with (preceding text of last “.” of (addresses of gateway lists whose (address of it != “0.0.0.0”) of adapters whose (address of it != “0.0.0.0”) of network as string))) of ip interfaces whose (loopback of it = false) of network

It filters out all 169 addresses, as well as addrs that do not have a valid gateway address.