1 2This directory contains a version of the rpc.bootparamd, which have been 3written using the Sun's RPC protocol for bootparamd. To use it you must 4have a copy of the bootparam_prot.x file which on Sun systems you find in 5 6 /usr/include/rpcsvc/bootparam_prot.x 7 8(( This file was retrieved from the Sun-RPC source package )) 9 10 11This code is not copyright, and is placed in the public domain. Feel free to 12use and modify. Please send modifications and/or suggestions + bug fixes to 13 14 Klas Heggemann <klas@nada.kth.se> 15 16 17RPC.BOOTPARAMD 18 19 20The rpc.bootparamd program does NOT use the yellow pages for the bootparams 21database. This data should reside in /etc/bootparams on the local host, 22or another file given when the server is started. 23 24The default router is set to the address of the machine running the server. 25This may not be a good thing to do, so it can be modified using the -r 26option when startning the daemon. 27 28This program was written with the need to keep short hostnames in the 29/etc/bootparams file and long (canonical) names in the hosts database. 30It probably also will work in conjunction with a nameserver, since matching 31is done by comparing the canonical name of the booting machine with the 32canonical name of the hosts found in the bootparams database. 33 34It is kept simple, e g there is no caching of data, but the bootparameter file 35is read at each request. 36 37 38CALLBOOTD 39 40The debugging tool callbootd is used to check the response you get 41to a specific (booting) request. It can be used as 42 callbootd server inet-address 43or 44 callbootd server hostname file 45where "server" is a machine running the rpc.bootparamd program, "inet-address" 46is the internet address of a booting machine, "hostname" is the name of a 47booting machine and "file" the requested file, typically "root", "swap" or 48"dump". 49 50You may also use "all" instead of a specific server, in which case a RPC 51broadcast is performed. The broadcast is performed 4 times and then the 52program times out, after printing all responses. 53 54 55TODO 56 57Cache the date, instead of rereading it. 58Maybe match by comparing the inet address instead. (But beware that caching 59will prevent the server from detecting that a machine has changed name 60or address.) 61