Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.

Previous page The GetObjectParentType method  The GetObjectName method Next page


The GetIPAddress method returns the IP address of the Intellect kernel according to the existing architecture of the distributed video surveillance system.

Syntax for method invocation:

function  GetIPAddress (dst : String, src : String) : String

Method arguments:

  1. dst is a required argument. It specifies the name of the remote computer on which the Intellect kernel is installed. The value of the dst argument must match one of the computer names registered when configuring the architecture of the distributed video surveillance system. Possible values: String type that meets the requirements for network computer names; the range is limited to the computer names registered in the system.
  2. src is a required argument. It specifies the name of the local computer (the computer from which you run the script). The value of the src argument must match the name of the local computer as it is registered in Intellect. Possible values: String type that meets the requirements for network computer names.

Note

The information about all connections of the local computer (kernel) to other remote computers (kernels) registered during the configuration of the distributed architecture is displayed in the Architecture tab of the System settings window.

Example. On a camera alarm, determine the name of the computer to which this camera is connected, and output in the debug window the IP address of the connection between this computer and the local computer on which the script is executed.

if (Event.SourceType == "CAM" && Event.Action == "MD_START")
 
{
    var camid = Event.SourceId;
    var compname = GetObjectParentId("CAM", camid, "COMPUTER");\\determining the name of the computer to which the alarm camera is connected
    var ip = GetIPAddress(compname,"WS1"); \\ determining the IP address of the connection to the computer on whicj the alarm camera is installed
    DebugLogString("IP address of the connection to the computer on which the alarm camera is installed  " + ip);
}

Note

Instead of "WS1" in the example, you must enter the name of the computer on which the script is run and Intellect kernel is installed.