Hi, I am developing an interface to integrate XProtect Corporate with a security IoT app and I would like to know which is the request to get access to the rule event log. I am using python but I will be happy to receive a sample code using any modern computer language (not just .NET calls). I understand thar I need to do a Login request to the ServerCommand first and after that make a request to the AlarmCommandToken Service, is this correct? I was unable to find docs for this last one. Thank you!
In Corporate we have rules, that are executed by Management Server / Recording Servers, and then we have Alarm Definition that defines what events should trigger an Alarm.
The Event Server handles the Alarm Definition and generates new Alarms based on events.
Now - I am not sure what you want? To get all events you can retrieve them from Event Server or (most of them) directly from Recording Server.
For Corporate rules, the rule can be defined to store a log entry in the SQL database, and you can retrieve this via MIP SDK.
For Event Server events, you can ask for either Events or Alarms.
Note: When accessing Event Server on a Corporate system, use AlarmCommand for AD users and AlarmCommandToken for basic users.
Good morning Anders and thanks for this explanation. Yes I am interested in the log entry generated by the rules, how can I access the SQL database? This is exactly what I need but I read somewhere that extracting XProtect Corporate SQL is a difficult task. Are you saying that if I have the SQL username/password I can just browse the SQL database? If true this is a great info! How I figure out (or set) this username/password? As you are saying I believe that I can connect directly to the SQL using python or something else.
You should not access the SQL database directly. You can use the MIPSDK’s “LogClient” to perform the reading – see attached sample ![]()
Remember to modify the Rule’s to “Make new ”
Thank you very much! I will give it a try. Have a nice day!