Index Click this button to go to the index for this section.


jdbmod(8)

NAME

jdbmod - Adds, modifies, or deletes data in the DHCP dynamic databases.

SYNOPSIS

/usr/sbin/jdbmod [-d] [-e] [-f character] [-l|-n] [-o] [-w] filename...

FLAGS

-e Loads the data of a particular record even though the lease has expired. The default is not to load such records. Use this option with care: the server may have re-leased the expired addresses to a new client since the data was dumped. -d Deletes the records whose keys are implied by the input file(s). The key fields are the hardware type and address and the subnet containing the IP address. -f character Uses character as the field separator. The default is |. -l Loads lease information only. Do not load names. The default is to load both. -n Loads name information only. -o Only loads records owner by this server. -w Allows existing records to be overwritten. The default mode is to forbid the update if the record already exists in the database.

DESCRIPTION

The jdbmod command modifies the databases used by joind to store information on client IP address leases and dynamic names. The jdbmod command allows the user to load preassigned hardware-IP address combinations for those clients requiring infinite leases. Each record to be loaded is terminated by a newline, and the fields within each record delimited by default with the pipe (|) character, although this may be changed with the -f command line option. Date fields may either be expressed in Universal Coordinated Time (UCT), which is the number of seconds since 00:00 01/01/1970 GMT, or in a variety of formats more easily understood by liveware (for example, Mon Jan 09 1995 10:00 and 01/09/1995 10:00:00) The fields within the data file(s) to be loaded are as follows: · MAC address · MAC address type · MAC address length (octets) · IP address · Start of lease · Lease expiration · Time when lease may be extended · Time when host last renewed or acquired this lease · IP address of server "owning" the lease · Hostname (without domain) · Domain name

RESTRICTIONS

Because the database used by join does not support multi-user concurrency, applications that write to it lock the entire database. This means that you cannot use jdbmod while joind is running. The converse is also true. The jdbmod command keys its data entry from the MAC address/ subnet IP address tuple, replacing the record (in overwrite mode) if it already exists or adding the record if it does not. However, it does not check whether the resulting IP address has already been taken by another client. Before loading a file you must ensure that no IP address conflicts exist either internal to the file itself or to the existing database.

FILES

/var/join/*.hsh /var/join/*.btr

RELATED INFORMATION

Commands: jdbdump(8), joind(8)