xref: /dragonfly/sbin/rconfig/rconfig.8 (revision 19fe1c42)
1.\" $DragonFly: src/sbin/rconfig/rconfig.8,v 1.7 2008/09/07 08:18:54 swildner Exp $
2.\"
3.\" Copyright (c) 2003,2004 The DragonFly Project.  All rights reserved.
4.\"
5.\" This code is derived from software contributed to The DragonFly Project
6.\" by Matthew Dillon <dillon@backplane.com>
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in
16.\"    the documentation and/or other materials provided with the
17.\"    distribution.
18.\" 3. Neither the name of The DragonFly Project nor the names of its
19.\"    contributors may be used to endorse or promote products derived
20.\"    from this software without specific, prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
26.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
28.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.Dd June 17, 2004
36.Dt RCONFIG 8
37.Os
38.Sh NAME
39.Nm rconfig
40.Nd Remote Configuration Client/Server
41.Sh SYNOPSIS
42.Nm
43.Bk -words
44.Op Fl a
45.Op Fl W Ar workdir
46.Op Fl T Ar tagdir
47.Op Fl C Ar configfiles
48.Op Fl s
49.Op Fl v
50.Ek
51.Sh DESCRIPTION
52The
53.Nm
54utility provides simple remote configurator functionality.  In client mode
55.Nm
56will broadcast a request for the specified configuration tag over available
57interfaces (or you can specify an IP), locate a server capable of supplying
58the tag, then connect to, download, and run the script associate with the
59tag.  In server mode
60.Nm
61will listen on port 257 for broadcast requests (UDP) and connections (TCP).
62Note that UDP based requests are only responded to if the requested tag
63is available.  You can run the server on multiple machines on the LAN
64serving different tags or, if you wish to provide a backup, serving the
65same tags, or a mix.  The client will use the first matching tag it encounters.
66.Pp
67The following command line options are available when operating in client mode:
68.Bl -tag -width Fl
69.It Fl a
70.Nm
71will broadcast a request for the 'auto' tag on all available interfaces.
72No additional arguments are necessary.
73.It Fl W Ar workdir
74Specify the working directory for script downloads.  The default is
75.Pa /tmp .
76.It Fl v
77Verbose mode prints additional information during program execution.
78.It host[:tag]
79Specify any number of remote IP addresses or broadcast addresses.  If no
80tag is specified
81.Nm
82defaults to 'auto'.  If you specify just a tag using :tag the broadcast
83address for all available interfaces will be used.  The
84.Fl a
85option should not be used in that case.
86.El
87.Pp
88The following command line options are available when operating in server mode:
89.Bl -tag -width Fl
90.It Fl a
91.Nm
92will bind to and listen on all available interfaces.  If this option is not
93used you must specify a particular IP address or addresses to bind to.  The
94server listens on port 257 for both UDP and TCP.
95.It Fl T Ar tagdir
96Specify the directory containing the tag scripts.  The default is
97.Pa /usr/local/etc/rconfig .
98Tag scripts are in the form:
99.Pa tagname.sh .
100.It Fl C Ar configfiles
101Specify server configuration files (currently unused).
102.It Fl s
103This option is required to operate
104.Nm
105as a server.
106.It Fl v
107Verbose mode prints additional information during program execution.
108.It bind_address
109Specify any number of IP addresses or hostnames corresponding to machine
110local addresses that the server will bind to and listen on.
111.El
112.Sh FILES
113.Pa /usr/share/examples/rconfig
114.Sh SEE ALSO
115.Xr dhclient 8
116.Sh AUTHORS
117This program was written by Matthew Dillon.
118