Using Configuration API and the strongly typed classes:
private string getMac(FQID cameraFQID)
{
VideoOS.Platform.ConfigurationItems.Camera camera = new VideoOS.Platform.ConfigurationItems.Camera(cameraFQID);
VideoOS.Platform.ConfigurationItems.Hardware hardware = new VideoOS.Platform.ConfigurationItems.Hardware(cameraFQID.ServerId, camera.ParentItemPath);
string mac = hardware.HardwareDriverSettingsFolder.HardwareDriverSettings.FirstOrDefault().HardwareDriverSettingsChildItems.FirstOrDefault().Properties.GetValue("MacAddress");
return mac;
}
Note that the Configuration API is supported on c-code servers: XProtect Corporate, Expert and Plus products. Which happens to fit your question as these XProtect products have a Management Server.
hi Bo Andersen,
Thanks for your reply. can you tell me which dll file i need to reference to use your getMac function? just now i can’t use ‘VideoOS.Platform.ConfigurationItems.Camera’.
Regards
youn nan
VideoOS.Platform.dll
Note that the strongly typed classes was introduced with MIP SDK 2017 R3, if you have an older MIP SDK it will not work.
Thanks Bo Andersen. i know what you mean. but any idea if i use older version, how can i do? now my current version is MIP SDK 2017 R2.
Upgrading the MIP SDK is so much better than any other advise I can give you.
Sorry, I’ve given inaccurate information. I’m targetting on Smart Client 2014. How can I get mac address?
Hi Team, I needed a simple, easy method to do this, something an end-user or junior technician can achieve without installing something on the NVR just using the Milestone Management application.
So, I extracted the data required for the exportable config .XML file for the older versions of Milestone and the newer versions from the Configuration PDF.
I did this in Excel with VBA. I’m not an expert with VBA, so if you can contribute, please share it.
The VBA workbook loops through the data and populates it in a usable table.
You can find this at the GitHub link below.
https://github.com/CarlyCarlyleAdams/Export-Milestone-Info