(imported comment written by Darknight)
thanks a trillion MattPeterson … i have tried the above relevance on the machien where ipv6 is not present where it worked fine as below :
q:
(addresses
of
it
as
string
,
((ip versions
of
addresses
of
it
as
string)
;
(
if
(
exists
property
“ipv6 interfaces”
and
exists
network)
then
ip versions
of
addresses
of
ipv6 interfaces
of
it
as
string
else
“”
))
,
mac addresses
of
it
as
string)
of
(adapters
whose
(up
of
it
)
of
network)
A:
172.16.1.134, ipv4, 00-50-56-ab-17-4e
A:
10.18.154.166, ipv4, 00-50-56-ab-28-5b
but on the machiens where ipv6 interface is available its not showing the ipv6 address but duplicating the ipv4 address as follows :
Q: (addresses of it as string, ((ip versions of addresses of it as string) ; (if (exists property “ipv6 interfaces” and exists network) then ip versions of addresses of ipv6 interfaces of it as string else “”)) , mac addresses of it as string) of (adapters whose(up of it) of network)
A: 172.16.1.139, ipv4, 00-50-56-ab-1d-7e
A: 172.16.1.139, ipv6, 00-50-56-ab-1d-7e
A: 10.18.154.171, ipv4, 00-50-56-ab-38-72
A: 10.18.154.171, ipv6, 00-50-56-ab-38-72
below is the output for relevance which i have used to generate the ipv4 and ipv6 address from machine :
((addresses of it as string) ; (if (exists property “ipv6 interfaces” and exists network) then addresses of ipv6 interfaces of it as string else “”))of adapters whose(up of it AND not loopback of it AND address of it as string != “127.0.0.1”) of network
A: 172.16.1.139
A: fe80:0:0:0:250:56ff:feab:1d7e
A: 10.18.154.171
A: fe80:0:0:0:250:56ff:feab:3872
i have modified the relevance provided by you as below:
Q: ((((addresses of it as string) ; (if (exists property “ipv6 interfaces” and exists network) then addresses of ipv6 interfaces of it as string else “”))of it),(((ip versions of addresses of it as string) ; (if (exists property “ipv6 interfaces” and exists network) then ip versions of addresses of ipv6 interfaces of it as string else “”))of it),(mac addresses of it as string )) of adapters whose(up of it AND not loopback of it AND address of it as string != “127.0.0.1”) of network
A: 172.16.1.139, ipv4, 00-50-56-ab-1d-7e
A: 172.16.1.139, ipv6, 00-50-56-ab-1d-7e
A: fe80:0:0:0:250:56ff:feab:1d7e, ipv4, 00-50-56-ab-1d-7e
A: fe80:0:0:0:250:56ff:feab:1d7e, ipv6, 00-50-56-ab-1d-7e
A: 10.18.154.171, ipv4, 00-50-56-ab-38-72
A: 10.18.154.171, ipv6, 00-50-56-ab-38-72
A: fe80:0:0:0:250:56ff:feab:3872, ipv4, 00-50-56-ab-38-72
A: fe80:0:0:0:250:56ff:feab:3872, ipv6, 00-50-56-ab-38-72
i think in above relevance i am mesing up somewhere , as you can see i am getting ipv4 as well as ipv6 addresses but its getting duplicated…
Could you please modify the releavnce provided by you so that it can display ipv4 as well as ipv6 addresses and the corresponding fileds separated by “|” …in your relevance the separator is “,” … can we replace it by “|”…
basically i am trying to get the relevance which can output below thing in both ipv4 and ipv6 case :
ip address | ip address type | mac address