I want to get List of all failover servers and its status.
How to get details about failover servers using mipsdk.
Pls help.
I want to get List of all failover servers and its status.
How to get details about failover servers using mipsdk.
Pls help.
A failover server will have to essential services: the recording server and the failover service.
You can read to configuration using the Configuration API or using Rest API. For seeing the structure of the configuration I recommend that you explore the Config API Client sample.
And a small snippet of code
using VideoOS.Platform;
using VideoOS.Platform.ConfigurationItems;
private void GetFailovers()
{
var Server = new ManagementServer(Configuration.Instance.ServerFQID);
foreach (var fog in Server.FailoverGroupFolder.FailoverGroups)
{
foreach (var fo in fog.FailoverRecorderFolder.FailoverRecorders)
{
label1.Text += fo.Name + Environment.NewLine;
}
}
}
The MIP SDK has no way to ask the failover service for status.