Previous Topic: TCP Connect TestsNext Topic: Virtual User Tests


TFTP Tests

The TFTP test monitors the amount of time required to read or write a file using the TFTP protocol.

Options and Arguments

TFTP tests require the following specific options and arguments:

Specify these options and arguments when you create or modify tests.

Example 1: Reading a File with TFTP

Use this example to create a test that monitors the amount of time required to read a file through the TFTP service at tftpserver.yourdomain. This example tests the server once every 30 seconds and waits up to 10 seconds for a successful response. It calculates response time and availability statistics over the last 120 seconds (2 minutes).

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 TFTP.
  3. In the Description field, specify tftpserver_read.
  4. In the Test Name field, specify TFTP Reading File Test.
  5. In the Test Interval field, specify 30.
  6. In the Test Timeout field, specify 10.
  7. In the Samples Per Interval field, specify 1.
  8. In the Statistics Window field, specify 120.
  9. In the TFTP Server field, specify tftpserver.yourdomain.
  10. In the TFTP Port field, accept the default of 69.
  11. In the Operation field, select Read File.
  12. In the Filename field, specify I:\SA\TFTP\get.txt.
  13. Accept defaults for all other fields.
  14. Click Save Test.

When you perform a commit/sync of the test, SRM adds an entry similar to the following to the svcrsp.cf file:

{ 
index=11 
type=tftp
desc="tftpserver.read" 
dest="tftpserver@yourdomain.com:69" 
args="op=r&path=I:\SA\TFTP\get.txt" 
interval=30 
samples=1 
timeout=10 
window=120 
tos=0 
limit=0 
status=active 
name="TFTP Reading File Test"
class=""
context=""
flags="1"
loglevel=1
}

Example 2: Writing a File with TFTP

Use this example to create a test that monitors the amount of time required to write a file through the TFTP service at tftpserver.yourdomain. This example tests the server once every 30 seconds and waits up to 10 seconds for a successful response. It calculates response time and availability statistics over the last 120 seconds (2 minutes).

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 TFTP.
  3. In the Description field, specify tftpserver_write.
  4. In the Test Name field, specify TFTP Writing File Test.
  5. In the Test Interval field, specify 30.
  6. In the Test Timeout field, specify 10.
  7. In the Samples Per Interval field, specify 1.
  8. In the Statistics Window field, specify 120.
  9. In the TFTP Server field, specify tftpserver.yourdomain.
  10. In the TFTP Port field, accept the default of 69.
  11. In the Operation field, select Write File.
  12. In the Filename field, specify I:\SA\TFTP\put.txt.
  13. Accept defaults for all other fields.
  14. Click Save Test.

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

{ 
index=22 
type=tftp
desc="tftpserver_write" 
dest="tftpserver.yourdomain.com:69" 
args="op=w&path=I:\SA\TFTP\put.txt" 
interval=30 
samples=1 
timeout=10 
window=120 
tos=0 
status=active 
name="TFTP Writing File Test"
class=""
context=""
flags="1"
loglevel=1
}

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