<div dir="ltr"><div><pre><pre><div><font face="arial, sans-serif"><span style="white-space:normal">Hi Folks,</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">We've been working on adding some simple support into LibreNMS so users can list the exchanges that they are connected to and then in turn the peers on those exchanges and if they have sessions configured already.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">To do this we're making use of the two following API calls:</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><a href="https://peeringdb.com/api/net?depth=2&asn=[asn]">https://peeringdb.com/api/net?depth=2&asn=[asn]</a></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><a href="https://peeringdb.com/api/ixlan/[ix_id]?depth=2">https://peeringdb.com/api/ixlan/[ix_id]?depth=2</a> (We require ASN for each peer to match with the data we have).</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">Firstly I hope that these are the best two end points to use. Secondly I hope this is an appropriate use of the API.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">It's a user configurable option and is off by default, when turned on it will only call for data once a day and cache this info. The call for data would already be randomly delayed by other functions called before it but we've added a random delay of between 60 and 300 seconds to stagger things further.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">The code is within this pull request (<a href="https://github.com/librenms/librenms/pull/6178">https://github.com/librenms/librenms/pull/6178</a>) which we've put a call out for testing.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">If you have any feedback or comments then please let us know.</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">Kind Regards,</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">Neil</span></font></div><div><font face="arial, sans-serif"><span style="white-space:normal">LibreNMS</span></font></div></pre></pre></div></div>