Re: [db-wg] Query all route objects for a given AS?
In message <2099338805.63709.1475822808834@mail.yahoo.com>, denis walker <dw100uk@yahoo.co.uk> wrote:
If you type it on the command line you need: whois -rBGi or AS3333 which basically says do an inverse query (-i or) on objects containing:origin: AS3333 give the full object details (-B), without any grouping (-G) and don't return related personal data (-r) If you use the query.html you must also check 'origin' under the 'Inverse lookup' tab.
Thank you. I guess that I must have a very old whois client, because it objected to most of the command line options you listed. But I was able to apply what you said and get the information I wanted from RIPE's web-based WHOIS query page, so that's great. Thanks a lot! Regards, rfg
Ronald F. Guilmette wrote:
I guess that I must have a very old whois client, because it objected to most of the command line options you listed.
What's happening here is that your local whois program is parsing the CLI options instead of passing them straight on to the whois server. The trick is to put what you want the whois server to see in quotation marks, and then put in a space at the beginning so that the local whois client won't think that you're passing cli arguments to it instead. I.e. % whois -h whois.ripe.net " -BGi or AS3333" Nick
Hi Ronald,
Op 7 okt. 2016, om 12:11 heeft Nick Hilliard <nick@inex.ie> het volgende geschreven:
The trick is to put what you want the whois server to see in quotation marks, and then put in a space at the beginning so that the local whois client won't think that you're passing cli arguments to it instead. I.e.
% whois -h whois.ripe.net " -BGi or AS3333"
Another way of doing the same thing but without the "space trick" is to tell the whois command line tool that what follows aren't option it should locally interpret: whois -h whois.ripe.net -- "-BGi origin AS3333" The "--" marks the end of the local options and the beginning of the options that are sent to the server. You still need quotes around the query you do though. Unfortunately there are some magic incantations when using these command line tools :( Cheers, Sander
On 7 Oct 2016, at 13:33, Sander Steffann <sander@steffann.nl> wrote:
Hi Ronald,
Op 7 okt. 2016, om 12:11 heeft Nick Hilliard <nick@inex.ie> het volgende geschreven:
The trick is to put what you want the whois server to see in quotation marks, and then put in a space at the beginning so that the local whois client won't think that you're passing cli arguments to it instead. I.e.
% whois -h whois.ripe.net " -BGi or AS3333"
Another way of doing the same thing but without the "space trick" is to tell the whois command line tool that what follows aren't option it should locally interpret:
whois -h whois.ripe.net -- "-BGi origin AS3333"
The "--" marks the end of the local options and the beginning of the options that are sent to the server. You still need quotes around the query you do though. Unfortunately there are some magic incantations when using these command line tools :(
There is a page on the RIPE NCC website that explains these matters, and other query options, in more detail: https://www.ripe.net/manage-ips-and-asns/db/support/querying-the-ripe-databa... Cheers, Alex
In message <57F774BF.3030307@inex.ie>, Nick Hilliard <nick@inex.ie> wrote:
The trick is to put what you want the whois server to see in quotation marks, and then put in a space at the beginning so that the local whois client won't think that you're passing cli arguments to it instead. I.e.
% whois -h whois.ripe.net " -BGi or AS3333"
Ah! Yes! That fixed it alright. Thanks very much. Regards, rfg
participants (4)
-
Alex Band
-
Nick Hilliard
-
Ronald F. Guilmette
-
Sander Steffann