Print this page
12305 typos in dhcp man pages

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/dhcpagent.1m
          +++ new/usr/src/man/man1m/dhcpagent.1m
   1    1  '\" te
   2    2  .\"  Copyright (c) 1992-1996 Competitive Automation, Inc. Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
   3    3  .\"  Copyright (c) 2016-2017, Chris Fraire <cfraire@me.com>.
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
   5    5  .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
   6    6  .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH DHCPAGENT 1M "Jun 30, 2017"
        7 +.TH DHCPAGENT 1M "Feb 13, 2020"
   8    8  .SH NAME
   9    9  dhcpagent \- Dynamic Host Configuration Protocol (DHCP) client daemon
  10   10  .SH SYNOPSIS
  11      -.LP
  12   11  .nf
  13   12  \fBdhcpagent\fR [\fB-a\fR] [ \fB-d\fR \fIn\fR] [\fB-f\fR] [\fB-v\fR]
  14   13  .fi
  15   14  
  16   15  .SH DESCRIPTION
  17      -.LP
  18   16  \fBdhcpagent\fR implements the client half of the Dynamic Host Configuration
  19   17  Protocol \fB(DHCP)\fR for machines running illumos software.
  20   18  .sp
  21   19  .LP
  22   20  The \fBdhcpagent\fR daemon obtains configuration parameters for the client
  23   21  (local) machine's network interfaces from a \fBDHCP\fR server. These parameters
  24   22  may include a lease on an \fBIP\fR address, which gives the client machine use
  25   23  of the address for the period of the lease, which may be infinite. If the
  26   24  client wishes to use the \fBIP\fR address for a period longer than the lease,
  27   25  it must negotiate an extension using \fBDHCP\fR. For this reason,
↓ open down ↓ 106 lines elided ↑ open up ↑
 134  132  Any commas in the platform name are changed to periods.
 135  133  .RE
 136  134  .RS +4
 137  135  .TP
 138  136  .ie t \(bu
 139  137  .el o
 140  138  If the name does not start with a stock symbol and a comma, it is automatically
 141  139  prefixed with \fBSUNW\fR.
 142  140  .RE
 143  141  .SS "Messages"
 144      -.LP
 145  142  The \fBdhcpagent\fR daemon writes information and error messages in five
 146  143  categories:
 147  144  .sp
 148  145  .ne 2
 149  146  .na
 150  147  \fBcritical\fR
 151  148  .ad
 152  149  .sp .6
 153  150  .RS 4n
 154  151  Critical messages indicate severe conditions that prevent proper operation.
↓ open down ↓ 49 lines elided ↑ open up ↑
 204  201  Debugging messages are only generated when using the \fB-d\fR option.
 205  202  .RE
 206  203  
 207  204  .sp
 208  205  .LP
 209  206  When \fBdhcpagent\fR is run without the \fB-f\fR option, all messages are sent
 210  207  to the system logger \fBsyslog\fR(3C) at the appropriate matching priority and
 211  208  with a facility identifier \fBLOG_DAEMON\fR. When \fBdhcpagent\fR is run with
 212  209  the \fB-f\fR option, all messages are directed to standard error.
 213  210  .SS "DHCP Events and User-Defined Actions"
 214      -.LP
 215  211  If an executable (binary or script) is placed at \fB/etc/dhcp/eventhook\fR, the
 216  212  \fBdhcpagent\fR daemon will automatically run that program when any of the
 217  213  following events occur:
 218  214  .sp
 219  215  .ne 2
 220  216  .na
 221  217  \fB\fBBOUND\fR and \fBBOUND6\fR\fR
 222  218  .ad
 223  219  .sp .6
 224  220  .RS 4n
↓ open down ↓ 119 lines elided ↑ open up ↑
 344  340  runs with root privileges.
 345  341  .sp
 346  342  .LP
 347  343  If an invocation of the event program does not exit after 55 seconds, it is
 348  344  sent a \fBSIGTERM\fR signal. If does not exit within the next three seconds, it
 349  345  is terminated by a \fBSIGKILL\fR signal.
 350  346  .sp
 351  347  .LP
 352  348  See EXAMPLES for an example event program.
 353  349  .SH OPTIONS
 354      -.LP
 355  350  The following options are supported:
 356  351  .sp
 357  352  .ne 2
 358  353  .na
 359  354  \fB\fB-a\fR\fR
 360  355  .ad
 361  356  .sp .6
 362  357  .RS 4n
 363  358  Adopt a configured IPv4 interface. This option is for use with diskless
 364  359  \fBDHCP\fR clients. In the case of diskless \fBDHCP\fR, \fBDHCP\fR has already
↓ open down ↓ 54 lines elided ↑ open up ↑
 419  414  .ne 2
 420  415  .na
 421  416  \fB\fB-v\fR\fR
 422  417  .ad
 423  418  .sp .6
 424  419  .RS 4n
 425  420  Provide verbose output useful for debugging site configuration problems.
 426  421  .RE
 427  422  
 428  423  .SH EXAMPLES
 429      -.LP
 430  424  \fBExample 1 \fRExample Event Program
 431  425  .sp
 432  426  .LP
 433  427  The following script is stored in the file \fB/etc/dhcp/eventhook\fR, owned by
 434  428  root with a mode of 755. It is invoked upon the occurrence of the events listed
 435  429  in the file.
 436  430  
 437  431  .sp
 438  432  .in +2
 439  433  .nf
↓ open down ↓ 7 lines elided ↑ open up ↑
 447  441  "BOUND")
 448  442       echo "Address acquired from server "\e
 449  443           `/sbin/dhcpinfo -i $1 ServerID`
 450  444       ;;
 451  445  "BOUND6")
 452  446       echo "Addresses acquired from server " \e
 453  447           `/sbin/dhcpinfo -v6 -i $1 ServerID`
 454  448       ;;
 455  449  "EXTEND")
 456  450      echo "Lease extended for " \e
 457      -         `sbin/dhcpinfo -i $1 LeaseTim`" seconds"
      451 +         `/sbin/dhcpinfo -i $1 LeaseTim`" seconds"
 458  452       ;;
 459  453  "EXTEND6")
 460  454      echo "New lease information obtained on $i"
 461  455       ;;
 462  456  "EXPIRE" | "DROP" | "RELEASE")
 463  457       ;;
 464  458  
 465  459  esac
 466  460  ) >/var/run/dhcp_eventhook_output 2>&1
 467  461  .fi
↓ open down ↓ 348 lines elided ↑ open up ↑
 816  810  .ne 2
 817  811  .na
 818  812  \fB\fB/etc/dhcp/eventhook\fR\fR
 819  813  .ad
 820  814  .sp .6
 821  815  .RS 4n
 822  816  Location of a DHCP event program.
 823  817  .RE
 824  818  
 825  819  .SH ATTRIBUTES
 826      -.LP
 827  820  See \fBattributes\fR(5) for descriptions of the following attributes:
 828  821  .sp
 829  822  
 830  823  .sp
 831  824  .TS
 832  825  box;
 833  826  c | c
 834  827  l | l .
 835  828  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 836  829  _
 837  830  Interface Stability     Committed
 838  831  .TE
 839  832  
 840  833  .SH SEE ALSO
 841      -.LP
 842  834  \fBdhcpinfo\fR(1), \fBifconfig\fR(1M), \fBinit\fR(1M), \fBin.mpathd\fR(1M),
 843  835  \fBin.ndpd\fR(1M), \fBipadm\fR(1M), \fBnwamcfg\fR(1M), \fBsyslog\fR(3C),
 844  836  \fBnodename\fR(4), \fBresolv.conf\fR(4), \fBattributes\fR(5), \fBdhcp\fR(5)
 845  837  .sp
 846  838  .LP
 847  839  \fI\fR
 848  840  .sp
 849  841  .LP
 850  842  Croft, B. and Gilmore, J. \fIRFC 951, Bootstrap Protocol (BOOTP)\fR, Network
 851  843  Working Group, September 1985.
↓ open down ↓ 4 lines elided ↑ open up ↑
 856  848  .sp
 857  849  .LP
 858  850  Lemon, T. and B. Sommerfeld. \fIRFC 4361, Node-specific Client Identifiers for
 859  851  Dynamic Host Configuration Protocol Version Four (DHCPv4)\fR. Nominum and Sun
 860  852  Microsystems. February 2006.
 861  853  .sp
 862  854  .LP
 863  855  Droms, R. \fIRFC 3315, Dynamic Host Configuration Protocol for IPv6
 864  856  (DHCPv6)\fR. Cisco Systems. July 2003.
 865  857  .SH NOTES
 866      -.LP
 867  858  The \fBdhcpagent\fR daemon can be used on IPv4 logical interfaces, just as with
 868  859  physical interfaces. When used on a logical interface, the daemon automatically
 869  860  constructs a Client ID value based on the DUID and IAID values, according to
 870  861  RFC 4361. The  \fB/etc/default/dhcpagent\fR \fBCLIENT_ID\fR value, if any,
 871  862  overrides this automatic identifier.
 872  863  .sp
 873  864  .LP
 874  865  As with physical IPv4 interfaces, the \fB/etc/hostname.hme0:1\fR and
 875  866  \fB/etc/dhcp.hme0:1\fR files must also be created in order for \fBhme0:1\fR to
 876  867  be automatically plumbed and configured at boot. In addition, unlike physical
↓ open down ↓ 28 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX