0

I have a ubuntu server with bird6 installed that receives block advertisements via BGP, and I intended that these advertisements that the server received were periodically forwarded to an API? Does anyone know how to do this?

(Example) Output of command: show route receive-protocol bgp 192.31.1.3

inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
  Prefix                  Nexthop              MED     Lclpref    AS path
* 192.70.0.0/22           192.31.1.3                              3000 I
* 192.70.1.0/24           192.31.1.3                              3000 I
* 192.70.2.0/24           192.31.1.3                              3000 I
* 192.70.3.0/24           192.31.1.3                              3000 I
1
  • The basic Linux job scheduler is cron and to periodically perform tasks is called creating a cron job (specification). That is trivial. - Creating a script to be called from the cronjob to convert the output of a command to whatever format your unspecified API requires and posting that is something that can probably be done with almost any of your preferred scripting/programming languages.
    – Bob
    Dec 15, 2021 at 10:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.