uCosminexus Service Platform, Setup and Operation Guide
To set up the FTP inbound adapter, the HCSC server must be in a running state.
For details on how to check the status of the HCSC server, see "5.3.15 Checking the HCSC server information".
The following figure shows flow of setup for an FTP inbound adapter.
Figure 3-7 Figure Flow of setup for an FTP inbound adapter
The execution format for importing the FTP inbound adapter is as follows:
<Service Platform installation directory>„CC„admin„bin„cjimportres <J2EE server name> -type rar -f "<Service Platform installation directory>„CSC„inbound-adapter„ftp„rar„ftp_inbound_adapter.rar" |
For details on the cjimportres command, see "2.4 Resource operation commands used in the J2EE server" in "Application Server Command Reference Guide".
The execution format for deploying the FTP inbound adapter is as follows:
<Service Platform installation directory>„CC„admin„bin„cjdeployrar <J2EE server name> -resname FTP_Inbound_Resource_Adapter |
For details on the cjdeployrar command, see "2.4 Resource operation commands used in the J2EE server" in "Application Server Command Reference Guide".
The procedure for setting up the FTP inbound adapter, and the contents of the property file are as follows.
<Service Platform installation directory>„CC„admin„bin„jgetrarprop <J2EE server name> -resname FTP_Inbound_Resource_Adapter -c <file path of the property file> |
<Service Platform installation directory>„CC„admin„bin„cjsetrarprop <J2EE server name> -resname FTP_Inbound_Resource_Adapter -c <file path of the property file> |
For details on the cjsetrarprop command, see "2.4 Resource operation commands used in the J2EE server" in "Application Server Command Reference Guide".
<hitachi-connector-property> <resourceadapter> <config-property> <config-property-name> : Definition name <config-property-type> : Definition type <config-property-value> : Definition value </config-property> <config-property> <config-property-name> : Definition name <config-property-type> : Definition type <config-property-value> : Definition value </config-property> : (Repeated for the existing number of definitions) : |
Figure 3-8 Figure Locations where the property file contents and definitions are set up
Table 3-22 Table Lists of property file definition items (Settings related to transmit control)
| Definition items | Definition name | Range of values | Default value | Supplementary information |
|---|---|---|---|---|
| Maximum number of concurrent connections | server_maxLogins | 1 to 1024 | 10 | -- |
| Use of character set UTF-8 | server_charset_UTF8 | ON or OFF | ON | If ON is specified, UTF-8 is used as the character code. If OFF is specified, MS932 is used as the character code. Note that if the character set is specified with the FTP command, that setting is enabled. |
| Compatibility of FTP response termination character | server_endOfLineCompatible | true or false | false (CRLF becomes the default termination code) |
If true is specified, an OS-dependent linefeed code (In Windows: CRLF, In UNIX: LF) is used as the FTP response termination character. If false is specified, CRLF is used as the FTP response termination character. |
| Local IP address | nioListener_localAddress | 0.0.0.0 to 255.255.255.255 | All available (If the host executing the FTP inbound adapter has multiple IP addresses, the requests from the FTP client are received on all the IP addresses) |
You can only specify the IPv4 IP address. IPv6 is not supported. |
| Port number | nioListener_port | 1 to 65535 | 21 | -- |
| Local IP address when the data connection is established | nioListener_dataConnection_active_localAddress | 0.0.0.0 to 255.255.255.255 | Any available (If the host executing the FTP inbound adapter has multiple IP addresses, the system automatically allocates any IP address) |
You can only specify the IPv4 IP address. IPv6 is not supported. |
| Port number when the data connection is established | nioListener_dataConnection_active_localPort | 1 to 65535 | Any available (The port number that is free in the host executing the FTP inbound adapter is allocated) |
Do not specify a port number that is already in use. If specified, the data connection cannot be established. |
| Listen backlog count | nioListener_listenBacklog | 1 to 2147483647 | 50 | -- |
| Data connection buffer size | nioListener_dataConnection_socketBufferSize | 1 to 65536 | 16384 | (Unit: bytes) |
Table 3-23 Table List of property file definition items (Settings related to timeout)
| Definition items | Definition name | Range of values | Default value | Supplementary information |
|---|---|---|---|---|
| Idle timeout | nioListener_idleTimeout | 0 to 7200 | 300 | If 0 is specified, the timeout is not monitored. (Unit: seconds) |
| Data connection retry count | nioListener_dataConnection_active_connectRetryCount | 0 to 50 | 5 | If 0 is specified, connection is not retried. |
| Data connection monitoring time | nioListener_dataConnection_active_connectRetryInterval | 0 to 1800 | 10 | If 0 is specified, the timeout is not monitored. (Unit: seconds) |
| Data sending and data receiving timeout | nioListener_dataConnection_idleTimeout | 0 to 1800 | 10 | If 0 is specified, the timeout is not monitored. (Unit: seconds) |
Table 3-24 Table List of property file definition items (Settings related to log output)
| Classification | Definition items | Definition name | Range of values | default value | Supplementary information |
|---|---|---|---|---|---|
| Message log | Output level | server_message_logLevel | debug, or info | info | info: This level outputs information that is used for normal operations and is necessary for operations. debug: This level is used for investigation when test or error occurs, and outputs the debug information in addition to the information output in "info". |
| Size per log file | server_message_maxFileSize | 1MB to 2048MB | 10MB | Specify the character string for the unit as well. (Unit: MB) |
|
| Number of backup log files | server_message_maxBackupIndex | 1 to 16 | 4 | -- | |
| Maintenance log | Log output level | server_maintenance_logLevel | debug, or info | info | The meaning of "info" and "debug" is the same as the "log output level" of the message log. |
| Size per log file | server_maintenance_maxFileSize | 1MB to 2048MB | 5MB | Specify the character string for the unit as well. (Unit: MB) |
|
| Number of backup log files | server_maintenance_maxBackupIndex | 1 to 16 | 4 | -- | |
| Protocol trace log | Log output level | server_protocol_logLevel | debug, or info | info | The meaning of "info" and "debug" is the same as the "log output level" of the message log. |
| Size per log file | server_protocol_maxFileSize | 1MB to 2048MB | 20MB | Specify the character string for the unit as well. (Unit: MB) |
|
| Number of backup log files | server_protocol_maxBackupIndex | 1 to 16 | 4 | -- | |
| Transmit history log | Log output level | server_history_logLevel | debug, or info | info | The meaning of "info" and "debug" is the same as the "log output level" of the message log. |
| Size per log file | server_history_maxFileSize | 1MB to 2048MB | 12MB | Specify the character string for the unit as well. (Unit: MB) |
|
| Number of backup log files | server_history_maxBackupIndex | 1 | 1 | -- | |
| Common log between resource adapters | Log output level | server_common_logLevel | debug, or info | info | The meaning of "info" and "debug" is the same as the "log output level" of the message log. |
| Size per log file | server_common_maxFileSize | 1MB to 2048MB | 5MB | Specify the character string for the unit as well. (Unit: MB) |
|
| Number of backup log files | server_common_maxBackupIndex | 1 to 16 | 4 | -- |
The user information is managed as a file by the FTP inbound adapter. The Administrator who has the administrator permission can register, update, delete, and display the authentication information file by executing the operation commands.
The following table describes the operation commands for authentication information.
Table 3-25 Table Operation commands for authentication information
| Operation commands | Contents |
|---|---|
| csmftpaddusr (Command for registering or updating a user in the FTP inbound adapter) | Registers a user. Also, updates the password of a user that is already registered. |
| csmftpdelusr (Command for deleting a user in the FTP inbound adapter) | Deletes the authentication information of the registered users. |
| csmftplsusr (Command for displaying the users of the FTP inbound adapter) | Displays the authentication information of the registered users. |
For details on the operation commands, see the description in "5. Commands (Operating Environment and Execution Environment)" in "Service Platform Reference Guide".
Note the following when you execute the operation commands:
The execution format of operation commands is as follows:
csmftpaddusr -usr <user name> -pass <password of the user> |
csmftpdelusr -usr <user name> |
csmftplsusr |
To grant the permission to access the authentication information, before the operations start, the operator must set up the update or reference permission for the authentication information file only for the Administrator who executes the operation commands.
Note that if the access permission is set up for the Administrator, the Administrator becomes the owner of the authentication information file.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.