Previous Topic: Custom TestsNext Topic: DNS Tests


DHCP Tests

The DHCP test monitors the amount of time required to send a DHCP request and receive a response.

Note: Run DHCP tests only for systems that are statically configured and are not running a DHCP client. These tests require an open socket on port 68 to listen for requests. If another process (such as a DHCP client) is already listening on port 68, the test will fail.

Options and Arguments

DHCP tests require only the following options and arguments:

DHCP Server – The hostname or IP address of the DHCP server to test. Specify this argument when you create or modify tests.

Note: IPv6 addresses can be used, but they must be embedded in brackets, for example [0:0:0:0:0:0:10.0.00.0].

Example

Use this example to create a test that monitors the amount of time that is required to send a DHCP request to the DHCP server and receive a response.

To create a new test in a policy

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. From the Test Type list, select DHCP.
  3. In the Description field, specify dhcp_resp.
  4. In the Test Name field, specify Test DHCP Service.
  5. In the Test Interval field, specify 300.
  6. In the Test Timeout field, specify 10.
  7. In the Samples Per Interval field, specify 1.
  8. In the Statistics Window field, specify 86400.
  9. In the DHCP Server field, specify 192.174.12.89.
  10. Accept defaults for all other fields.
  11. Click Save Test

When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:

{ 
index=31 
type=dhcp
desc="dhcp_resp" 
dest="192.174.12.89" 
args="" 
interval=120 
samples=1 
timeout=100 
window=300 
tos=0 
limit=0 
status=active 
name="Test DHCP Service"
class=""
context=""
flags="1"
loglevel=2
}

For information about errors you may encounter when running DHCP tests, see DHCP Test Error Codes.