[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    hostconfig(1M) manual page Table of Contents

Name

hostconfig - configure a system’s host parameters

Synopsis

/usr/bin/hostconfig -p protocol [ -d ] [ -n ] [ -v ] [ -i interface ] [ -f hostname ]

Availability

SUNWcsu

Description

The hostconfig program uses a network protocol to acquire a machine’s ‘host parameters’ and then sets these parameters on the system. The program selects which protocol to use based on the argument to the required -p flag. Different protocols may set different host parameters. Currently, two protocols are defined but only one protocol is supported.

Options

-p bootparams
Use the ‘whoami’ call of the RPC ‘bootparams’ protocol. This sets the system’s hostname, domainname, and default IP router parameters.
-p bootp
Use the BOOTP protocol (not currently supported).
-d
Enable ‘debug’ output.
-n
Run the network protocol, but do not set the acquired parameters into the system.
-v
Enable verbose output.
-i interface
Use only the named network interface to run the protocol.
-f hostname
Run the protocol as if this machine were named hostname.

Examples

To configure a machine’s host parameters using the ‘bootparams whoami’ protocol with a verbose output, use

example% hostconfig -p bootparams -v

To see what parameters would be set using the ‘bootparams whoami’ protocol, use

example% hostconfig -p bootparams -n -v

See Also

hostname(1) , domainname(1M) , route(1M)


Table of Contents