Child pages
  • Server Scripts

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Location:

/home/dmlserv/dml/bin/

Language:

Perl

Usage:

generateStats.pl Mmm dd yyyy filename (Analyze only specified date)
generateStats.pl filename (Analyze an entire file)
generateStats.pl (Analyze yesterday)

When to run:

Nightly

Notes:

 

Changes to make for test sites:

Line 75: sortedlogfiles - filesystem path to Darwin log files
Line 82: logfile - filesystem path to Darwin log file
Line 88: filepath - filesystem path to output directory where statistics live
Line 565: music_ip_file - full filesystem path to file containing IPs of Music Library computers
Line 569: oncampus_ip_file - full filesystem path to file containing IPs of On Campus computers

...

Location:

/home/dmlserv/dml/bin/

Language:

Perl

Usage:

generateQTStats.pl filename (Analyze an entire file)
generateQTStats.pl (Analyze all logfiles /var/streaming/logs/StreamingServer.*.log or /var/streaming/logs/StreamingServer.log)

When to run:

Nightly

Notes:

 

Changes to make for test sites:

Line 33: filepath - filesystem path to output directory where statistics live
Line 34: logfilepath - filesystem path to where logfiles live
Line 499: music_ip_file - full filesystem path to file containing IPs of Music Library computers
Line 502: oncampus_ip_file - full filesystem path to file containing IPs of On Campus computers
Line 965: cmd - contains full filesystem path to ID translation script

...

Location:

/var/www/cgi-bin/

Language:

Perl

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f22581c3a28132e4-8fcb0d6a-4c0746c9-bf198e89-ced3320b52971a3ddbf05026"><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.
This script now displays both UI and Darwin statistics.

Changes to make for test sites:

Line 28: filepath - filesystem path to statistics files generated by generateStats.pl and generateQTStats.pl
Line 29: v2URL - url of access page rendering script
Line 30: urlPath - url where comma delimited files and generated images can be found
Line 31: homepage - url of statistics about page
Line 282: CSS link is specified as urlPath/dml1.css

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.
No checks are done to ensure that the mediafile is located at the path specified.
The script currently generates a reference movie only containing the 192k file. This should be changed for varying bitrates supported by reference movies.
The script does not check that QTAtom children added to a QTAtom are of the allowable types.
Line 127: Uses an assumption that is currently true and is potentially always true (but unverified)

Changes to make for test sites:

Line 9: baseurl - RTSP url that specifies the path to the lease directory under Darwin