Answer the question
In order to leave comments, you need to log in
How to find out only BGP path in telnet?
You connect to the server via telnet
telnet route-server.he.net
then write
show ip bgp 5.63.9.0/24
Information appears where there is a BGP path
50673 57497
In this example there will be 24 of them.
Is there a command that would show only the BGP path? And not one, but everything that is in the result, for example, one path per line? Or any other output would be ok, but the less text, the better.
The fact is that I need to parse it all, and each server has its own issuance template, writing regular expressions for each server is not true. you need a generic way.
Answer the question
In order to leave comments, you need to log in
In general, there is nothing similar in telnet itself. show ip bgp
is in the route server of Hurricane Electric (and others), which works via telnet... Somewhere there is quagga with show ip bgp
, somewhere juniper with show route detail
, somewhere in general bird and/or only http. There is not and cannot be universality.
What exactly is needed? Your requests are closer to the API, maybe it will be easier to pull other services?
For example, routeviews.org provides access to this information via DNS:
host -t txt 70.55.88.77.aspath.routeviews.org
70.55.88.77.aspath.routeviews.org descriptive text "2914 3356 13238" "77.88.55.0" "24"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question