cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1117
Views
5
Helpful
4
Replies

Show external-l3 interfaces detail with moquery

valentik
Level 1
Level 1

Hello,

the commande "Show external-l3 interfaces detail" retrun many informations :

Mode, Tenant, VRF, L3Out, Interface, Operationnal Interface and IP Address

I need these informations with moquery command

Please, can you help me ?

I found for some info like mode, tenant, l3out ... but nothing linked like the show command

Thanks in advance

Valentino

4 Replies 4

Alexander Stevenson
Cisco Employee
Cisco Employee

Dear Alex,

Do you really think that I did not look before asking the question on the forum all the information available on the net?
I know what RTFM means and have been for 30 years
The most precise information is in "APIC Management Information Model Reference" and, as I specify in my request, I manage to obtain information but not the links between them.

The "Show external-l3 interfaces detail" command gives all the informations but :

moquery -c l3extOut will gives you all L3outs (uni/tn-common/out-L3OUT_COMMON_BUS_TO_MYZONE for instance)

moquery -c l3extRsNodeL3OutAtt -d uni/tn-common/out-L3OUT_COMMON_BUS_TO_MYZONE will give all nodes

moquery -c ipv4Addr -d topology/pod-1/node-1025 | grep -E "dn|addr  will gives you IP addresses

But how to link one IP to one L3out ?

Thanks

What you can do is simply query the full subtree of l3extOut, meaning you will receive all l3extOut objects together with all their children.

moquery -c l3extOut -x rsp-subtree=full 

 

Take care,

Sergiu

Hello Sergiu,

receive a thousands of informations to have some specifically ...

not sure is the best way

Valentino