Configuring the FTP adapter
In addition to targets defined in the adapter configuration, the FTP adapter can have a dynamic target defined in each adapter request. If a dynamic target is always defined in the FTP adapter request, a configuration node, <config/>
is used in the adapter configuration.
BMC recommends that you do not include unused elements in the adapter configuration because they might cause errors.
Adapter type: ro-adapter-ftp [baob201402:version]
Default adapter name: FTPActorAdapter
To configure the FTP adapter, see Configuring base adapters.
The following table describes the adapter configuration elements for the FTP adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.
Configuration node elements for the FTP adapter
UI label | Element | Description | Required |
---|---|---|---|
Target |
| Specifies the host name or the IP address of the remote host Note You can specify an IPv6 address with a zone ID for the | Yes |
Port |
| Specifies the port on which the remote host listens | No |
User Name |
| Specifies the user name to be used for remote host authentication | Yes |
Password |
| Specifies the password that corresponds to the | Yes |
Encryption Type |
| Indicates whether the password specified is encrypted; is an attribute of the | No |
Timeout Secs |
| The time, in seconds, to wait for the expected prompt to be returned | No |
Character Set |
| Specifies the supporting CharSet | No |
The following figure shows an XML template of the FTP adapter configuration.
XML template of the FTP adapter configuration
<configs>
<config name="host1">
<target></target>
<port></port>
<user-name></user-name>
<password encryption-type=""></password>
<timeout-secs></timeout-secs>
</config>
<config name="host2">
<target></target>
<port></port>
<user-name></user-name>
<password encryption-type=""></password>
<timeout-secs></timeout-secs>
</config>
</configs>
The following figure shows an XML sample of the FTP adapter configuration.
XML sample of the FTP adapter configuration
<config name="dev4">
<target>192.64.111.222</target>
<port>21</port>
<userName>name</userName>
<password encryption-type="BASE64">password</password>
<preferred-pk-algorithm>ssh-rsa</preferred-pk-algorithm>
<timeout-secs>5</timeout-secs>
</config>
<config name="dev3">
<target>192.168.1.1</target>
<port>21</port>
<userName>name</userName>
<password encryption-type="BaSE64">password</password>
<preferred-pk-algorithm>ssh-rsa</preferred-pk-algorithm>
<timeout-secs>5</timeout-secs>
</config>
The following figure shows an XML sample of the FTP adapter configuration with the Charset element.
XML sample of the FTP adapter configuration with Charset element
<config>
<target>Server</target>
<user-name>user</user-name>
<password encryption-type="Plain">pass</password>
<timeout-secs>120</timeout-secs>
<allow-unknown-hosts>true</allow-unknown-hosts>
<character-set>Shift_JIS</character-set>
</config>
Comments
Log in or register to comment.