04-02-2019 04:05 AM
The Outbound Option guide states:
"Importing a local file succeeds only if you import it to the active side. To avoid having to identify which side is active, you can use any of the following methods:", after which it explains the three options of i) using a Windows file share, ii) using Microsoft DFS, or iii) using the Outbound API.
None of those methods are suitable for us: we'd like to simply determine which Campaign Manager is active, and then write the import files to the directory on the Logger on which the active Campaign Manager resides.
Is there any way of determining which side is active?
Solved! Go to Solution.
04-05-2019 06:48 AM
Mathew,
Does the Portico web page show you if its active or not?
If so - then you could use this API to check
Gerry
04-05-2019 05:47 AM
Does nobody have any ideas as to how to do this?
It's not just the writing of the import file - we also need to ensure that we're writing personal callbacks to the Personal_Callback_List table in the BA DB on the correct side, too. Surely there must be some way to determine whether Outbound Option is currently active on side A or side B?
04-05-2019 06:48 AM
Mathew,
Does the Portico web page show you if its active or not?
If so - then you could use this API to check
Gerry
04-05-2019 07:54 AM
Thank you - that looks like it will do the trick. If I GET the following for the A side:
https://<server_A>:7890/icm-dp/rest/DiagnosticPortal/ListProcesses
Then the XML response includes a line like this:
<dp:ProcessProp Name="CampaignManager.exe" Description="CampaignManager" Status="xxxx-LoggerA CampaignManager - (ACTIVE)" UpTime="36.22:45:45.1169921"/>
And for the B side, an equivalent GET includes something like this:
<dp:ProcessProp Name="CampaignManager.exe" Description="CampaignManager" Status="xxxx-LoggerB CampaignManager - (STANDBY)" UpTime="36.22:43:51.1855301"/>
So I should be able to perform a regular REST request to each of the servers, and check the XML response to see if it contains "CampaignManager - (ACTIVE)" or "CampaignManager - (STANDBY)".
04-05-2019 08:54 AM
Excellent!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide