- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
netmri rest for interface performance
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2016 02:46 AM
Hi all,
Did anyone tried to find interface with busy end point connected via netmri ? I was thinking of using api/3/if_perfs/index?limit=2&sort=ifOutUcastPkts&dir=desc but ptoblem is that I only get device ID as InterfaceID is always 0. I also tried using IfPerfID in
api/3/if_perfs/interface?IfPerfID=54565340
but I always get:
<response><interface nil="true"/></response>
Is there something that I am doing wrong ?
Thanks,
Re: netmri rest for interface performance
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2016 06:47 AM
John
Re: netmri rest for interface performance
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2016 01:50 AM
Hi John,
ifindex does not look to help. I mean it is same on more results on same device id.
<if_perfs type="array"><if_perf><DataSourceID type="int">0</DataSourceID><DeviceID type="int">2675</DeviceID>
<ifIndex type="int">10</ifIndex>
<_class>IfPerf</_class></if_perf><if_perf><DataSourceID type="int">0</DataSourceID><DeviceID type="int">2675</DeviceID>
<ifIndex type="int">10</ifIndex>
..
It just looks like interface type not port/slot..
Igor
Re: netmri rest for interface performance
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2016 07:16 AM
ifIndex comes from SNMP - you don't see it in the CLI.
ifPerf is raw interface performance data - there will be MANY entries for a given interface. You need to look at the start and end time fields.
If you are looking for summary information, try ifPerfHourly or ifPerfDaily.
John