Http interface – archive download, Ncast telepresenter reference manual – NCast Telepresenter M4 User Manual

Page 89

Advertising
background image

NCast Telepresenter Reference Manual

#!/bin/bash
#
# Stops a Telepresenter session using the telnet interface

if [ $# -ne 2 ]; then
echo "This script stops a Telepresenter session using the telnet interface."
echo "Synopsis: stop.sh address password"
exit
fi

ADDRESS=$1
PASSWORD=$2

( echo "IdTelnet,002,$PASSWORD"
sleep 1
echo "PE"
sleep 1
echo "QT"
sleep 1 ) | telnet $ADDRESS 7474 >& /dev/null

9.3. HTTP I

NTERFACE

– A

RCHIVE

D

OWNLOAD

Special HTTP commands are available to enable automatic or script downloading of archive files:

http://w.x.y.z/backup/list.cgi

Downloads a list of READY archive files

http://w.x.y.z/backup/download/file.mp4

Downloads an archive file

http://w.x.y.z/backup/download/file.xml

Downloads an archive xml file

http://w.x.y.z/backup/remove.cgi?file=file.mp4

Removes an archived file

where

file.mp4

The time-stamped archive filename obtained from the downloaded list (also .wmv or .ogg)

file.xml

The time-stamped xml file associated with an archive file.

Note that archive operations are username/password protected and this information must be supplied to
utilize these special URLs. The required username is “backup”. The password is entered on the
Configuration → Passwords web page (“HTTP API” entry). Removed files are immediately deleted, and not
stored in the trash can.

A comprehensive sample retrieval script follows:

#! /bin/tcsh

# Usage: m4files.tcsh host password delete
#
# host - the hostname or IP address of the M4 unit
# password - backup password for the unit
# delete - optional keyword to delete archived files after download

set m4ip = $1
set passwd = $2
set deleteoption = $3

set verbosity = --quiet
#set verbosity = --non-verbose
#set verbosity = --verbose

if ($m4ip == "") then

echo "m4files: M4 Host address or IP address missing"
echo "Usage: m4files.tcsh host password"
exit

endif

NCast Corporation

Revision 2.2

Page 89

Advertising
This manual is related to the following products: