NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Manager Web Application
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
5-23
Shell Scripts
To run this script, you enter the script name from the OSS prompt. The script guides
you through the migration. An example of running this script follows:
/usr/tandem/webserver/servlet_jsp/conf: nsjsp_migrateSessionStore
NonStop(tm) Servlets for JavaServer Pages(tm)
Persistent Sessions Migration Script
T1222 v6.0
_________________________________________________________________
Migrates the persistent session data stored in a NonStop(tm) SQL
database for NonStop(tm) Servlets for JavaServer Pages(tm).
Enter the NSJSP home [/usr/tandem/webserver/servlet_jsp]:
/usr/tandem/webserver/servlet_jsp/
Migrating data from SQL/MP to SQL/MX(0) or SQL/MP to SQL/MP(1) [default:0] :
0
Please enter the database table name [$SYSTEM.T1222CAT.SessData] :
$data01.jsp24.sesspers
Please enter the database table name [T1222CAT.T1222SCH.SessData] :
nsjspcat.nsjspsch.sessdata
Starting the Migration
Migrating : 0 records from $data01.jsp24.sesspers to
nsjspcat.nsjspsch.sessdata
Completed the Migration
nsjsp_digestPassword
The nsjsp_digestPassword script is an OSS shell script that allows you to
generate an encrypted password. The syntax is:
nsjsp_digestPassword {digest algorithm} {clear-texted password}
An example:
/usr/tandem/webserver/servlet_jsp/conf: nsjsp_digestPassword MD5 myPassword
myPassword:deb1536f480475f7d593219aa1afd74c
/usr/tandem/webserver/servlet_jsp/conf:
The digest algorithm must be same as the value of the digest attribute of the
<Realm> element in the server.xml file. For example,
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" digest="MD5"/>
By default, the digest attribute value in the server.xml file is MD5. The value for
the digest attribute in the server.xml file must be one of the digest algorithms
supported by the java.security.MessageDigest class. The digest algorithms are
MD5 and SHA.










