[PDB Tech] Using the API for integration into LibreNMS
arnold at nipper.de
Tue Mar 14 17:01:23 PDT 2017
On 14.03.2017 23:43, Neil Lathwood wrote:
> PDB is built to be used. Go call the /asn/nnnn endpoint to get the
> name. BTW: Keep in mind that the name of a network may not be the
> same on PDB as it is via whois on an RIR (or RADB). The name of a
> network used for peering is sometimes "unique".
> Thanks for the reply Martin, this would involve a call for every peer on
> an Exchange - that will equate to a large number of api hits per install
> so could mount up.
If you are worried about the number of api calls try this. Build a list
of peers asn1, asn2, ... asnn and then call
That way it's only one call. Or simply do
and look for the (asn,name) pair in the answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: OpenPGP digital signature
More information about the Pdb-tech