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.
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/dml/bin/ |
Language: |
Perl |
Usage: |
generateStats.pl Mmm dd yyyy filename (Analyze only specified date) |
When to run: |
Nightly |
Notes: |
|
Changes to make for test sites: |
Line 75: sortedlogfiles - filesystem path to Darwin log files |
generateQTStats.pl
Location: |
/home/dmlserv/dml/bin/ |
Language: |
Perl |
Usage: |
generateQTStats.pl filename (Analyze an entire file) |
When to run: |
Nightly or Hourly |
Notes: |
|
Changes to make for test sites: |
Line 33: filepath - filesystem path to output directory where statistics live |
viewStats.cgi
Location: |
/var/www/cgi-bin/ |
||
Language: |
Perl |
||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="38e8721f-a5cf-4ce5-aa79-0b608c345372"><ac:plain-text-body><![CDATA[ |
Usage: |
viewStats.cgi?[current][year=yyyy][month=Mmm][day=dd][location=In+Music+Library|On+Campus|Off+Campus|Totals][view=yearly|monthly|daily] |
]]></ac:plain-text-body></ac:structured-macro> |
When to run: |
Whenever an administrator wants to view statistics |
||
Notes: |
For this script to work the filepath directory should be linked into an apache viewable directory that is specified with urlpath. |
||
Changes to make for test sites: |
Line 28: filepath - filesystem path to statistics files generated by generateStats.pl and generateQTStats.pl |
Reference Movie Generation
generate-ref-movie.mov
Location: |
/var/www/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 and called Java code. |
Changes to make for test sites: |
Line 9: baseurl - RTSP url that specifies the path to the lease directory under Darwin |
V2X Generation
variationsURL.v2x
Location: |
/var/www/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. |
Changes to make for test sites: |
Line 104-121: Usage information is specific to Variations 2 and to IU. |
Access Pages
access.pl
Location: |
/var/www/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. |
Changes to make for test sites: |
Line 27: audio_access_dir - filesystem directory where audio access pages are stored |
access.xsl
Location: |
/home/content/access/ |
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. |
Changes to make for test sites: |
Line 114: url of variationsURL.v2x script |
score-access.xsl
Location: |
/home/content/access/ |
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. |
Changes to make for test sites: |
Line 30: url of variationsURL.v2x script |
generateAccessPage.sh
Location: |
/home/dmlserv/dml/bin/ |
||
Language: |
sh calling Java |
||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="dcc1cc3d-66ce-43e1-bec5-b47d8375e374"><ac:plain-text-body><![CDATA[ |
Usage: |
generateAccessPage.sh service_name [variationsID | variationsID_file] out_directory |
]]></ac:plain-text-body></ac:structured-macro> |
When to run: |
Whenever a new Container is created or updated (not currently setup) |
||
Notes: |
Calls v2run on edu.indiana.dml.util.AccessPageGenerator. |
||
Changes to make for test sites: |
|