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

Using CURL with ACI to get interface stats

dfernandes786
Level 1
Level 1

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

Review Cisco Networking for a $25 gift card

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