2 .\" Copyright (c) 2003,2004 The DragonFly Project. All rights reserved.
4 .\" This code is derived from software contributed to The DragonFly Project
5 .\" by Matthew Dillon <dillon@backplane.com>
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in
15 .\" the documentation and/or other materials provided with the
17 .\" 3. Neither the name of The DragonFly Project nor the names of its
18 .\" contributors may be used to endorse or promote products derived
19 .\" from this software without specific, prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 .\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 .\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 .\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .Nd Remote Configuration Client/Server
45 .Op Ar host[:tag] Ar ...
49 .Op Fl C Ar configfiles
52 .Op Ar bind_address Ar ...
56 utility provides simple remote configurator functionality. In client mode
58 will broadcast a request for the specified configuration tag over available
59 interfaces (or you can specify an IP), locate a server capable of supplying
60 the tag, then connect to, download, and run the script associate with the
63 will listen on port 257 for broadcast requests (UDP) and connections (TCP).
64 Note that UDP based requests are only responded to if the requested tag
65 is available. You can run the server on multiple machines on the LAN
66 serving different tags or, if you wish to provide a backup, serving the
67 same tags, or a mix. The client will use the first matching tag it encounters.
69 The following command line options are available when operating in client mode:
73 will broadcast a request for the 'auto' tag on all available interfaces.
74 No additional arguments are necessary.
76 Specify the working directory for script downloads. The default is
79 Verbose mode prints additional information during program execution.
81 Specify any number of remote IP addresses or broadcast addresses. If no
84 defaults to 'auto'. If you specify just a tag using :tag the broadcast
85 address for all available interfaces will be used. The
87 option should not be used in that case.
90 The following command line options are available when operating in server mode:
93 This option is required to operate
98 will bind to and listen on all available interfaces. If this option is not
99 used you must specify a particular IP address or addresses to bind to. The
100 server listens on port 257 for both UDP and TCP.
102 Specify the directory containing the tag scripts. The default is
103 .Pa /usr/local/etc/rconfig .
104 Tag scripts are in the form:
106 The tag name can only consist of alphabets (lower and upper letters),
107 digits (zero to nine), underscore (_), dot (.),
108 minus (-) and plus (+) symbols.
109 .It Fl C Ar configfiles
110 Specify server configuration files (currently unused).
112 Verbose mode prints additional information during program execution.
114 Specify any number of IP addresses or hostnames corresponding to machine
115 local addresses that the server will bind to and listen on.
118 .Pa /usr/share/examples/rconfig
122 This program was written by