Child pages
  • Server Scripts

Versions Compared

Key

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

...

Location:

/var/www/cgi-bin/

Language:

Perl

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1525ecf5f75502f0-f7125b73-4d4b4f5d-a6c9bf1a-950ae31a7cacf96ea320af45"><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

...

Location:

/home/dmlserv/dml/bin/

Language:

sh calling Java

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="cef85f29b8c8c539-8920d06e-43ef4d10-97f8a17c-93a8e4ee2403a34fa63dc8b5"><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

Changes to make for test sites:

 

...

Location:

/home/dmlserv/dml/bin/

Language:

sh calling Java

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="969c65c3e3f6df00-549b4730-4778401f-b3ba80ab-17e388b4b4486b61d6923e6c"><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.

Changes to make for test sites:

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

...

Location:

/home/dmlserv/dml/bin/

Language:

sh calling Java

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b749f0e9695d187a-21d1d0d2-403846c8-9c1c89f9-2dc2a85eac340976213d09db"><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="9d79e2c4c720b193-617e0c9b-4f204edf-8c999206-09bc75e5ac063810164df143"><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="c87ae7d8b4172fd1-74f6318e-408441c8-8c2facca-6d824e8b2a6bdd9515a2b683"><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

Changes to make for test sites:

configure dml.server.script.library in conf/server/dmlscript.conf