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.
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
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
hey Remi, thank you very very much!
I do accept it as solution!
P.S. what an intuitively clear command))))))
Thanks.
Yes, you need to find the DB/Linux Admin within you :-)
Remi Astruc