Server Scripts
The Location for each of these scripts is both where they should live, but also where the most recent copies can currently be found.
- Server Scripts#Statistics
- Server Scripts#Reference Movie Generation
- Server Scripts#V2X Generation
- Server Scripts#Access Pages
- Server Scripts#Database
- Server Scripts#Server
Statistics
Note: These scripts are dependent on the timestamp scheme currently being used (MMM dd yyyy HH:mm:ss.SSS). These scripts assume that administrators will want to break down usage into the groups In Music Library, On Campus, Off Campus, and Totals which are specified by IP addresses. These scripts only deal with UI and Darwin Streaming Server log processing and analyzing.
generateStats.pl
Location: |
/home/dmlserv/bin/ |
Language: |
Perl |
Usage: |
generateStats.pl Mmm dd yyyy filename (Analyze only specified date) |
When to run: |
Nightly or Hourly |
Notes: |
|
Configuration: |
configure dml.statistics.path in dml/conf/server/dmlscript.conf |
generateQTStats.pl
Location: |
/home/dmlserv/bin/ |
Language: |
Perl |
Usage: |
generateQTStats.pl filename (Analyze an entire file) |
When to run: |
Nightly or Hourly |
Notes: |
|
Configuration: |
configure dml.statistics.path in dml/conf/server/dmlscript.conf |
viewStats.cgi
Location: |
/home/dmlserv/public_html/stats/ |
Language: |
Perl |
Usage: |
viewStats.cgi?[current][year=yyyy][month=Mmm][day=dd][location=In+Music+Library|On+Campus|Off+Campus|Totals][view=yearly|monthly|daily] |
When to run: |
Whenever an administrator wants to view statistics |
Notes: |
For this script to work dml.statistics.path should be linked into an apache viewable directory that is specified with dml.statistics.urlpath. |
Configuration: |
configure dml.statistics.path in dml/conf/server/dmlscript.conf |
Reference Movie Generation
generate-ref-movie.mov
Location: |
/home/dmlserv/public_html/cgi-bin/ |
Language: |
Perl |
Usage: |
generate-ref-movie.mov?path=leasedir/mediafile |
When to run: |
Whenever an user wants to access a media file |
Notes: |
This script is adapted from the generate-ref-movie shell script that called Java code. |
Configuration: |
configure dml.leases.rtspurl in dml/conf/server/dmlscript.conf |
V2X Generation
variationsURL.v2x
Location: |
/home/dmlserv/public_html/cgi-bin/ |
Language: |
Perl |
Usage: |
variationsURL.v2x?type=timeline&ref=urlthatholdsv2xfile |
When to run: |
When a link is clicked on from an access page or when directed to from another source |
Notes: |
Most references to Variations1 has been deleted and support dropped for simplicity. |
Configuration: |
configure dml.v2x.supporturl in dml/conf/server/dmlscript.conf |
Access Pages
access.pl
Location: |
/home/dmlserv/public_html/cgi-bin/ |
Language: |
Perl |
Usage: |
access.pl?id=notisSyleID |
When to run: |
When a link is clicked on from a catalog page or from another source |
Notes: |
Depends on access.xsl and score-access.xsl which have entries below as well as access.css and v2-logo.jpg. |
Configuration: |
configure dml.access.recording.dir in dml/conf/server/dmlscript.conf |
access.xsl
Location: |
/home/dmlserv/data/accessPages/ |
Language: |
XSLT |
Usage: |
|
When to run: |
When called by access.pl for rendering an audio access page |
Notes: |
This script depends on the name Variations2 and will need to be changed whenever a name change occurs. |
Configuration: |
configure dml.xslt.access.v2xurl in dml/conf/server/dmlscript.conf |
score-access.xsl
Location: |
/home/dmlserv/data/accessPages/ |
Language: |
XSLT |
Usage: |
|
When to run: |
When called by access.pl for rendering an audio access page |
Notes: |
This script depends on the name Variations2 and will need to be changed whenever a name change occurs. |
Configurations: |
configure dml.xslt.access.cssurl in dml/conf/server/dmlscript.conf |
generateAccessPage.sh
Location: |
/home/dmlserv/bin/ |
Language: |
sh calling Java |
Usage: |
generateAccessPage.sh service_name [variationsID | variationsID_file] out_directory |
When to run: |
Whenever a new Container is created or updated (not currently setup) |
Notes: |
Calls v2run on edu.indiana.dml.util.AccessPageGenerator. |
Configuration: |
|
Database
dumpDB.sh
Location: |
/home/dmlserv/bin/ |
Language: |
sh calling Java |
Usage: |
dumpDB.sh <library_name> <filename> [{-after <date>} | {-lastdays <num>} | {-contributors_and_works} | {-in_digitization} | {<list_of_entity_ids>}] |
Examples: |
dumpDB.sh RHS_CAT2 rhs_data -lastdays 10 |
When to run: |
When data needs to be dumped from a database for backup or copying. |
Notes: |
Command for dumping the data from a metadata database into a file in XML. |
Configuration: |
|
initDB.sh
Location: |
/home/dmlserv/bin/ |
Language: |
sh calling Java |
Usage: |
initDB.sh [-user_only] service_name |
Examples: |
initDB.sh IU_TEST2 |
When to run: |
When the tables in a database need to be created. |
Notes: |
Command for creating the Variations tables in a database. |
Configuration: |
configure dml.server.sqlRepository.userid in dml/conf/server/dmlscript.conf |
varGroup.sh
Location: |
/home/dmlserv/bin/ |
Language: |
sh calling Java |
Usage: |
varGroup.sh delete [-f] <group_name> |
When to run: |
As needed. |
Notes: |
Command line utility for the Access Manager Database that is used for authorization. For more information see varGroup.sh |
Configuration: |
configure dml.server.script.library in dml/conf/server/dmlscript.conf |
Server
serverTools.sh
Location: |
/home/dmlserv/bin/ |
Language: |
sh calling Java |
Usage: |
serverTools.sh <service_name> {showUsers | showStats | garbageCollect | uiLogMessage <message> | delete <idNum>} |
When to run: |
The following is run at 12:00am (midnight) and 12:01am daily as a cron job: |
Notes: |
|
Configuration: |
|