The GetIPAddress method returns the IP-address of the Intellect Axxon PSIM kernel according to current video surveillance system architecture.
...
- dst - Required argument. The name of the remote computer where the Intellect Axxon PSIM kernel is installed. The value of dst should correspond to one of the names of the computers registered during setup of the video surveillance system. It takes the following values: Type – String, meeting the requirements for network computer names; range – computer names existing in the system.
- src - Required argument. The name of the local computer where the script executes. The value of src should match the name of the local computer as it is registered in IntellectAxxon PSIM. It takes the following values: Type – String; meeting the requirements for network computer names.
...
Code Block |
---|
|
if (Event.SourceType == "CAM" && Event.Action == "MD_START")
{
var camid = Event.SourceId;
var compname = GetObjectParentId("CAM", camid, "COMPUTER");
var ip = GetIPAddress("WS1","WS1"); \\if the script is run on the computer where kernel of Axxon IntellectPSIM software has been installed
DebugLogString("IP-address of the alarmed camera computer" + ip);
} |