How to configure a listening producer partner in Sterling FileGateway
PaulodeOliveira 270004PU2N Comments (10) Visits (11117)
Introduction Up until IBM Sterling Filegateway (SFG) version 18.104.22.168, there was no possibility to configure a Listening Producer; the producer was by default an initiating producer, meaning that it was up to the producer partner to connect to SFG and upload the file to be routed. Starting with SFG 22.214.171.124 and higher, you have the option to configure a Listening producer, this will allow SFG to connect to the remote producer partner and retrieve the files to be routed. This blogs aims to help you configure a Listening Producer in SFG. Note: There is no SFG UI available to configure a Listening Producer, you will need to configure it using The Rest API feature introduced in SFG 126.96.36.199 and higher. The REST API is not installed by default with SFG, you will need to install it manually in order to be able to configure a Listening Producer. Installing REST API See below link to a blog that explains the installation of the REST API as well as a link to the official SFG documentation on the subject. Inst
4. Fill in the Partner Information.
5. The User account parameters to be filled in:
6. The next step is to choose the partner role. Since this is a new functionality that cannot be set via the SFG UI; The SFG UI does not differentiate the producer type,
it will simply list the partner as a producer.
We will choose the new Listening Producer partner role from the Rest API UI:
7. Mark whether or not SSH usage will be needed.
8. Since we have chosen to configure a Listening Producer and we are retrieving files from the remote producer server, we need to provide the details for that connection.
In this example I am assuming the connection will be done via FTP, click on the Add button for the parameter “Producer FTP Configuration”.
Note: The protocols supported out of the box for Listening producer are: FTP, FTPs, C:D and sFTP.
9. Fill in the connection details.
10. Once you filled in all the details, you can click on the submit button to create your Listening producer partner.
Verifying the configuration in the SFG admin UI
Login to the SFG admin UI and look for your new Listening producer partner, note that the SFG UI does not differentiate between Initiating producer and Listening Producer,
it will be listed simply as a producer of data.
How to identify which partners are Listening producers.
The easiest way is to create a group in SFG and add all the Listening producers to that group after they are configured.
This way you can see who is a listening partner simply by selecting the group in the UI.
Another way to check which partners are listening producers is to query the appropriate database table; there are four database tables listing the listening producers,
one for each supported protocol:
You can use the SQL manager in the dashboard UI under:
Operations => System => Support Tools => SQL Manager
And run a query like the one below to obtain, for example, a list of all your FTP Listening Producers:
select * from FG_LIST_PROD_FTP
Enabling the file Transfer
There are four BPs out of the box provided for enabling the Listening producer functionality:
The schedule should run at an interval lower than the lowest polling interval assigned to any of your Listening producers.
Assuming that the Listening partner with the lowest polling interval is set to 10 minutes, we can create a schedule and set it to run, for example, every 5 minutes or lower.
When the schedule runs, the File
protocol BP for that Listening Partner, either File
used and it will send to the protocol BP the connection details provided during configuration, see below an extract from ProcessData showing the connection details.
The Protocol BP will then execute the following steps:
Once the file is added to the mailbox successfully, it is deleted from the remote server.
Hope this blog helped you with your configuration of a Listening Producer and don't hesitate to leave a comment.