cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
255
Views
0
Helpful
1
Replies

APIC Query Display Consumer and Provider for all contract with IP_ANY

kekkophone
Level 1
Level 1

Dear Community,
I would like to run a command on ACI where it is possible to see on each contract having the IP_ANY filter who is the Consumed and who is the Provider.

APIC Version: 4.2(7f)

Currently I was able to extrapolate which contracts use the IP_ANY filter through the command
moquery -c vzSubj -x query-target=children | grep "^dn " | cut -c20- | grep IP_ANY

I would like to implement the query by also inserting the last requested data.

Thanks in advantage and best regards.

1 Accepted Solution

Accepted Solutions

kekkophone
Level 1
Level 1

Dear Community,

I found the command

moquery -c vzBrCP -f 'vz.BrCP.dn=="uni/tn-<TENANT-NAME>/brc-<CONTRACT-NAME>"' -x 'rsp-subtree=children rsp-subtree-class=relnFrom' | egrep "name |rn"

Best Regards,

kekkophone

View solution in original post

1 Reply 1

kekkophone
Level 1
Level 1

Dear Community,

I found the command

moquery -c vzBrCP -f 'vz.BrCP.dn=="uni/tn-<TENANT-NAME>/brc-<CONTRACT-NAME>"' -x 'rsp-subtree=children rsp-subtree-class=relnFrom' | egrep "name |rn"

Best Regards,

kekkophone