Go to documentation repository
Page History
...
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 |
a Client is connected to the Server |
DISCONNECTED | Disconnecting |
Event is generated when |
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 |
objects tree is more than specified in the key |
KEY_UPDATED | Key updated |
PROTOCOL_RCVD | Protocol received |
REBUILD_IN_START | Start of archive |
re-indexing | |
REBUILD_IN_STOP | End of archive |
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 ( |
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 |
disk | |
SHUTDOWN | Shutdown |
DISC_MOUNT | Disc connected (mounted |
) | |
DISC_UNMOUNT | Disc disconnected (unmounted |
) |
ARCHIVE_DEPTH | Archive depth |
Event is generated |
at midnight and contains information about archive depth on all disks in hours ( |
the depth<> parameter). To |
call the event manually, use the GET_DEPTH reaction. Archive depth in |
the Days:Hours format is specified in the Additional information field of the Event |
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_OFF | Forced offload | The event is generated before the forced unload of Intellect, for example, if the Guardant security key is removed. |
Operator format to describe actions with the computer object is:
...
Unload is performed after the action caused it (for example, removing the Guardant key) after the time specified by the UnloadDelay registry key—see Registry keys reference guide | ||
DEACTIVATE_ALL_DISP | Hide all displays | The 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_EXPIRATION | License 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). The event is generated at Intellect start-up and when the day changes |
DATABASE_ERROR | Database connection lost | The event is generated when the connection to SQL Server is lost the first time it is accessed after the disconnection |
SCRIPT_ERROR | Script execution failed | By 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" |
—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" |
—backups database |
- | - | |
"CONNECT_ONE" |
—connects to a computer. Connects the corresponding computer. It is recommended to avoid using of this reaction manually |
- | - | |
"CONNECT_OTHER" |
—connects to cores. Connects computer to other cores from configuration. It is recommended to avoid using of this reaction manually |
- | - | |
"DISCONNECT_ONE" |
—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" |
—runs SyncProtocol.exe utility of protocol synchronization. Protocol merging |
happens if synchronization is configured |
- | - | |
"SYNC_TIME" |
—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" |
—runs process |
command_line<> | Command line. Commands of Windows command line written without hyphens through |, & |
or && separating characters |
"SEND_MY_CONFIG" |
—sends configuration. |
Sends configuration to other computers. The same as “SPREAD_CONFIG” |
- | - | |
"MOVE_CONFIG" |
—moves configuration. Moves configuration created in the objects tree on the basis of the |
computer–supplier to the |
computer–recipient | from<> | Supplier |
to<> | Recipient | |
"SPREAD_CONFIG" |
—spreads configuration. The same as “SEND_MY_CONFIG” |
- | - | |
"GET_DEPTH" |
—gets archive depth. The ARCHIVE_DEPTH event (see table |
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<> |
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"—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:
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"); }
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>
...