User Guide

Appendix H-The Programming Script
AXIS 2400/2401 Administration Manual
66
Commands
A comprehensive catalog of available programming commands, complete with their syntax and
valid options are described below:
alert
The alert command sends a message to a remote host.
Syntax
alert [-host HOST] [-port PORTNUMBER] [-message STRING];
Options
-host
Specifies the host name or IP address of the remote host.
-port
Specifies the TCP port number
in the range [0..65534].
-message
Specifies the message that will be sent to the remote host. The message must be surrounded
by quotation marks. Hexadecimal coded messages must be preceded by
\0x
, e.g.
"\0x04"
for
the non-printed character EOT. To include a quotation mark, it must be preceded by a
backslash, e.g.
\"
.
Example
buffer_init
The buffer_init command initiates or clears the image buffers. This is needed in order to store
images using the buffer_start and buffer_stop commands.
Syntax
buffer_init [[CAMERANUMBER],[IMAGE],[SIZE][:[CAMERANUMBER],[IMAGE],[SIZE]]];
Options
CAMERANUMBER
Specifies the camera source, i.e. 1- 4 (AXIS 2401must be set to 1)
IMAGE
Specifies the image type 1- 3, where: 1=halfsize.jpg, 2=fullsize.jpg and 3=hugesize.jpg
# This command will send the message "Alarm
# "0013" from AXIS 2400" to the remote host when
# input port 1 goes high.
* * * * * /I1:
alert -host 172.21.1.202 -port 2703 -message "Alarm \"0013\" from AXIS 2400";
%