cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2611
Views
0
Helpful
2
Replies

ACI CLI Command to Display EPG of a Policy Tag

Hi,

 

If I know the EPG name, I could find the policy tag of that EPG via "show epg" command on APIC.

However if I know only the policy tag, how could I find the EPG of that policy tag via CLI. I couldn't find this information anywhere.

 

Kind Regards,

Ahmet Mustafa Mungan

1 Accepted Solution

Accepted Solutions

Remi Astruc
Level 1
Level 1

Hello,

pcTag alone is not a primary key in your Fabric. You need also to provide the VRF ID.

Here is your command:

moquery -c fvAEPg -f 'fv.AEPg.pcTag=="your_pcTag" and fv.AEPg.scope=="your_VRF_ID"' | grep ^dn

 

Remi Astruc

 

View solution in original post

2 Replies 2

Remi Astruc
Level 1
Level 1

Hello,

pcTag alone is not a primary key in your Fabric. You need also to provide the VRF ID.

Here is your command:

moquery -c fvAEPg -f 'fv.AEPg.pcTag=="your_pcTag" and fv.AEPg.scope=="your_VRF_ID"' | grep ^dn

 

Remi Astruc

 

Hi Remi,

 

Moquery command was a perfect advice. Thank you so much for your support.

 

Kind Regards.

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