Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The SLAVE object sends events presented in the table.   Procedure is started when the corresponding event appears.

Format of events procedure for the Computer object:

Code Block
OnEvent("SLAVE","_id_","_event_")

occurs.

Events

Description

Comment

CONNECTED

Connecting

.

Event is generated when

some

a Client is connected to the Server

.

DISCONNECTED

Disconnecting

.

Event is generated when

some

a Client is disconnected from the Server

.

KEY_IGNORED_HW

Key ignored (mismatch of card codes)

.

Event is generated if codes of cards (or HID) in the key mismatch to current codes of computer

.

KEY_IGNORED_SW

Key ignored (limitation exceeded)

.

Event is generated if there software limitations. For example, if key is accepted but number of created objects in the

object

objects tree is more than specified in the key

.

KEY_UPDATED

Key updated


PROTOCOL_RCVD

Protocol received

 


REBUILD_IN_START

Start of archive

reindexing.

re-indexing


 

REBUILD_IN_STOP

End of archive

reindexing.

re-indexing


REGISTER_ATTEMPT

Attempt of unauthorized access


REGISTER_ERROR

Limit of access attempts is exceeded

.

Event is generated when user failed to enter the system a lot of times. Some timeout is started after the event when user can’t try to enter the system. Number of attempts and timeout can be changed using registry

.

REGISTER_USER

User registration

.

This event is generated when user tries to enter the system (

while

when entering login and password)

.

DISC_EXIST

Disk for archive record exists


NO_DISC

There is no disk for archive record

.

 


KEY_IGNORED_FR

Key ignored

.

Event is generated in case of key file is not recorded on the

disc.

disk

SHUTDOWN

Shutdown

.

 


DISC_MOUNT

Disc connected (mounted

)


DISC_UNMOUNT

Disc disconnected (unmounted

)


ARCHIVE_DEPTH

Archive depth

.

Event is generated

in the

at midnight and contains information about archive depth on all disks in hours (

e.g.

the depth<> parameter). To

raise

call the event manually, use the GET_DEPTH reaction.

Archive depth in

format

the Days:Hours format is specified in the Additional information field of the Event

viewer while event displaying

Viewer when displaying an event. Also this information contains in parameter of the param0<> event.

Archive depth is counted as discrepancy between date of creation the oldest archive file and date of creation the newest archive file (on disk or by camera)

.

FORCED_OFFForced offloadThe event is generated before the forced unload of Intellect, for example, if the Guardant security key is removed. Unload is performed after the action caused it (for example, removing the Guardant key) after the time specified by the UnloadDelay registry
key –
key—see Registry keys reference guide
DEACTIVATE_ALL_DISPHide all displaysThe event is generated when Hide all command is executed on a computer set in slave<> parameter. If except<> parameter is present, all displays except the one specified in this parameter are hidden
LIC_EXPIRATIONLicense expires in

Not generated by default. Set NotifyExpireLic = 1 to enable (see Registry keys reference guide).

The days<> parameter shows the number of days left till license expiration (can be non-integer).

Operator format to describe actions with the computer object is:

...

The event is generated at Intellect start-up and when the day changes

DATABASE_ERRORDatabase connection lostThe event is generated when the connection to SQL Server is lost the first time it is accessed after the disconnection
SCRIPT_ERRORScript execution failedBy default, the event is not generated, since it is not added to the intellect.ddi external settings file. In order for the SCRIPT_ERROR event to be generated and added to the PROTOCOL table, it must be added to the intellect.ddi table (see Editing the external setting file (intellect.ddi) using the ddi.exe utility)

List of commands and parameters for the the SLAVE object is presented in the following table:

Command

command description

Parameters

Description

"SETUP"

set up

—sets parameters for a computer

.

display_id<>

Display ID

.

drives<>

Disks for record of video archive

.

drives_a<>

Disks for record of audio information

.

flags<>

Flags

.

arch_days<>

Size of event archive

.

connection<>

Connection

.

disable_protocol<>

Disable protocol

.

