Federated architecture - get cameras from child site

Hi ,

We have set up a Federated Site hierarchy in our lab with multiple servers . We require to track each Milestone instance, so that we can send alarms along with the metadata to the appropriate Milestone instance.

In order to achieve this, initially we are trying to discover cameras from all the nodes. We have tried the component samples like MultiSiteStatus viewer and ConfigAccessViaSDK, here we are able to discover the parent site cameras and the connected Child Site. But we are unable to access the cameras attached to the child site. The Child site item returns zero children. Please find the below screenshot showing this.

Milestone VMS - XProtect 2023 R3

Milestone SDK - latest nuget packages (23.3.1)

Kindly suggest if there is any way to achieve this.

Please change the ConfigAccessViaSDK sample in this way.. (App.xaml.cs line 36)

loginForm.MasterOnly = false;   // Add this to login in MFA
loginForm.ShowDialog();

I recommend the MultiSiteViewer sample for a broader understanding of how you can login to a MFA ( multiple strategies)

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/multisiteviewer/readme.html&tree=tree_2.html

I am unsure, when you mention MultiSiteStatusViewer, because with that one you should be able to login to a MFA!

If you still have issue perhaps take a step back. If you can login on the MFA, seeing the expected servers and devices, using the Smart Client, same user, from same PC, then the MIP SDK should also work. If the Smart Client cannot then you have a general issue and this should be addressed before trying with MIP SDK

Hi Bo,

Thanks for your response.

1. Based on your inputs, I have made ‘masterOnly flag = false’ in the ConfigAccessViaSDK sample and retried, yet the result is the same as previously, I am unable to get the items under the child site.

2. Next, I have run the MultiSiteViewer , with the following options:

a. ‘Sample loads all child sites’: I get a VideoOS.Platform.SDK.Platform.ServerNotFoundMIPException when there is an attempt to login to the child site. This is the output from the debug logs:

"ConnectionCheck for:http://milestone-child.xxxx.net/, Took:10ms

ConstructLoginServer: Unable to identify server type:milestone-child.nuvteq.net

Exception thrown: ‘VideoOS.Platform.SDK.Platform.ServerNotFoundMIPException’ in VideoOS.Platform.SDK.dll

An unhandled exception of type ‘VideoOS.Platform.SDK.Platform.ServerNotFoundMIPException’ occurred in VideoOS.Platform.SDK.dll"

b. ‘SDK loads all child sites’: I get a similar exception as above ServerNotFoundMIPException when app tries to login to child site.

3. When we open the the Smart Cient on the master site, we are able to see the cameras of the child site on the Cameras list.

Appreciate your inputs on this.

Thanks.

Please find the exception logs attached here.

Thanks

I suspect network connectivity, please test the Smart Client from the same PC and using same credentials.

Also can you ping the servers on hostname?

Hi Bo,

Thanks for your response.

I tested on the same machine (parent site) where the Smart Client resides. I am now able to get access to the Child site cameras as well. It looks like the shared domain between parent child worked.

Thanks