Manual
VIVOTEK
User's Manual - 225
URL Command Document for All Series391
89
Command: update
PARAMETER
VA L U E
DESCRIPTION
label
<integer primary key>
Required.
Identify the designated record.
Ex. label=1
isLocked
<boolean>
Required.
Indicate if the file is locked or not.
Ex. Update records whose key numbers are 1 and 5 to be locked status.
http://<servername>/cgi-bin/admin/lsctrl.cgi?cmd=update&isLocked=1&label=1&label=5
Ex. Update records whose key numbers are 2 and 3 to be unlocked status.
http://<servername>/cgi-bin/admin/lsctrl.cgi?cmd=update&isLocked=0&label=2&label=3
8.15.1 Return Message
The returned results are always in XML format, except for storage status related elements that can be
returned in javascript format. (i.e. status, totalSize, freeSize, and usedSize.)
The elements are listed as follows.
Group: stormgr
Element name
Type
Description
counts
<Positive Integer>
Total number of matched records.
limit
<Positive Integer>
Limit the maximum number of returned search records.
Could be empty if not specified.
offset
<Positive Integer>
Specifies how many rows to skip at the beginning of the
matched records.
Could be empty if not specified.
statusCode
<Integer>
The reply status (see table below)
Value of return-code
Description
200
OK
400
Unrecognized Message Type/Content
500
Server executes command error.
501
Parse Input Message Failed.
502
Error Occurs When Searching
Database.
503
Storage is Not Ready.
statusString
string
Return string describing the reason that status code is not
OK.
URL Command Document for All Series391
90
Subgroup of stormgr: i<0~(n-1)>: n is the total number of displayed records.
Element name Type Description
label <Integer Primary Key> A unique integer.
triggerType <Text> Indicate the event trigger type.
mediaType <Text> Indicate the file media type.
destPath <Text> Indicate the file location in camera.
resolution <Text> Indicate the media file resolution.
isLocked <Boolean> Indicate if the file is locked or not.
triggerTime <Text> Indicate the event trigger time.
Format is “YYYY-MM-DD HH:MM:SS”
backup <Boolean> Indicate if the file is generated when network loss.
Subgroup of stormgr_disk: i<0~(n-1)>: n is the total number of storage devices.
Element name Type Description
name string Description of specified storage device.
status ready, detached, error,
and readonly
The storage device status.
ready: storage is ready for access.
detached: storage is not mounted.
error: failed to open storage device.
readonly: storage is write protected.
totalSize <Positive Integer> The overall storage size in kilobytes.
freeSize <Positive Integer> The available storage size in kilobytes.
usedSize <Positive Integer> The used storage size in kilobytes.
path string Location of database of storage sink
Ex. Returned results of search command
<?xml version="1.0" encoding="ISO-8859-1" ?>
<stormgr version="0.0.0.1">
<counts>5</counts>
<limit>2</limit>
<offset>0</offset >
<i0>
<label>1</label>
<triggerType>motion</triggerType>
<mediaType>videoclip</mediaType>
<destPath>/mnt/auto/NCMF/abc/abc.jpg</destPath>
<resolution>800x600</resolution>
<isLocked>0</isLocked>