cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1618
Views
1
Helpful
2
Replies

moquery filter

Ibrahim010
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

RedNectar
VIP
VIP

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"))'

 

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

View solution in original post

2 Replies 2

RedNectar
VIP
VIP

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"))'

 

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Ibrahim010
Level 1
Level 1

Hi Chris,

Awsome mate, thank you. Very helpfull as always. 

Kind regards,
Ibrahim.

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License