We have several hundred security cameras, many of which are outdoors. When setting up outdoor cameras, we use exclude regions to block out vegetation. However over time, trees grow and cause motion to be detected outside of the original exclude regions. The easiest way to track this is ballooning storage requirements for a particular camera. Individual camera storage data can be found within the Milestone GUI, but I’m looking for a method using the API or direct database query to get this data.
I currently use the MilestonePSTools Powershell module to pull inventory data about our devices. Anyone know if it’s possible to find this info via the Powershell API? I looked but couldn’t find it. If not, any ideas on how I can get this data from Milestone?
You can get the storage usage for each storage by using the Configuration API
Unfortunately, there is no functionality to give you the information for each camera, when multiple cameras use the same storage, even though the Management Client can give the information, so it is not possible to do it using MIP SDK code.
We will put it on the wish-list for future enhancement development work. A prioritization needs to be made by Milestone Product Management, so it is not possible to say when, or even if, this will be developed.
@Rie Kiuchi (Milestone Systems) I’m also interested in this feature.
Is there any hint as to how implement it anyway? If the Management Client is able to do it that means it’d not be that hard to implement it. I guess the Management Client asks the Recording Server directly, so if we had to do it we could do it using some powershell remote session by summing the folders sizes in MediaDatabase?
As I mentioned that the functionality is not supported by XProtect unfortunately, even though the Management Client can give the information, so it is not possible to do it using MIP SDK code.
I understand it’s not supported, what I am asking is how the Management Client does it (in order to implement it myself).
I can see several ways, like “this information is stored somewhere in the database” or “it asks the recording server which computes the size of all folders related to a camera then sums it”.
Philippe, I can answer this. I did a wireshark capture and found that the management server queries the recording server for this info - it’s not stored in the database. However it uses the secure authentication channel between the mgmt and recording server so, while I was able to capture the format of the API call below (as it was unencrypted), I was unable to use the API call.
Since the API call is already built into XProtect, it shouldn’t be difficult for Milestone to open that access in the MIP SDK…but that’s on them.