1.\" $OpenBSD: rtquery.8,v 1.18 2005/03/23 18:03:52 jmc Exp $ 2.\" 3.\" Copyright (c) 1982, 1986, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. Neither the name of the University nor the names of its contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.Dd June 1, 1996 31.Dt RTQUERY 8 32.Os 33.Sh NAME 34.Nm rtquery 35.Nd query routing daemons for their routing tables 36.Sh SYNOPSIS 37.Nm rtquery 38.Op Fl 1np 39.Op Fl r Ar addr 40.Op Fl t Ar op 41.Op Fl w Ar timeout 42.Ar host ... 43.Sh DESCRIPTION 44.Nm 45is used to query a RIPv1/2 network routing daemon 46for its routing table by sending a 47.Em request 48command. 49The routing information in any routing 50.Em response 51packets returned is displayed numerically and symbolically. 52.Nm 53is also used to turn tracing on or off. 54.Pp 55See 56.Xr routed 8 57for more information about a RIPv1/2 capable routing daemon. 58.Pp 59The options are as follows: 60.Bl -tag -width Ds 61.It Fl 1 62Query using RIP version 1 instead of RIP version 2. 63.It Fl n 64Normally network and host numbers are displayed both symbolically 65and numerically. 66The 67.Fl n 68option displays only the numeric network and host numbers. 69.It Fl p 70Uses the 71.Em poll 72command to request full routing information, 73instead of the default 74.Em request 75command. 76.It Fl r Ar addr 77Ask about the route to destination 78.Ar addr . 79.It Fl t Ar op 80Change tracing, where 81.Ar op 82is one of the following. 83Requests from processes not running with UID 0 or on distant networks 84are generally ignored by the daemon except for a message in the system log. 85.Bl -tag -width Ds -offset indent 86.It Ic dump 87Dumps the daemon's routing table to the current tracefile. 88.It Ic more 89Increases the debugging level. 90.It Ic off 91Turns off tracing. 92.It Ic on Ns = Ns Ar tracefile 93Turn tracing on into the specified file. 94That file must usually 95have been specified when the daemon was started or be the same 96as a fixed name, often 97.Pa /etc/routed.trace . 98.El 99.It Fl w Ar timeout 100Changes the delay for an answer from each host. 101By default, each host is given 15 seconds to respond. 102.El 103.Sh SEE ALSO 104.Xr routed 8 105.Rs 106.%R RFC 1058 107.%T Routing Information Protocol, RIPv1 108.%D June 1988 109.Re 110.Rs 111.%R RFC 1723 112.%T Routing Information Protocol, RIPv2 113.%D November 1994 114.Re 115