03-16-2023 06:56 AM
Hey Folks,
Maybe you can help me out: i am using a visore filter to find an ip/subnet and where it is used/routed. https://xxxx/visore.html#/&class=l3extSubnet&propFilter=query-target-filter=and(wcard(l3extSubnet.ip,"10.49.254.0"))
Now i am trying to get this working via cli but moquery doesnt like me. Anyone here got an idea?
thanks.
Solved! Go to Solution.
03-16-2023 05:11 PM
Hi @Ibrahim010 ,
Try
admin@apic1:~> moquery -c l3extSubnet -f 'l3ext.Subnet.ip*"10.49.254.0"'
The * operator is the wildcard when using the moquery filter
Or - if you want to keep it close to the original, you could use this variation
admin@apic1:~> moquery -c l3extSubnet -x 'query-target-filter=and(wcard(l3extSubnet.ip,"10.49.250.0"))'
03-16-2023 05:11 PM
Hi @Ibrahim010 ,
Try
admin@apic1:~> moquery -c l3extSubnet -f 'l3ext.Subnet.ip*"10.49.254.0"'
The * operator is the wildcard when using the moquery filter
Or - if you want to keep it close to the original, you could use this variation
admin@apic1:~> moquery -c l3extSubnet -x 'query-target-filter=and(wcard(l3extSubnet.ip,"10.49.250.0"))'
03-17-2023 07:46 AM
Hi Chris,
Awsome mate, thank you. Very helpfull as always.
Kind regards,
Ibrahim.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: