Fetchers
The Fetchers enables users to retrieve and place resources from remote hosts into the OL-Hub Resourcesarea.
Currently, there are two types of Fetchers:
- PCML Fetcher: Retrieves resources from AS400 systems.
- FTP Fetcher: Retrieves resources from an FTP URL.
Creating, Configuring, and Executing a Fetcher
Users can create and manage a Fetcher (Fetcher Type instance) via the CLI by following these steps:
Create a Fetcher
Create a fetcher with a specified name and type .
The can be FTP (default) or PCML.
List Fetcher Types
To list available Fetcher Types, use ol list fetchers
Create the Fetcher:
ol create fetcher <fetcher-name> --fetcher-type <fetcher-type>
Navigate to the Fetcher Directory
cd <fetcher-name>
Connect to the Remote Host
Establish a connection to the remote host by providing the hostname, port, username, and password:
ol connect --host <hostname> --port <port> --user <username> --password <password>
Configure the Fetcher
Set the initial directory and file name (or a file name pattern, default is .*). You can also specify the encoding for saved files and the timeout value (default: 60000 ms):
ol config fetcher --file-name <filename> --directory <directory> --encoding <encoding> --retrieve-timeout <timeout>
Fetch Files
Fetch files that match the specified pattern:
ol fetch
Push Files to OL-Hub
Transfer the fetched files from the local path to the desired Hub destination:
ol push resources --path <path> --destination <destination>
`
Updated about 2 months ago