Copy configuration of subsite to top site (federated)

Is it possible to copy, as much as possible, configuration of a subsite to a top site?

By configuration I mean for example devices with all settings, alarm definitions, user def events, rules, roles, etc.

This is the case:

  • subsite with x cameras being recorded, all config done for views, maps, alarms etc.
  • topsite where these x cameras are also recorded on recorders at topsite. Same maps, alarms, views etc. should be configured at topsite related to its own devices (not devices from subsites)

I ask this question since I think it is not possible to have a failover recorder at topsite that is watching a recorder at subsite. Or is it possible?

FYI, we also have a failover at susbsite so there should be triple redundancy in the end.

As I understand your question this is not related to software development with the MIP SDK, which is the focus of this forum, please ask again in the support community, you should get better help from the partners using the support community.

https://supportcommunity.milestonesys.com

I’m sorry but maybe the question isn’t clear. The larger part of this post is related to MIP SDK. I’m looking for a way to copy all config from sub to top site. I think this will only be possible using MIP SDK.

Forget the extra question about failover recorder.

Allow me to start what might be a bit off topic.

There are two ways to connect Milestone sites:

  1. Interconnected Products. When using this you have a copy of the devices from the interconnected site on the interconnector site.
    
  2. Milestone Federated Architecture. When using this you basically make sure that all sites are available to clients under common login.
    

This is in no way a full description of the possibilities. Something in your question made me think that Interconnect functionality might be what you wanted to achieve and in that case you now have a chance to review and rethink the design.

(It is a recommendation to add a camera to one recording server and not to multiple recording servers, depending on camera capability and performance it might not work optimally when serving multiple streams etc. When using Interconnect only one recording server requests the stream(s).)

Assuming we have multiple sites and wants to use Milestone Federated Architecture.

Using the Configuration API you can read the setup including the devices and their settings. Using the Configuration API you can add devices and manage their settings. With this in mind it is feasible to read from one site and recreate the setup, fully or partially, on another site.

Some starting points for Configuration API.

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

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_configurationapi.html&tree=tree_4.html

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

Thanks Bo for your answer!

What the goal is in this design is having the recording of 1 camera on 3 different locations, I know it seems crazy but it is like this…

So 1 camera is recording on a primary recorder on its subsite, recording on secondary recorder on its subsite AND on a recorder on the topsite.

With Interconnect you can schedule a copy of recording from sub to topsite, but then the recording is gone on subsite, so not good. Unless it is possible to keep recording on subsite AND on topsite?

At subsite I think it is technically possible to set up the secondary recorder as a hot failover recorder AND copy the recordings scheduled from primary to secondary. This can be done using whatever tool or SDK maybe?

When failover is active the end user can do playback on old recordings before failover and after. When failover is done, recordings from secondary are built-in copied from secondary to primary. There is only recording loss during failover process.

I suppose you are going to recommend not to do this since it is not supported but tests showed it is possible.

At topsite the config for all devices should be done again, using Config API this should be possible. What about maps and all these things? Can they also be copied or should they be recreated in any case?

Maps cannot be created or changed in the Configuration API.

You can put a GIS Point to each device/item so that means you can to a large extend support the Smart Maps.

(Make sure to distinguish Maps and Smart Maps.)

.. and all these things ..

I know that Maps and Views, which require setup in the Smart Client, are not supported by the Configuration API. A lot can be duplicated to another site by Configuration API methods but I think we will need to list and examine the features one by one, so please do not think this is the answer for all these things..