02-02-2021 01:05 PM - edited 02-02-2021 01:14 PM
Hello all,
I'm trying to see if I can find the IP address(es) of a given port.
I may be overthinking this, but I was thinking since the RsCEpToPathEp class is a child of the Client Endpoint class (CEp class), I wanted to try and query the "child" class for a given port number, and then have the query return me the "parent" CEp class which would contain the IP address. I tried this but it didn't work:
moquery -c fvCEp -x rsp-subtree=children -f 'fv.RsCEpToPathEp.tDn*"eth1/45"'
I thought I would use rsp-subtree=children as opposed to query-target=children since rsp-subtree=children returns the subtree scope AFTER any filters are applied, so I was hoping I could use -f to filter on the "child" object I want (RsCEpToPathEp that contains eth1/45 in the tDn), and then hopefully return me the entire subtree of that object, which would include the "parent" CEp class, but it just returns the child objects, no matter if I use rsp-subtree=children or rsp-subtree=full .
Does anyone know how I could find the IP address(es) of a given port using moquery ?
Thanks!
02-02-2021 01:21 PM
not used ACI Much with moquery good command though.
try this cheat sheet :
https://community.cisco.com/t5/data-center-documents/aci-object-moquery-cheat-sheet/ta-p/3367801
02-02-2021 01:29 PM - edited 02-02-2021 01:31 PM
@balaji.bandi Thank you, I have seen that cheat sheet and have tried many commands on it, but unfortunately there is not a command on there that addresses this particular issue (even the fvIfConn class doesn't give this information).
Thanks for the suggestion though!
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