HP-UX SNAplus2 R7 APPC Application Suite User's Guide

AFTP
AFTP Conguration
2 AFTP
APPC File Transfer Protocol (
AFTP) provides le manipulation and transfer services to application programs and
end users. With
AFTP, you can copy ASCII and binary les between your computer and any computer running the
AFTPD
provider program.
The
AFTP
application provides a common naming convention for les, a common directory structure, and a common
set of le attributes. This common format enables you to locate and transfer les without knowing how the les are
actually named and stored on the target computer. If the format of your les is supported by the operating system
on each platform, you can share and store les among different platforms that support
AFTP.
If either the source or the destination is an EBCDIC computer, the EBCDIC computer performs ASCII-to-EBCDIC
translation when it receives a le from the ASCII computer, and EBCDIC-to-ASCII translation when it sends a le
in the opposite direction.
In addition to transfer commands, the
AFTP application has subcommands that help you locate the les with which
you want to work. These subcommands enable you to:
Set and query the current directory setting at the source computer and at the target computer
List les in a selected directory at the source computer and at the target computer
Set le transfer options
2.1 AFTP Conguration
You must congure the following les before using the
AFTP application:
aftp.ini (stored in the /opt/sna/samples subdirectory)
asuite.tps (stored in the /etc/opt/sna subdirectory)
The aftp.ini initialization le is included with the AFTP
and ACOPY applications. This le species masks for
specic source and target les to ensure correct le renaming and proper transfer mode. On HP-UX systems, place
this le in your home directory and rename it to .aftp.
The aftp.ini le maps a source mask for a particular type [for example, source_mask (*.ANNOUNCE)] to a target
mask [for example, target_mask (*.ANN)]. In this example, a le on the source machine called test.ANNOUNCE
is renamed to test.ANN on the target machine. This mapping ensures that correct le renaming is performed
during the le transfer. The le type determines whether les are transferred in binary mode or the default ASCII
mode. See Section 2.1.1,
Sample aftp.ini Initialization File, for a sample aftp.ini initialization le.
On Windows clients, the aftp.ini le is also used by the
AFTP
provider program to restrict access to les based
on the conversation security user ID. See the sample aftp.ini le below for information about how to do this.
For information about asuite.tps, see Section 1.2.2, Conguring Your System.
2.1.1 Sample aftp.ini Initialization File
A sample aftp.ini le is shown in the following gure:
Figure 21 Sample aftp.ini File
/*
This file must be copied to the user’s $HOME directory and
renamed to ".aftp"
*/
15