The Service Management Facility (SMF) is described in Chapter 18, Managing Services (Overview), in System Administration Guide: Basic Administration. The SMF svcadm command can be used to enable and start the DHCP server, and disable and stop the DHCP server. However, you cannot use SMF commands to modify the DHCP service options that the DHCP tools allow you to set. In particular, service options that are stored in the /etc/dhcp/dhcpsvc.conf file cannot be set by using the SMF tools.
The following table maps DHCP commands to the equivalent SMF commands.
Table 15–1 SMF Commands For DHCP Server Tasks
Task |
DHCP Command |
SMF Command |
---|---|---|
Enable DHCP service |
dhcpconfig -S -e |
svcadm enable svc:/network/dhcp-server |
Disable DHCP service |
dhcpconfig -S -d |
svcadm disable svc:/network/dhcp-server |
Start DHCP service for current session only |
None |
svcadm enable -t svc:/network/dhcp-server |
Stop DHCP service for current session |
None |
svcadm disable -t svc:/network/dhcp-server |
Restart DHCP service |
dhcpconfig -S -r |
svcadm restart svc:/network/dhcp-server |