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

Using CURL with ACI to get interface stats

dfernandes786
Beginner
Beginner

Hi I am trying to use CURL to get interface stats for a leaf port but not sure of the process with the APIC-Cookie.

 

curl  -X GET -k https://APIC/api/node/mo/topology/pod-1/node-103/sys/phys-[eth1/1]/CDeqptIngrDropPkts5min.json --globoff


{"totalCount":"1","imdata":[{"error":{"attributes":{"code":"403","text":"Need a valid webtoken cookie (named APIC-Cookie) or a signed request with signature in the cookie APIC-Request-Signature for all REST API requests"}}}]}

 

Would some please tell me how I can access these stats.

 

The other issue I am trying to resolve is I want to run this API query from Logstash so that it can fetch the data for the interface stats. Anyone was able to do this successfully with he http_input plugin.

 

Thanks

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: