2 .\" Copyright (c) 2002, Sun Microsystems, Inc.
3 .\" All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH RTQUERY 1M "Apr 24, 2002"
9 rtquery \- query routing daemons for their routing tables
13 \fBrtquery\fR [\fB-np1\fR] [\fB-w\fR \fItimeout\fR] [\fB-r\fR \fIaddr\fR] [\fB-a\fR \fIsecret\fR] \fIhost\fR...
18 \fBrtquery\fR [\fB-t\fR \fIoperation\fR] \fIhost\fR...
24 The \fBrtquery\fR command is used to query a RIP network routing daemon,
25 \fBin.routed\fR(1M) or \fBGateD\fR, for its routing table by sending a request
26 or poll command. The routing information in any routing response packets
27 returned is displayed numerically and symbolically.
30 By default, \fBrtquery\fR uses the request command. When the -p option is
31 specified, \fBrtquery\fR uses the poll command, an undocumented extension to
32 the RIP protocol supported by \fBGateD\fR. When querying \fBGateD\fR, the poll
33 command is preferred over the request command because the response is not
34 subject to Split Horizon and/or Poisoned Reverse, and because some versions of
35 \fBGateD\fR do not answer the request command. \fBin.routed\fR does not answer
36 the poll command, but recognizes requests coming from \fBrtquery\fR and so
40 The \fBrtquery\fR command is also used to turn tracing on or off in
45 The following options are supported:
49 \fB\fB-a\fR \fBpasswd=\fR\fIXXX\fR\fR
53 \fB\fB-a\fR \fBmd5_passwd=\fR\fIXXX\fR|\fIKeyID\fR\fR
56 Causes the query to be sent with the indicated cleartext or MD5 password.
65 Displays only the numeric network and host addresses instead of both numeric
75 Uses the poll command to request full routing information from \fBGateD\fR.
76 This is an undocumented extension RIP protocol supported only by \fBGateD\fR.
82 \fB\fB-r\fR \fIaddr\fR\fR
85 Asks about the route to destination \fIaddr\fR.
91 \fB\fB-t\fR \fIoperation\fR\fR
94 Changes tracing, where \fIoperation\fR is one of the actions listed below.
95 Requests from processes not running with UID 0 or on distant networks are
96 generally ignored by the daemon except for a message in the system log.
97 \fBGateD\fR is likely to ignore these debugging requests.
101 \fBon=\fItracefile\fR\fR
104 Turns tracing on, directing tracing into the specified file. That file must
105 have been specified when the daemon was started or have the name,
106 \fB/var/log/in.routed.trace\fR.
115 Increases the debugging level.
133 Dumps the daemon's routing table to the current trace file.
141 \fB\fB-w\fR \fItimeout\fR\fR
144 Changes the delay for an answer from each host. By default, each host is given
145 15 seconds to respond.
154 Queries using RIP version 1 instead of RIP version 2.
160 The following exit values are returned:
167 Successful completion.
182 \fBin.routed\fR(1M), \fBroute\fR(1M), \fBgateways\fR(4), \fBattributes\fR(5),
183 \fBicmp\fR(7P), \fBinet\fR(7P), \fBudp\fR(7P)
186 \fIRouting Information Protocol, RIPv1, RFC 1058\fR
189 \fIRouting Information Protocol, RIPv2, RFC 2453, STD 0056\fR