Hello, I have a milestone system with milestone redundancy, (Management server failover), without a claster, I want to put data from a plugin in a milestone data table, is there a dedicated table? how can I do it?
Using the SQL Server directly is not supported. What you want to do, to save data for your integration is however supported, please explore the Property sample..
@Bo Ellegård Andersen (Milestone Systems)
The issue is that the plugin is for management, that is, mip plugin is developed for management client, then the user must enter a series of data, which must be saved and remembered, so that when they open it again it is there. The issue is that milestone makes a copy of the database, in case a server goes down, the backup is lifted, if I add a new table in the Milestone database, it will automatically reflect it in the backup database or there is Should I do it manually from the software? Will I add it to the backup machine? What is the most appropriate way to add a database in the milestone MIP?
Thank you, I’m looking forward for your answer
Whether you do as recommended using the database indirectly and save properties for your integration, or you directly manipulate the database, the need for backup will be the exact same, that is how I see it. If you think I have misunderstood the question or situation please elaborate.
There are no tools for doing SQL backup or similar maintenance in the MIP SDK (which is the focus of this forum). On general maintenance and backup this link might be useful: https://doc.milestonesys.com/latest/en-US/standard_features/sf_mc/sf_maintenance/mc_backingupandrestoring.htm
In fact if you have questions about backup and restore strategies or similar - please ask instead in the support community, you should get better help from the partners using the support community.
Hello, regarding what happened, I saved adding items as indicated in the mip examples template, the problem is that from an external application, I need to access those previously saved data, but I don’t know how I can get to them. The idea is to obtain the nodes and their content. I understand that using VideoOS.Platform;
using VideoOS.Platform.Admin; should be used to be able to obtain them.
Clarifying questions.
You want to read what was saved by the admin plugin in a standalone MIP SDK based application on a operational XProtect VMS?
How exactly is the data saved? Please show with a code snippet how the admin plugin save the data.
Maybe I can offer a guess without knowing further details. When I have used the ServerSideCarousel sample, I can read the saved configurations from a standalone app if I use the following code:
private void GetCaroussel()
{
// found in ServerSideCarrouselDefinition
Guid CarrouselPluginId = new Guid("FD2AB85B-B944-448f-BAA9-CC4DCE1172FA");
Guid CarrouselKind = new Guid("8A9F28E8-042E-480d-BE46-A690537ECEE6");
List<Item> items = Configuration.Instance.GetItemConfigurations(CarrouselPluginId, null, CarrouselKind);
foreach (var item in items)
{
label1.Text += $"Item name: {item.Name} - has properties:" + Environment.NewLine;
foreach (var prop in item.Properties)
{
label1.Text += $"{prop.Key} -Value- {prop.Value}" + Environment.NewLine;
}
}
}
