04-08-2019 02:05 AM
Hello Experts,
I was given the contracts name. I have to delete the contract along with assosiated EPGs.
I cannot figure out a was where I can pull the EPG list based on the contract.
I see there is 2 commands show contract XXXX and show tenant YYY contract XXXXX but they rather display subjects not assosiated EPGs.
Could you please tell me if there is any command (way) that would display such EPG based on contract as argument.
Any suggestion will bi highly appriciated.
Solved! Go to Solution.
04-08-2019 08:38 AM - edited 04-08-2019 08:39 AM
Hello,
From APIC CLI, you can run that moquery command:
moquery -c vzBrCP -f 'vz.BrCP.dn=="uni/tn-<YOUR-TENANT-NAME>/brc-<YOUR-CONTRACT-NAME>"' -x 'rsp-subtree=children rsp-subtree-class=relnFrom' | egrep "name |tDn"
It will list you the contract name and associated EPGs.
Remi Astruc
04-08-2019 08:38 AM - edited 04-08-2019 08:39 AM
Hello,
From APIC CLI, you can run that moquery command:
moquery -c vzBrCP -f 'vz.BrCP.dn=="uni/tn-<YOUR-TENANT-NAME>/brc-<YOUR-CONTRACT-NAME>"' -x 'rsp-subtree=children rsp-subtree-class=relnFrom' | egrep "name |tDn"
It will list you the contract name and associated EPGs.
Remi Astruc
04-09-2019 01:39 AM
hey Remi, thank you very very much!
I do accept it as solution!
P.S. what an intuitively clear command))))))
04-09-2019 01:55 AM
Thanks.
Yes, you need to find the DB/Linux Admin within you :-)
Remi Astruc
07-20-2022 06:20 AM
Your command doesn't tell you which EPG is the Provider or Consumer.
If you do
moquery -c vzBrCP -f 'vz.BrCP.dn=="uni/tn-<YOUR-TENANT-NAME>/brc-<YOUR-CONTRACT-NAME>"' -x 'rsp-subtree=children rsp-subtree-class=relnFrom' | egrep "name |rn"
It will list the Consumer and Provider EPGs - fvCons - xxxxxxEPGName/fvProv - xxxxxEPGName.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide