System Administration Guide: IP Services

How to Enable and Disable DHCP Transaction Logging for Current Session (Command Line)

  1. Become superuser on the DHCP server system.

  2. Type the following commands to enable logging for the current session:


    # /etc/init.d/dhcp stop
    # /usr/lib/inet/in.dhcpd -l syslog-local-facility
    

    where syslog-local-facility is a number from 0 through 7. If you omit this option, 0 is used by default. See How to Enable and Disable DHCP Transaction Logging (DHCP Manager).


    Note –

    To disable transaction logging, omit the -l option when starting in.dhcpd.


    By default, DHCP transactions are logged to the location where system notices are logged, which depends on how syslogd is configured. If you want the DHCP transactions to be logged to a file separate from other system notices, see How to Log DHCP Transactions to a Separate syslog File.

    Message files can quickly become very large when transaction logging is enabled.