ip_address<>

IP

-

address of a device

.

is_backup<>

Backup

.

is_load<>

Loaded

.

local_protocol<>

Local protocol

.

modem<>

Modem connection

.

name<>

Object name

.

password<>

Password

.

sync_time<>

Time synchronization

.

username<>

User name

.

"BACKUP"

– backup

—backups database

.

-

-

"CONNECT_ONE"

– connect

—connects to a computer. Connects the corresponding computer. It is recommended to avoid using of this reaction manually

.

-

-

"CONNECT_OTHER"

– connect

—connects to cores. Connects computer to other cores from configuration. It is recommended to avoid using of this reaction manually

.

-

-

"DISCONNECT_ONE"

– disconnect

—disconnects from computer. Disconnects the corresponding computer. Core can be connected automatically in case of disconnection. It is recommended to avoid using of this reaction manually

.

-

-

"SYNC_PROTOCOL"

– run

—runs SyncProtocol.exe utility of protocol synchronization. Protocol merging

is happened

happens if synchronization is configured

.

-

-

"SYNC_TIME"

– synchronize

—synchronizes time. To perform this reaction it is required to create SyncTime parameter with value 1 on the system to which reaction was addressed in the HKEY_LOCAL_MACHINE\SOFTWARE\ITV\INTELLECT\  (HKEY_LOCAL_MACHINE \Software\Wow6432Node\ITV\INTELLECT registry section for 64-bits system

.

-

-

"CREATE_PROCESS"

– run

—runs process

.

command_line<>

Command line. Commands of Windows command line written without hyphens through |, &

or   

or && separating characters

"SEND_MY_CONFIG"

– send

—sends configuration.

Send

Sends configuration to other computers. The same as “SPREAD_CONFIG”

.

-

-

"MOVE_CONFIG"

– move

—moves configuration. Moves configuration created in the objects tree on the basis of the

computer - supplier

computer–supplier to the

computer – recipient.

computer–recipient

from<>

Supplier

to<>

Recipient

"SPREAD_CONFIG"

– spread

—spreads configuration. The same as “SEND_MY_CONFIG”

.

-

-

"GET_DEPTH"

– get

—gets archive depth. The ARCHIVE_DEPTH event (see table

below

above) is formed in response to reaction in system. Absence of one or both parameters concedes request of depth by records for all values of parameter

.

 


cam<>

Camera ID for which archive depth is required

.

drive<>

Disc

Disk or network path on which archive depth is required.

Name of disk is specified in the following format: "<letter of disk>:\\", for example drive<D:\\>

Note. The "\" symbol is an escape character.

Network path is specified in the UNC format

.

"ACTIVATE_DISPLAY"

 –change

changes the display. The command allows showing the Display with the given identifier on the monitor (monitors) of the computer

.

display_id<>The identifier of the corresponding Display object. If an empty value is passed to the parameter, then all displays are hidden when running this command
.

Properties of the SLAVE object are shown in the table.:

Properties of the SLAVE object

Description

ID<>

Object ID

.

PARENT_ID<>

Parent object ID

.

USER_ID<>

User ID

.

 Examples of using events and reactions of the SLAVE object:

  1. Stop record from camera №2 if there is no disk for archive record.

    Code Block
    OnEvent("SLAVE","1"," NO_DISC")
    {
        DoReact("CAM","2"," REC_STOP");
    }
  2. Get the archive depth by Camera 1 using the macro 1.

    Code Block
    OnEvent ("MACRO","1","RUN"){
       DoReact ("SLAVE","WS3","GET_DEPTH","cam<1>");
    }

As the result the following string will be displayed in the debug window:

Event : SLAVE|WS3|ARCHIVE_DEPTH|cam<1>,core_global<1>,date<11-07-13>,depth<42>,destination_id<1>,destination_source<PROGRAM>,fraction<970>,guid_pk<{003DFC83-0CEA-E211-A437-0017C401D5C2}>,owner<WS3>,param0<01:18>,slave_id<WS3>,time<13:30:33>

...