cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1489
Views
1
Helpful
2
Replies

Monitoring Physical Interface Statistics and Usage Using the APIC REST API

pradeep_guns
Level 1
Level 1

 APIC REST APIHello All,

 

I have created APIC REST API request to get interface utilization as below and I am not able to get any traffic information in response.

 

Could you please explain the proper way to get this information.

 

URL:- https://10.1.16.21/api/node/mo/topology/pod-1/node-901/sys/phys-[eth1/32]/.json

 

Response:-

 {u'imdata': [{u'l1PhysIf': {u'attributes': {u'status': u'', u'layer': u'Layer2', u'prioFlowCtrl': u'auto', u'adminSt': u'up', u'ethpmCfgFailedBmp': u'', u'fecMode': u'inherit', u'brkoutMap': u'none', u'id': u'eth1/32', u'dot1qEtherType': u'0x8100', u'descr': u'', u'speed': u'10G', u'delay': u'1', u'linkLog': u'default', u'monPolDn': u'uni/infra/moninfra-default', u'modTs': u'2018-11-07T21:20:32.339+05:30', u'usage': u'epg', u'routerMac': u'not-applicable', u'autoNeg': u'on', u'reflectiveRelayEn': u'off', u'pathSDescr': u'', u'dn': u'topology/pod-1/node-901/sys/phys-[eth1/32]', u'medium': u'broadcast', u'ethpmCfgState': u'0', u'switchingSt': u'enabled', u'bw': u'0', u'snmpTrapSt': u'enable', u'spanMode': u'not-a-span-dest', u'portT': u'leaf', u'childAction': u'', u'lcOwn': u'local', u'name': u'', u'inhBw': u'unspecified', u'trunkLog': u'default', u'mtu': u'9000', u'isReflectiveRelayCfgSupported': u'Supported', u'mode': u'trunk', u'mdix': u'auto', u'linkDebounce': u'100', u'ethpmCfgFailedTs': u'00:00:00:00.000'}}}], u'totalCount': u'1'}

 

URL :- https://10.1.16.21/api/node/mo/topology/pod-1/node-901/sys/phys-[eth1/32]/dbgEtherStats.json

Response:-

{u'imdata': [], u'totalCount': u'0'}

 

 

Regards,

Pradeep.

 

 

 

  

 

2 Replies 2

Hi BB,

Thanks for the update.
Here I am able to get response including all data except real-time traffic statistic.
When I used ACIToolKit to get traffic statistic using epoch as 13 and granularity as 1h result was same.

Granularity: 1d Epoch:13
INTERFACE TOT RX PACKETS TOT TX PACKETS RX PKTs/Sec TX PKTs/Sec RX BYTES/Sec TX BYTES/Sec
-------------- ------------ ------------ --------------- --------------- --------------- ---------------
eth 1/1001/1/1 0 0 0.00 0.00 0.00 0.00
eth 1/1001/1/10 0 0 0.00 0.00 0.00 0.00
eth 1/1001/1/11 0 0 0.00 0.00 0.00 0.00
eth 1/1001/1/12 0 0 0.00 0.00 0.00 0.00
eth 1/1001/1/13 0 0 0.00 0.00 0.00 0.00
eth 1/1001/1/14 0 0 0.00 0.00 0.00 0.00
eth 1/1001/1/15 0 0 0.00 0.00 0.00 0.00

Regards,
Pradeep