3.11.1 Creating a definition file
Create a definition file as shown below.
- Organization of this subsection
(1) Creating a definition file
Create a definition file with the following path name:
JP1/FTP-installation-directory\HOSTINFO.INI
(2) Contents of the definition file
Specify information in the format of a Windows initialization file (.ini), as shown below:
The following table lists and describes the sections, keys, and values that can be specified.
Section |
Key |
Value |
Description |
---|---|---|---|
[CSHOST] |
CSHost |
YES|NO <<NO>> |
At the FTP client, specifies whether the ftstran command's /H specification and the fts_ftp_open_ex() function's hostname specification are to be effective:
|
[RSPMSG] |
Reverse |
YES|NO|(omitted) <<omitted>> |
Specifies the output format for the FTP server's host name in a response message that is sent from the FTP server:
|
[JP1EVENT] |
HostName |
host-name|IP-address | (omitted) <<omitted>> |
Specifies the destination for output of JP1 events:
|
AgentIsSame |
YES|NO <<YES>> |
Specifies whether to set the destination of the JP1 events reporting the start and stop of the agent service to the host specified in HostName.
|
|
TransIsSame |
YES|NO <<NO>> |
Specifies whether to set the destination of the JP1 events reporting the end of transmission to the host specified in HostName.
|
The following table shows the destination of the JP1 events reporting the end of transmission, as determined on the basis of the combination of defined specification values.
HostName |
TransIsSame |
Destination of the JP1 events reporting the end of transmission |
---|---|---|
Specified |
YES |
Host specified by HostName |
NO |
Host that executed the transmission |
|
Not specified |
YES |
Physical host |
NO |
Physical host |
- Example
-
-
This example enables the /H specification in the ftstran command and the hostname specification in fts_ftp_open_ex() function.
-
This example sets the host name obtained by converting the connected IP address as the FTP server's host name in the FTP server's response message.
-
This example sets the destination of JP1 events reporting the start and stop of services (client, server, log, or agent) or the end of transmission to Host1 (logical host name = Host1).
-
(3) Note
If there is no definition file, these functions are disabled (they operate on the basis of the default values).