HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3
You can specify either the IP address or name of the remote host. To get a file from a directory
specified as an argument to the tftpd entry in the /etc/inetd.conf file, you must specify
the full path name of the file. If this step fails, see “Troubleshooting BOOTP and TFTP
Servers” (page 109).
3. Compare the ASCII files to verify data transfer:
$ diff testfile /export/testfile
$
If the diff command outputs 0 or nothing, both the ASCII files are the same, which means
tftp has transferred the data properly.
4. Remove the test file after you have verified the installation.
Command Options for Using TFTP
Internet Services includes /usr/bin/tftp, a TFTP client implementation. You can use this
client to verify if the TFTP server is working properly. For example, to retrieve the file bootf
from the TFTP server duncan, run the following command:
# /usr/bin/tftp duncan
At the tftp prompt, enter:
tftp> get bootf
The following message displays indicating a successful data transfer:
Received 23 bytes in 0.1 seconds
Table 3-3 describes the most common tftp commands that you can use when transferring files.
For information on other tftp options, type man 1 tftp on the HP-UX prompt.
Table 3-3 tftp File Transfer Options
DescriptionOption
Sets the TFTP file transfer type to ASCII. This is the default type.
ascii
Sets the TFTP file transfer type to binary.
binary
Copies remote_file to local_file. If local_file is unspecified,
tftpd uses the specified remote_file name as the local_file
name. If local_file is specified as “-”, the remote file is copied to
standard output.
get remote_file [local_file]
Invokes the get command with an IPv6 address. The IPv6 address must
be enclosed in a pair of square brackets ([ and ]).
get [IPv6_address]:remotename
localname
Copies local_file to remote_file. If remote_file is unspecified,
tftpd assigns the local_file name to the remote_file name.
put local_file [remote_file]
Invoke the put command with an IPv6 address. The IPv6 address must
be enclosed in a pair of square brackets ([ and ]).
put localfile
[IPv6_address]:remotefile
When verbose is on, tftpd displays responses from the server host.
When verbose is on and a file transfer completes, tftpd reports
information about the efficiency of the transfer. Enter the verbose
command at the tftpd> prompt to turn the verbose setting on or off.
verbose
Troubleshooting BOOTP and TFTP Servers
This section outlines techniques that can help you diagnose and correct common problems with
the BOOTP and TFTP servers.
Command Options for Using TFTP 109