Go to documentation repository
Page History
The GetIPAddress method returns the IP - address of the Intellect kernel according to current the existing architecture of the distributed video surveillance system architecture.
Method call syntaxSyntax for method invocation:
Code Block | ||
---|---|---|
| ||
function GetIPAddress (dst : String, src : String) : String |
Method arguments:
- dst - Required is a required argument. The It specifies the name of the remote computer where on which the Intellect kernel is installed. The The value of dst should correspond to the dst argument must match one of the computer names of the computers registered during setup registered when configuring the architecture of the distributed video surveillance system. It takes the following Possible values: Type – String, meeting String type that meets the requirements for network computer names; the range – is limited to the computer names existing registered in the system.
- src - Required is a required argument. The It specifies the name of the local computer where (the computer from which you run the script executes). The value of the src should argument must match the name of the local computer as it is registered in Intellect. It takes the following Possible values: Type – String; meeting String type that meets the requirements for network computer names.
Info | ||
---|---|---|
| ||
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. |
Usage examples
Problem. Upon Example. On a camera alarm, determine the name of the server computer to which this camera is connected to, and output in the debug window the IP - address of the connection between this server computer and the local computer where on which the script executes, to the debugger windowis executed.
Code Block | ||
---|---|---|
| ||
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("WS1"compname,"WS1"); \\if determining the scriptIP isaddress runof on the computerconnection whereto kernelthe ofcomputer on Intellectwhicj the softwarealarm hascamera beenis installed DebugLogString("IP- address of the alarmedconnection to the computer on which the alarm camera is installed computer " + ip); } |
Info | ||
---|---|---|
| ||
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. |