Child pages
  • Server Scripts

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

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.

...

Location:

/home/dmlserv/public_html/stats/

Language:

Perl <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b7d1427b-d783-4b19-a3ce-f597e1f48313"><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 dml.statistics.path should be linked into an apache viewable directory that is specified with dml.statistics.urlpath.
This script now displays both UI and Darwin statistics.

Configuration:

configure dml.statistics.path in dml/conf/server/dmlscript.conf
configure dml.accesspage.urlpath in dml/conf/server/dmlscipt.conf
configure dml.statistics.urlpath in dml/conf/server/dmlscipt.conf
configure dml.statistics.abouturl in dml/conf/server/dmlscipt.conf
configure dml.statistics.cssurlpath in dml/conf/server/dmlscipt.conf

...

Location:

/home/dmlserv/bin/

Language:

sh calling Java <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="235ef5ec-e73c-4e7f-834c-53e964e6ff8a"><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.
variationsIDs (notis-style) passed to this script must be for Containers

Configuration:

 

...

Location:

/home/dmlserv/bin/

Language:

sh calling Java <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1e0d361a-f05c-464b-8a3c-8584044cd732"><ac:plain-text-body><![CDATA[

Usage:

dumpDB.sh <library_name> <filename> [{-after <date>} | {-lastdays <num>} | {-contributors_and_works} | {-in_digitization} | {<list_of_entity_ids>}]
]]></ac:plain-text-body></ac:structured-macro>
<date> must be in Timestamp format, eg. 2002-08-29
The -lastdays option will only dump the last num days worth of edits.
The -in_digitization option will include records that have a status "In Digitization" and MediaObjects that do not have the status "Complete". Otherwise, these records and MediaObjects are left out by default.

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.
This command is used with loadDB.sh to copy new data from the cataloging
schema to the production schema.
This command accesses the database as a client, so
the specified server must be running for this command to work.

Configuration:

(question)

...

Location:

/home/dmlserv/bin/

Language:

sh calling Java <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b29e52a9-1fb8-4a74-9030-7d97551a4851"><ac:plain-text-body><![CDATA[

Usage:

initDB.sh [-user_only] service_name

]]></ac:plain-text-body></ac:structured-macro>

Examples:

initDB.sh IU_TEST2
initDB.sh -user_only RHS_A

When to run:

When the tables in a database need to be created.

Notes:

Command for creating the Variations tables in a database.
The specified server must be running for this command to work.
The "-user_only" option only initializes the Access Manager database; by default
both the Access Manager and Metadata databases are initialized.

Configuration:

configure dml.server.sqlRepository.userid in dml/conf/server/dmlscript.conf
configure dml.server.userProfileManager.userid in dml/conf/server/dmlscipt.conf

...

Location:

/home/dmlserv/bin/

Language:

sh calling Java <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a950c98f-1167-47ff-bcb7-495d23dc1ec7"><ac:plain-text-body><![CDATA[

Usage:

varGroup.sh delete [-f] <group_name>
]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f645723c-eacc-48a8-8b0f-078735855412"><ac:plain-text-body><![CDATA[ | dump [-f] [-g <group_name>] <file_name> | -dir <dir_name>
]]></ac:plain-text-body></ac:structured-macro>
| list
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="305d934b-212b-4104-8621-5670bd6c2483"><ac:plain-text-body><![CDATA[ | load <file_name1> [<file_name2> ...]]]></ac:plain-text-body></ac:structured-macro>

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

...