setup_new_env env-name db-type db-server db-name
setup_new_env -tl env-name db-type db-server db-name build-descriptor
Name | Description | Your Value | Notes |
options | commandline switches | production: (none) test: -tl visitor: -vl | |
env-name | environment name | Must be unique for the specific LeasePak instance | |
db-type | database type | ora for Oracle or syb for Sybase | |
db-server | database server name | Must be one of the database server names defined for the db-type DBMS when LeasePak was installed | |
db-name | LLDB name | LLDB names must be unique for the db-type DBMS on this DBMS host and comply with the selected type of naming convention | |
build-descriptor | LeasePak build ID or alias | Must be live or the build ID (in the form bldn.nn.nnnn, for example bld6.10.0179) of a compatible installed LeasePak build. For test and visitor environments only |
[nsadm62a:~] setup_new_env prod syb SEVILLE lpr_prod
[nsadm62a:~] setup_new_env prod syb SEVILLE lpr_prod
2009-08-13 17:50:47 setup_new_env: PRODUCTION prod syb SEVILLE lpr_prod live; Start
2009-08-13 17:50:48 setup_new_env: Creating environment directory structure...
2009-08-13 17:50:48 setup_new_env: Creating syb_use...
2009-08-13 17:50:48 setup_new_env: Creating logdb.*...
2009-08-13 17:50:51 setup_new_env: Creating envdb.msirc...
2009-08-13 17:50:52 setup_new_env: Creating msidba placeholder ...
2009-08-13 17:50:52 setup_new_env: Creating .lp*...
2009-08-13 17:50:52 setup_new_env: Setting environment security...
You will need the following for Leasepak PC Client setup:
IP Address or name: seville
Environment name: prod
Server Port: 6201
2009-08-13 17:50:53 setup_new_env: End
db_create env-name
Name | Description | Your Value | Notes |
env-name | environment name | Must have been previously created using setup_new_env | |
$SRVADM's password | database server administrator | This user is the one who actually runs the commands under the database server to provision and create the LLDB | |
DBO-name | The user to be DBO | Required if under Sybase and $SYB_AUTODBO is N; is created automatically otherwise | |
DBO's password | LLDB owner | The DBO is the user who owns the objects within the LLDB and who grants regular users access to the LLDB | |
Data size | # of megabytes of data space needed | Under both Oracle and Sybase; if under Oracle and a dedicated storage segment is to be used, should be "UNLIMITED" | |
Storage segment | if known | Oracle: either a common storage segment or a dedicated storage segment (must be dedicated if size > 300MB); Sybase: may not be known ahead of time | |
Log size | # megabytes of log space needed | Sybase only |
[nsdba62a:~] db_create prod
[nsdba62a:~] db_create prod 2009-08-13 17:52:56 db_create: Create (prod)lpr_prod 2009-08-13 17:52:56 db_create: Running commands as srvadm Server Administrator 'srvadm' password: srvadm's password Logical database owner 'OWNER' password: database owner's password 2009-08-13 17:53:14 db_get_dbo: Start 2009-08-13 17:53:14 db_get_dbo: Running commands as srvadm 2009-08-13 17:53:17 db_setup_phys: Set up physical storage description for (prod)lpr_prod Storage segments with available space: lpk_log01 160 lpk_data05 388 lpk_log02 230 lpk_data06 332 lpk_log03 173 lpk_data07 380 lpk_log04 320 lpk_data08 178 lpk_log05 581 lpk_data09 368 lpk_data04 38 lpk_data10 298 [<RET>/Q/q]=quit [R/r]=redisplay list [V/v]=view physdb.msirc Enter Segment name from list above: lpk_data05 Enter # MBs required from segment: 150 Segment type: 'D[ATA]' or 'L[OG]': d [<RET>/Q/q]=quit [R/r]=redisplay list [V/v]=view physdb.msirc Enter Segment name from list above: lpk_log01 Enter # MBs required from segment: 40 Segment type: 'D[ATA]' or 'L[OG]': l [<RET>/Q/q]=quit [R/r]=redisplay list [V/v]=view physdb.msirc Enter Segment name from list above: Current contents of physdb.msirc: setenv MSIDB_SEG01 "lpk_data05,150,DATA" setenv MSIDB_SEG02 "lpk_log01,40,LOG" 2009-08-13 17:54:45 db_setup_phys: New physical configuration of (prod)lpr_prod stored in $ENVDIR/etc/physdb.msirc 2009-08-13 17:57:43 db_get_dbo: Start 2009-08-13 17:57:43 db_get_dbo: Running commands as srvadm 2009-08-13 17:57:46 db_build: Build (prod)lpr_prod 2009-08-13 17:57:46 db_build: Running commands as srvadm 2009-08-13 17:57:47 db_build: Constructing logical LeasePak database - SQL portion... 2009-08-13 17:57:53 db_set_dbo: Start 2009-08-13 17:57:56 db_set_dbo: Changing DBO of (prod)lpr_prod to lpr_prod ... 2009-08-13 17:57:56 db_set_dbo: End 2009-08-13 17:57:56 db_build: End 2009-08-13 17:57:56 db_load_obj: Load logical database objects in (prod)lpr_prod 2009-08-13 17:57:56 db_load_obj: Running commands as DBO, lpr_prod Xmap: tbl(mcml) tbl(mcmu) tbl(mja) tbl(mjc) tbl(mjl) tbl(mlo_city) tbl(mlo_county) Xmap: tbl(mlt) tbl(mpa_assmt) tbl(msg) tbl(msvb) tbl(msvc) tbl(msvh) tbl(msvi) Xmap: tbl(msvl) tbl(msvr) tbl(msvs) tbl(msvu) tbl(msvv) tbl(mvd_mdl) tbl(mvd_mnf) ... Xmap: idx(mja) idx(mjc) idx(mjl) idx(mlo_city) idx(mlo_county) idx(mlt) idx(mpa_assmt) Xmap: idx(msg) idx(msvb) idx(msvc) idx(msvh) idx(msvi) idx(msvl) idx(msvr) Xmap: idx(msvs) idx(msvu) idx(msvv) idx(mvd_mdl) idx(mvd_mnf) idx(mwa) idx(mwc) ... Xmap: idx(rzp) idx(rzq) idx(rzu) 2009-08-13 18:01:24 db_load_obj: Loaded 640 object scripts into (prod)lpr_prod 2009-08-13 18:01:24 db_load_obj: End 2009-08-13 18:01:24 db_load_code: Load SQL code in lpr_prod for prod 2009-08-13 18:01:24 db_load_code: Running commands as DBO, lpr_prod 2009-08-13 18:01:24 db_load_code: Creating ordered list of files to load ... 2009-08-13 18:01:25 db_load_code: Creating alphabetical list of up* code objects ... 2009-08-13 18:01:25 db_load_code: Creating alphabetical list of authorized cp* code objects ... 2009-08-13 18:01:25 db_load_code: Replacing authorized cp* objects with user-provided versions . 2009-08-13 18:01:25 db_load_code: Creating alphabetical list of main procedures to be loaded ... 2009-08-13 18:01:25 db_load_code: Creating final list(s) of procedures to be loaded ... 2009-08-13 18:01:25 db_load_code: Rebuilding views ... 2009-08-13 18:01:32 db_load_code: Loading SQL Code Objects ... Xproc: aacompare(dates) lessee(add_remove) alt(cussum) ar(dtl) chk(upd) mjc(convert) mp(davox) Xproc: rase(dbaconv_ras) dbaconv(rsc) related(del_app) upd(drawdown_clnt) ext(ela_asset) ext(ela_codes) hist(ela) ... Xproc: upd(allowed) update(passwd) xml(lsesum) mt(mcml) mt(mcmu) mt(mja) mt(mjc) Xproc: mt(mjl) mt(rad) mt(raf) mt(rag) mt(rai) mt(ral) mt(rap) Xproc: mt(rvd) mt(rxr) mt(rxu) mt(rzg) alt(lsesum) cp(altlsepayinfo) asset(dtl) Xproc: asset(sum) col(lsesum) cus(leases) cus(lsesum) mat(lsesum) rap(der) rec(lsesum) Xproc: rfw(notes) rgc(info) susp(info) 2009-08-13 18:13:00 db_load_code: Loaded 570 source files into (prod)lpr_prod 2009-08-13 18:13:01 db_load_code: End 2009-08-13 18:13:01 db_set_security: Set db security in (prod)lpr_prod 2009-08-13 18:13:01 db_set_security: Running commands as lpr_prod 2009-08-13 18:13:01 db_set_security: Setting general db security in (prod)lpr_prod 2009-08-13 18:13:16 db_set_security: End 2009-08-13 18:13:16 db_create: End
[nsdba62a:~] db_create prod 2009-08-13 23:06:09 db_create: Create (prod)lpr_prod 2009-08-13 23:06:09 db_create: Running commands as srvadm Server Administrator 'srvadm' password: srvadm's password Logical database owner 'OWNER' password: database owner's password 2009-08-13 23:06:23 db_get_dbo: Start 2009-08-13 23:06:23 db_get_dbo: Running commands as srvadm Retype password to confirm; leave blank to restart password selection ... Confirming Database Owner 'OWNER' password: database owner's password 2009-08-13 23:06:34 db_setup_phys: Set up physical storage description for (prod)lpr_prod Storage segments with available space: LPCOMMON LPT_PROD [<RET>/Q/q]=quit [R/r]=redisplay list [V/v]=view physdb.msirc Enter Segment name from list above: LPT_PROD Enter # MBs required from segment: UNLIMITED Current contents of physdb.msirc: setenv MSIDB_SEG01 "LPT_PROD,UNLIMITED" 2009-08-13 23:07:01 db_setup_phys: New physical configuration of (prod)lpr_prod stored in $ENVDIR/etc/physdb.msirc
db_restore env-name data-set-name [-p proc-count]
Name | Description | Your Value | Notes |
env-name | environment name | Must have been previously created using setup_new_env, and must contain a valid LLDB created using db_create | |
data-set | data-set name | Must be a data-set directory in $udsets or $datasets or the absolute pathname of a directory on the application host that contains a compatible data-set | |
-p proc-count | # of concurrent processes | optional parameter; if given must be 1 to 15, default is 4 | |
DBO's password | LLDB owner's password | db_restore will prompt for this. This password was assigned when the LLDB was created using db_create |
[nsdba62a:~] db_restore prod level7 -p 10
[nsdba62a:~] db_restore prod level7 -p 10 2009-08-21 15:27:57 db_restore: Load dataset level7 into database (prod)lpr_prod * * * Current contents of all tables in database (prod)lpr_prod will be deleted. * * * 2009-08-21 15:27:57 db_restore: Running DBMS commands as Database owner: lpr_prod 2009-08-21 15:27:57 db_restore: Running Unix commands as user: nsdba62a Database owner 'lpr_prod' password: database owner's password 2009-08-21 15:28:02 db_restore: Truncating all tables in database (prod)lpr_prod... 2009-08-21 15:28:18 db_restore: Deleting data directory contents in environment prod... 2009-08-21 15:28:18 db_restore: Turning ON fast bcp option... 2009-08-21 15:28:22 db_restore: Distributing bcp files into 10 portions... 2009-08-21 15:28:26 db_restore: Loading bcp files into database (prod)lpr_prod... 2009-08-21 15:28:26 db_restore: Loading rcc in group #1 ... 2009-08-21 15:28:26 db_restore: Loading rtx in group #2 ... 2009-08-21 15:28:26 db_restore: Loading rzga in group #3 ... 2009-08-21 15:28:26 db_restore: Loading req in group #4 ... 2009-08-21 15:28:26 db_restore: Loading rglc in group #5 ... 2009-08-21 15:28:26 db_restore: Loading rtr in group #8 ... 2009-08-21 15:28:26 db_restore: Loading rls in group #7 ... 2009-08-21 15:28:26 db_restore: Loading rcr in group #6 ... 2009-08-21 15:28:26 db_restore: Loading rtd in group #9 ... 2009-08-21 15:28:26 db_restore: Loading msg in group #10 ... 2009-08-21 15:28:27 db_restore: Loading rlsa in group #3 ... 2009-08-21 15:28:27 db_restore: Loading rpr in group #10 ... 2009-08-21 15:28:27 db_restore: Loading rlo in group #6 ... 2009-08-21 15:28:27 db_restore: Loading res in group #9 ... 2009-08-21 15:28:27 db_restore: Loading rst in group #2 ... 2009-08-21 15:28:27 db_restore: Loading reqa in group #7 ... 2009-08-21 15:28:27 db_restore: Loading rtp in group #1 ... 2009-08-21 15:28:27 db_restore: Loading rha in group #5 ... 2009-08-21 15:28:27 db_restore: Loading rsc in group #4 ... 2009-08-21 15:28:27 db_restore: Loading rhab in group #10 ... ... 2009-08-21 15:28:33 db_restore: Loading rpf in group #8 ... 2009-08-21 15:28:33 db_restore: Loading rbl in group #7 ... 2009-08-21 15:28:33 db_restore: Loading msvs in group #6 ... 2009-08-21 15:28:34 db_restore: Loading raps in group #9 ... 2009-08-21 15:28:34 db_restore: Loading rapr in group #10 ... 2009-08-21 15:28:34 db_restore: Loading rcga in group #4 ... Portion 6 done Fri Aug 21 15:28:34 PDT 2009 2009-08-21 15:28:34 db_restore: Loading rcgf in group #2 ... 2009-08-21 15:28:34 db_restore: Loading mwc in group #3 ... 2009-08-21 15:28:34 db_restore: Loading msvu in group #5 ... 2009-08-21 15:28:34 db_restore: Loading rep in group #8 ... 2009-08-21 15:28:34 db_restore: Loading msvi in group #9 ... 2009-08-21 15:28:34 db_restore: Loading msvh in group #10 ... 2009-08-21 15:28:34 db_restore: Loading rlss in group #1 ... Portion 5 done Fri Aug 21 15:28:34 PDT 2009 2009-08-21 15:28:34 db_restore: Loading msvr in group #7 ... Portion 9 done Fri Aug 21 15:28:34 PDT 2009 Portion 10 done Fri Aug 21 15:28:34 PDT 2009 2009-08-21 15:28:34 db_restore: Loading msvv in group #4 ... 2009-08-21 15:28:34 db_restore: Loading mjc in group #3 ... 2009-08-21 15:28:34 db_restore: Loading rac in group #2 ... Portion 7 done Fri Aug 21 15:28:35 PDT 2009 2009-08-21 15:28:34 db_restore: Loading rcgg in group #1 ... 2009-08-21 15:28:34 db_restore: Loading rbk in group #8 ... Portion 4 done Fri Aug 21 15:28:35 PDT 2009 Portion 3 done Fri Aug 21 15:28:35 PDT 2009 2009-08-21 15:28:35 db_restore: Loading msvb in group #2 ... 2009-08-21 15:28:35 db_restore: Loading msvl in group #8 ... 2009-08-21 15:28:35 db_restore: Loading rai in group #1 ... Portion 8 done Fri Aug 21 15:28:35 PDT 2009 Portion 2 done Fri Aug 21 15:28:35 PDT 2009 2009-08-21 15:28:35 db_restore: Loading msvc in group #1 ... Portion 1 done Fri Aug 21 15:28:35 PDT 2009 2009-08-21 15:28:39 db_restore: Fast bcp option has been turned off. 2009-08-21 15:28:39 db_restore: Initializing mxd table in database (prod)lpr_prod... 2009-08-21 15:28:40 db_update_statistics: Update statistics for all tables in database (prod)lpr_prod 2009-08-21 15:28:40 db_update_statistics: Running commands as database owner: lpr_prod 2009-08-21 15:29:03 db_update_statistics: End 2009-08-21 15:29:03 db_restore: End Load complete; check /opt/nst/v62a/log/prod.log for any errors
Role | Name to Enter in SETUP (with suggested value) | OS Acct? | by SETUP? | Password | Notes |
$NSTGROUP | nst | yes | no | (none) | OS group that must have been created before running SETUP; must be the primary group for all LeasePak OS users |
$NSTADMIN | nsadm62a | yes | no | The LeasePak Release Administrator is an OS user that must have been created before running SETUP; must have $NSTGROUP as its primary group. | |
$NSTDBA | nsdba62a | yes | no | The LeasePak Database Administrator is an OS user that must have been created before running SETUP; must have $NSTGROUP as its primary group. | |
$SRVADM | srvadm | no | yes | The Database Server Administrator is not an OS user, but is strictly a user within the installed database systems. It is granted sufficient authority to allow it to allocate resources to LLDBs, to create DBOs to own and manage them, and to grant users access to the database systems. |
User Type | OS Acct? | DBMS Acct? | Shell Access? | Security Record Created By | Range of available options | License Class |
LeasePak Supervisor | yes | yes | yes | Util 108 | All Client and Server Functions | User |
Regular User | yes | yes | no | Updates and reports determined by Supervisor | User | |
Report User | yes | yes | no | Restricted: Reports only | Report | |
Partial Update User | yes | yes | no | Restricted: Reports and a few Updates only | Partial |
Type | Name | OS Acct? | DBMS Acct? | UID | Password | Notes |
$NSTGROUP | nst | no | no | GID | none | Every user has the same group name/GID |
LeasePak Supervisor |
env-name+"62a" or lpsup62a |
yes | yes | UID |
client string SQL Server string Unix string |
Add LeasePak Security Record in Utility 108 |
Regular User | yes | yes | UID |
client string SQL Server string Unix string |
Add LeasePak Security Record in Set Account Type to Regular User |
|
Report User | yes | yes | UID |
client string SQL Server string Unix string |
Add LeasePak Security Record in Set Account Type to Report User |
|
Partial Update User | yes | yes | UID |
client string SQL Server string Unix string |
Add LeasePak Security Record in Set Account Type to Partial Upd. User |
lease /util 112
Name | Description | Your Value | Notes |
client string | the "plain-text" password used to log onto the LeasePak client | should conform to site password policies for strength, complexity, and frequency of change | |
SQL server string | the translated version of the client string for database use | will be used by LeasePak software for accessing the LLDB and the database server. This is the password that should be used with db_add_login. | |
Unix string | the translated version of the client string for OS use | will be used by LeasePak software for logging onto the DBMS host and onto the application host. This is the password that should be used with shell. |
[nsadm62a:~] lease /util 112
[lpuser:~] lease /util 112 This Utility option may be used to translate a Client password into the equivalent Unix and SQL Server passwords. Do you wish to continue (Y/N)? Y Unix and SQL Server password translation utility Instructions: Enter the Client password. The equivalent Unix and SQL Server passwords will be displayed. Enter the Client string, <RETURN> to exit: aardvark Client string: aardvark SQL Server string: ketxjyf3 Unix string: bfuumxi0 Enter the Client string, <RETURN> to exit: [lpuser:~]
db_add_login db-type user-name user-password
Name | Description | Your Value | Notes |
db-type | database type | ora for Oracle or syb for Sybase | |
user-name | OS account login name | existing OS login account name, not already added to the database system | |
user-password | SQL server password from lease /util 112 | This password is tied to the client string password and to the Unix string password. The SQL server string password and the Unix string password are derived together from the client string password in lease /util 112. | |
$SRVADM's password | Database server administrator's password | The system administrator assigned the $SRVADM password during LeasePak SETUP (installation). db_add_login is one of the LeasePak commands that accesses the database server using $SRVADM's credentials, hence its password is required |
[nsdba62a:~] db_add_login ora jstettner ketxjyf3
[nsdba62a:~] db_add_login ora jstettner
[nsdba62a:~] db_add_login ora jstettner ketxjyf3 2009-09-09 15:21:21 db_add_login: Add ora DBMS login jstettner 2009-09-09 15:21:21 db_add_login: Running commands as srvadm Server Administrator 'srvadm' password: srvadm's password 2009-09-09 15:21:30 db_add_login: Start: ora jstettner 2009-09-09 15:21:31 db_add_login: End [nsdba62a:~]
db_add_user env-name user-name access-group
Name | Description | Your Value | Notes |
env-name | environment name | Must have been previously created using setup_new_env; the LLDB that the environment points to must exist; the environment must be a test or production environment. | |
user-name | Database server login name | existing database system user name, not already granted access to the LLDB | |
access-group | LLDB access group | either msi for all LeasePak users; or msir for read-only analysts | |
DBO's password | LLDB owner's password | the DBO password, assigned when the DBO was created, most likely at the same time the LLDB was built using db_create |
[nsdba62a:~] db_add_user prod jstettner msi
[nsdba62a:~] db_add_user prod jstettner msi 2009-09-10 18:39:50 db_add_user: Add user jstettner to (prod)lpr_prod 2009-09-10 18:39:50 db_add_user: Running commands as lpr_prod Database Owner 'lpr_prod' password: database owner's password 2009-09-10 18:39:58 db_add_user: End [nsdba62a:~]
############################################################### # NetSol Sample .login file # $Revision: 6.2.0.2 $ $Date: 2009/09/11 00:26:42 $ ############################################################### # Set up the default search paths: set path=( $path . ) #set up the terminal eval `tset -s -Q -m ':?vt100' ` stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tostop tabs alias cd 'cd \!*; set prompt="[${LOGNAME}:${cwd}] "' cd $cwd # Source user's .lplogin file to set up LEASEPAK/UX environment if ( -f $HOME/.lplogin ) then source $HOME/.lplogin else echo "Warning: You don't have a .lplogin file" endif
############################################################### # NetSol Sample .profile file # $Revision: 6.2.0.3 $ $Date: 2009/09/11 00:31:49 $ ############################################################### # Set up the terminal: eval ` tset -s -Q -m ':?vt100' ` stty erase "^H" kill "^U" intr "^C" eof "^D" stty hupcl ixon ixoff tabs # Set up the search paths: PATH=$PATH:. # Set up the shell variables: EDITOR=vi export EDITOR # Source user's .lpprofile file to set up LEASEPAK/UX environment if [ -f $HOME/.lpprofile ] ; then . $HOME/.lpprofile else echo "Warning: You don't have a .lpprofile file!" fi
change_env user-name release-version env-name modes
Name | Description | Your Value | Notes |
user-name | Database server login name | existing fully configured LeasePak user name, whose home directory is either writable by $NSTGROUP or contains LeasePak start-up files which are writable by $NSTGROUP or by $NSTADMIN | |
release-version | LeasePak release version where environment is located | Must exist and contain indicated environment; its top directory must be within the $NSTDIR directory tree | |
env-name | environment name | Must have been previously created using setup_new_env; the LLDB that the environment points to must exist; the environment and its LLDB be accessible to the user | |
access-modes | file access modes to apply to start-up files | 660 if user is to be able to change his or her own environment, 640 if not |
[lpsup62a:~] cp <top-dir>/env/<env-name>/etc/.lp* $HOMEwhere <top-dir> is the top directory and <env-name> is the environment name.
[nsadm62a:~] change_env jstettner v62a prod 640
[nsadm62a:~] change_env jstettner v62a prod 640
2009-09-15 05:07:47 change_env: Environment for jstettner changed to version v62a, prod
environment
Be sure jstettner logs off and logs in again to have changes take effect
[nsadm62a:~]
[nsadm62a:~] ls -l /home/jstettner/.lp*
-rw-r----- 1 nsadm62a nst 493 Sep 15 09:07 .lplogin
-r--r----- 1 jstettner nst 502 Aug 5 09:55 .lplogin_bak
-rw-r----- 1 nsadm62a nst 507 Sep 15 09:07 .lpprofile
-r--r----- 1 jstettner nst 530 Aug 5 09:56 .lpprofile_bak
[nsadm62a:~]
[lpuser:~] whatami
[lpuser:~] whatami
User : jstettner
LeasePak version : v62a
Installed in : /opt/nst/v62a
Environment name : prod
Environment type : PRODUCTION
Database name : lpr_prod
DBMS name : Sybase
Database server : SEVILLE
Database home : /opt/sybase
Designated build : live
Current linked-in build : bld6.20.3078
Executable directory is a : link to build directory
You will need the following for LeasePak PC Client setup:
IP Address or name : seville
Server Port : 6200
[lpuser:~]
Item | Example | Notes |
User | jstettner | OS login account name |
LeasePak version | v62a | LeasePak release version |
Installed in | /opt/nst/v62a | top directory |
Environment name | prod | environment that the user is configured for |
Environment type | PRODUCTION | PRODUCTION, TEST, or VISITOR |
Database name | lpr_prod | the LLDB of the environment |
DBMS name | Sybase | Oracle or Sybase |
Database server | SEVILLE | the database server under which the LLDB is built |
Database home | /opt/sybase | directory where database system software is installed |
Designated build | live | a build id or build id alias |
Current linked-in build | bld6.20.3078 | the build that Designated build evaluates to; the actual build that the environment is linked to. |
Executable directory is a | link to build directory | How the executable files are linked to the environment; other value is directory of links to executables |
IP Address or name | seville | name or address of the application host. This could also be in web form lpak.myleasingco.com or an IP address such as 192.168.00.117 |
Server Port | 6200 | the TCP port number on which LeasePak listens for connection requests |
Name | Description | Your Value | Notes |
operator's name | The operator's login name | The operator must have a database system login account and must be a user in the LLDB of the environment. | |
operator's password | The operator must provide his client string password | the client string password was assigned when the operator's account was created. | |
Password of the Day | allows operator to use lease /util 108 | obtain the Password of the Day from NetSol Help Desk | |
user-name | login name of user | must be an existing OS login account name, who has a login on the appropriate database system (see db_add_login) and who is a user in the LLDB (see db_add_user)of the environment to which the user is assigned (see change_env). | |
user initials | the initials that will represent the user within LeasePak. | The initials must be unique within the LLDB as must the user name; the initials are three characters; LeasePak does not enforce any derivation of the initials from the user name; initials are entirely arbitrary as long as they are alphanumeric characters and unique. | |
user-status | a quick checklist; all must be 'Yes' |
Yes No Yes No Yes No |
< Yes/No : does user have OS login account? < Yes/No : does user have database system login? < Yes/No : has user been added to the LLDB? |
[lpsup62a:~] lease /util 108
[lpsup62a:~] lease /util 108 This Utility option is an NetSol Technologies Client Services tool used in initial client account setup. WARNING: Improper use of this utility will cause severe harm. Do you wish to continue (Y/N)? Y Client Password? client-string
Password? password-of-the-day Enter username, <RETURN> to exit: lpsup62a Enter user initials: sup User successfully added. Enter username, <RETURN> to exit: [lpsup62a:~]
Com-file name | Purpose |
start_qmgr.com | Start the jspctl program |
start_queues.com | Start the qmgr program for each of the various queues |
stop_qmgr.com | Stop jspctl which in turn stops the individual qmgr programs |
# service nst_qm_${INST_ID}62a startwhere
# service nst_qm_${INST_ID}62a stopwhere
# service nst_qm_${INST_ID}62a statuswhere
# /sbin/init.d/nst_qm_${INST_ID}62a start # /sbin/init.d/nst_qm_${INST_ID}62a status # /sbin/init.d/nst_qm_${INST_ID}62a stopAnd on Solaris would be:
# /etc/init.d/nst_qm_${INST_ID}62a start # /etc/init.d/nst_qm_${INST_ID}62a status # /etc/init.d/nst_qm_${INST_ID}62a stop
# service nst_qm_${INST_ID}62a startThe command will produce a display similar to the screen print below.
# service nst_qm_${INST_ID}62a start
Setting Linux subsys lock ...
Checking/creating v62a Qmgr temporary directories ...
Starting v62a Queue Manager ...
Job limit = 1
Sector7 VX/DCL V3.1.9r6 (Sep 12 2007 07:37:12)
Copyright (C) 1985-2006 Sector 7 USA Inc.
All Rights Reserved
Sector7 VX/DCL V3.1.9r6 (Sep 12 2007 07:37:12)
Copyright (C) 1985-2006 Sector 7 USA Inc.
All Rights Reserved
Batch queue SYS$BATCH, running
Batch queue LP$EOP1, running
Print queue SYS$BLACKHOLE, running, on LPBH:, mounted form DEFAULT
Print queue SYS$PRINT, running, on LPSP:, mounted form DEFAULT
Print queue SITE$PRINT, running, on LPHPLJ:, mounted form DEFAULT
#
# service nst_qm_${INST_ID}62a statusThe command will produce a display similar to the screen print below.
# service nst_qm_${INST_ID}62a status
Sector7 VX/DCL V3.1.9r6 (Sep 12 2007 07:37:12)
Copyright (C) 1985-2006 Sector 7 USA Inc.
All Rights Reserved
Batch queue SYS$BATCH, running
/PRIORITY=0 /NOENABLE_GENERIC
/JOB_LIMIT=1
Batch queue LP$EOP1, running
/PRIORITY=0 /NOENABLE_GENERIC
/JOB_LIMIT=1
Print queue SYS$BLACKHOLE, running, on LPBH:, mounted form DEFAULT
/PRIORITY=0 /NOENABLE_GENERIC
/DEFAULT=(FEED, FORM=DEFAULT) /STOCK="DEFAULT"
Print queue SYS$PRINT, running, on LPSP:, mounted form DEFAULT
/PRIORITY=0 /NOENABLE_GENERIC
/DEFAULT=(FEED, FORM=DEFAULT) /STOCK="DEFAULT"
Print queue SITE$PRINT, running, on LPHPLJ:, mounted form DEFAULT
/PRIORITY=0 /NOENABLE_GENERIC
/DEFAULT=(FEED, FORM=DEFAULT) /STOCK="DEFAULT"
#
# service nst_qm_${INST_ID}62a stopThe command will produce a display similar to the screen print below.
# service nst_qm_${INST_ID}62a stop
Stopping v62a Queue Manager ...
Sector7 VX/DCL V3.1.9r6 (Sep 12 2007 07:37:12)
Copyright (C) 1985-2006 Sector 7 USA Inc.
All Rights Reserved
#
dcl -n $QMDIR/com/start_qmgr.com . $QMJOB_LIM_FILE dcl -n $QMDIR/com/start_queues.com $QLIMThough this will start the Queue Manager and the queues successfully, on Linux it is missing an important element: the subsys lock file cannot be created except by root. This would be an issue only if the administrator subsequently transitions the run level of the system to one where the queues are supposed to be running; in the absence of the /var/lock/subsys lock file, init will not know that the queues are running and will start a whole new set.
dcl -n $QMDIR/com/show_que.com
dcl -n $QMDIR/com/stop_qmgr.com
[nsadm62a:~] chmod 640 $QMDIR/library/Config [nsadm62a:~] vi $QMDIR/library/Config [nsadm62a:~] chmod 440 $QMDIR/library/Config
[nsadm62a:~] ipcs -mbcowhere
[nsadm62a:~] ipcs -qwhere
$AWK '{printf "%08x\n", $1}'then type the key and press ENTER; the script will print the hexadecimal value of the key and wait for another key. Press CTRL-D when done.
# ipcrm -opt key [-opt key] ...where
Calculation of Queue Manager Config:MAXJOB |
(2 x CU) + (4 x JL x NQ) + PQ |
where: CU = concurrent users JL = Queue Job Limit NQ = number of Batch Queues PQ = number of Print Queues |
[nsadm62a:~] ipcs -mbcoThe command will produce a display similar to the screen print below.
[nsadm62a:~] ipcs -mbco
IPC status from /dev/kmem as of Fri Oct 2 09:24:42 2009
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ
Shared Memory:
m 8 0x0000f230 --rw-rw-rw- root root root root 13 307808
m 9 0x0000f231 --rw-rw-rw- root root root root 13 47112
m 1548 0x652821f4 --rw------- sybase sybase sybase sybase 6 554074112
m 525 0x0000eac4 --rw-rw-rw- nsadm62a nst nsadm62a nst 13 307808
m 4624 0x0000eac5 --rw-rw-rw- nsadm62a nst nsadm62a nst 13 47112
m 4625 0x00000000 D-rw------- sybase sybase sybase sybase 2 65540
m 4626 0x0000ee48 --rw-rw-rw- jstettner nst jstettner nst 0 307808
m 4627 0x0000ee49 --rw-rw-rw- jstettner nst jstettner nst 0 47112
[nsadm62a:~]
Key | Config:SYSTEM | Release | SEGSZ |
0x0000f230 0x0000f231 |
62000 | v62a | 307,808 + 47,112 = 354,920 |
0x0000ee48 0x0000ee49 |
61000 | v61a | 307,808 + 47,112 = 354,920 |
0x0000eac4 0x0000eac5 |
60100 | v60b | 307,808 + 47,112 = 354,920 |
# ipcs -qThe command will produce a display similar to the screen print below.
[nsadm62a:~] ipcs -q
IPC status from /dev/kmem as of Fri Oct 2 09:26:45 2009
T ID KEY MODE OWNER GROUP
Message Queues:
q 0 0x3c300734 -Rrw--w--w- root root
q 1 0x3e300734 --rw-r--r-- root root
q 2 0x0000f230 --rw-rw-rw- root root
q 3 0x0000f231 --rw-rw-rw- root root
q 4 0x0000eac4 --rw-rw-rw- root root
q 5 0x0000eac5 --rw-rw-rw- root root
q 7 0x0000ee48 --rw-rw-rw- jstettner nst
q 8 0x0000ee49 --rw-rw-rw- jstettner nst
[nsadm62a:~]
# ipcrm -M 0x0000f23a -M 0x0000f23bThe command will produce a display similar to the screen print below.
# ipcs -mboc
IPC status from /dev/kmem as of Mon Oct 5 00:14:08 2009
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ
Shared Memory:
m 0 0x413007ba --rw-rw-rw- root root root root 0 348
m 1 0x4e0c0002 --rw-rw-rw- root root root root 1 61760
m 2 0x4134487f --rw-rw-rw- root root root root 1 8192
m 26115 0x5e2c003a --rw------- root root root root 1 512
m 4 0x0000f23a --rw-rw-rw- root root root root 0 307808
m 5 0x0000f23b --rw-rw-rw- root root root root 0 47112
m 6 0x0000eac4 --rw-rw-rw- root root root root 13 67200
m 7 0x0000eac5 --rw-rw-rw- root root root root 13 31512
# ipcrm -M 0x0000f23a -M 0x0000f23b
# ipcs -mboc
IPC status from /dev/kmem as of Mon Oct 5 00:15:51 2009
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ
Shared Memory:
m 0 0x413007ba --rw-rw-rw- root root root root 0 348
m 1 0x4e0c0002 --rw-rw-rw- root root root root 1 61760
m 2 0x4134487f --rw-rw-rw- root root root root 1 8192
m 26115 0x5e2c003a --rw------- root root root root 1 512
m 6 0x0000eac4 --rw-rw-rw- root root root root 13 67200
m 7 0x0000eac5 --rw-rw-rw- root root root root 13 31512
$ init/que/start/job_limit=n/batch batch-queue-namewhere
set noon- this sets up default error handling.
Name | Description | Your Value | Notes |
basic command | for batch queues | $ init/que/start | Combine this with the values below to make entries in start_queues.com |
/job_limit= | maximum concurrent jobs | /job_limit= | a number between 1 and 255 |
queue-name | Queue name | lower-case alphanumeric, or $. Conventionally, lp$EOPnn |
[nsadm62a:~] vi qdef.new
$ init/que/start/job_limit=10/batch SYS$BATCH $ init/que/start/job_limit=10/batch lp$eop01 $ init/que/start/job_limit=10/batch lp$eop02 $ wait 00:00:03and so on for the remainder of the batch queues to be initialized.
$ if P1 .eqs. "" then -
write sys$output "WARNING: Job Limit Parameter is empty; defaulting Queue Job Limit to 6"
$ if P1 .eqs. "" then P1 = 6
/usr/bin/lp -dprinter -odouble -otl66 -oc -s 2>>$VXTMP/log/device.log < %s
Item | /usr/bin/lp values | Site values |
command path | /usr/bin/lp | |
print destination | -d(print destination) | |
printer options |
-odouble -oc -otl66 |
|
be silent | -s | |
error output | 2>> $VXTMP/log/device.log | |
file to print | < %s | %s |
Print Destination | Pseudo-device | Print Queue |
(default) | LPSP: | sys$print |
(paperless queue) | LPBH: | sys$blackhole |
xyz | LPXYZ: | xyz$print |
$ init/que/start/form=formname/on=dev print-queue-namewhere
Name | Description | Your Value | Notes |
basic command | for print queues | $ init/que/start | Combine this with the values below to make entries in start_queues.com |
/form= | form name | /form= | a pre-defined form |
/on= | pseudo-device | /on=LP____: | from table of Printer Names above |
print queue-name | Print queue name | ____$print | from table of Printer Names above |
$ define/form default 0 - /description="Portrait Compressed Letter Document" - /Length=66 - /margin=(Bottom=6,Top=6, Left=10, Right=10) - /stock=default - /truncate - /width=132
$ define/form landscape 50 - /description="Landscape Letter Document" - /Length=45 - /margin=(Bottom=6,Top=6, Left=10, Right=10) - /stock=default - /truncate - /width=132
device-name /dev/null LP 512This device-name will appear in start_queues.com and in the Config file.
device spooler-command
[nsadm62a:~] vi $QMDIR/com/start_queues.com
$set noon
$ init/que/start/form=default/on=LPSP: sys$print $ init/que/start/form=default/on=LPBH: sys$blackhole $ wait 00:00:03 $ init/que/start/form=default/on=LPF35SI: f35si$print $ init/que/start/form=landscape/on=LPF35SIL: f35sil$print $ wait 00:00:03
$ set noon $ define/form default 0 - /description="Portrait Compressed Letter Document" - /Length=66 - /margin=(Bottom=6,Top=6, Left=10, Right=10) - /stock=default - /truncate - /width=132 $ define/form landscape 50 - /description="Landscape Letter Document" - /Length=45 - /margin=(Bottom=6,Top=6, Left=10, Right=10) - /stock=default - /truncate - /width=132 $ if P1 .eqs. "" then - write sys$output "WARNING: Job Limit Parameter is empty; defaulting Queue Job Limit to 6" $ if P1 .eqs. "" then P1 = 6 $ init/que/start/job_limit='P1'/batch SYS$BATCH $ init/que/start/job_limit='P1'/batch lp$eop01 $ init/que/start/job_limit='P1'/batch lp$eop02 $ wait 00:00:03 $ init/que/start/form=default/on=LPSP: sys$print $ init/que/start/form=default/on=LPBH: sys$blackhole $ wait 00:00:03 $ init/que/start/form=default/on=LPF35SI: f35si$print $ init/que/start/form=landscape/on=LPF35SIL: f35sil$print $ wait 00:00:03 $ show que/all
[nsadm62a:~] vi $QMDIR/library/DEVINIT
DUA0: / DK 512 NL: /dev/null NL 10240 LPSP: /dev/null LP 512 LPBH: /dev/null LP 512 LPF35SI: /dev/null LP 512 LPF35SIL: /dev/null LP 512
[nsadm62a:~] vi $QMDIR/library/Config
LPSP: /usr/bin/lp -dsystem -oc -s \ 2>>$VXTMP/lpsp.log < %s LPBH: : LPF35SI: /usr/bin/lp -d5si -odouble -otl66 -oc -s \ 2>>$VXTMP/lpf35si.log < %s LPF35SIL: /usr/bin/lp -d5si -odouble -olandscape -ofp12.5 -otl45 -s \ 2>>$VXTMP/lpf35sil.log < %s
lease /ver
[lpuser:~] lease /verand part of its output:
[lpuser:~] lease /ver
LEASEPAK UX
Copyright (c) 1995-2009, NetSol Technologies, Inc.
------------------------------------------------------------
Version : 6.2a-
Build date : 05-Oct-09 04:59
Client name : Your Leasing Company
Client code : YC
User License : 00099
Report License : 00009
Partial License: 00000
Registration Codes
------------------------------------------------------------
dx Generation : SER-########-XXX-??????
Print Spy : SER-########-XXX-??????
FormPak : SER-########-XXX-??????
Eop Monitor : SER-########-XXX-??????
LeasePak EC : SER-########-XXX-??????
nst_lp62a${INST_ID}_6200 6200/tcp # ${INST_ID_CMT} LeasePak v62a leasepakd /opt/nst/v62awhere:
[lpuser:~] grep nst_lp /etc/services
nst_lp62a${INST_ID}_6200 6200/tcp # ${INST_ID_CMT} LeasePak v62a leasepakd /opt/nst/v62a
[lpuser:~] grep nst_mp /etc/services
nst_mp62a${INST_ID}_6206 6206/tcp # ${INST_ID_CMT} LeasePak v62a mPowerd /opt/nst/v62a
nst_lp62a${INST_ID}_6200 \ stream tcp nowait root \ /opt/nst/v62a/live/bin/leasepakd \ leasepakd -d /opt/nst/v62a \ -l /opt/nst/v62a/log/leasepakd.log \ -f /opt/nst/v62a/etc/${HOST}_v62a_rt.lpkdwhere:
[lpuser:~] grep leasepakd /etc/inetd.conf
nst_lp62a${INST_ID}_6200 stream tcp nowait root \
/opt/nst/v62a/live/bin/leasepakd leasepakd \
-d /opt/nst/v62a -l /opt/nst/v62a/log/leasepakd.log \
-f /opt/nst/v62a/etc/${HOST}_v62a_rt.lpkd
[lpuser:~] grep mPowerd /etc/inetd.conf
nst_mp62a${INST_ID}_6206 stream tcp nowait root \
/opt/nst/v62a/live/bin/mPowerd mPowerd \
-d /opt/nst/v62a -l /opt/nst/v62a/log/mPowerd.log \
-f /opt/nst/v62a/etc/${HOST}_v62a_rt.lpkd
# default: off # description: leasepakd allows connections to # ${INST_ID_CMT} LeasePak v62a leasepakd /opt/nst/v62a service nst_lp62a${INST_ID}_6200 { disable = no id = nst_lp62a${INST_ID}_6200 socket_type = stream user = root server = /opt/nst/v62a/live/bin/leasepakd wait = no protocol = tcp port = 6200 server_args = -d /opt/nst/v62a -l /opt/nst/v62a/log/leasepakd.log \ -f /opt/nst/v62a/etc/${HOST}_v62a_rt.lpkd }where:
[lpuser:~] cat /etc/xinetd.d/nst_lp*
# default: off
# description: leasepakd allows connections to
# ${INST_ID_CMT} LeasePak v62a leasepakd /opt/nst/v62a
service nst_lp62a${INST_ID}_6200
{
disable = no
id = nst_lp62a${INST_ID}_6200
socket_type = stream
user = root
server = /opt/nst/v62a/live/bin/leasepakd
wait = no
protocol = tcp
port = 6200
server_args = -d /opt/nst/v62a -l /opt/nst/v62a/log/leasepakd.log \
-f /opt/nst/v62a/etc/${HOST}_v62a_rt.lpkd
}
db_snapshot env-name data-set-name [-p proc-count]
Name | Description | Your Value | Notes |
env-name | environment name | Must have been previously created using setup_new_env, and must contain a valid LLDB created using db_create | |
data-set | data-set name | Must be a new or existing data-set directory in $datasets or the absolute pathname of a directory on the application host that can contain a data-set | |
-p proc-count | # of concurrent processes | optional parameter; if given must be 1 to 15, default is 4 | |
DBO's password | LLDB owner's password | db_snapshot will prompt for this. This password was assigned when the LLDB was created using db_create |
[nsdba62a:~] db_snapshot prod level7 -p 10
[nsdba62a:~] db_snapshot prod prod20091013 -p 10 2009-10-13 13:09:13 db_snapshot: Unload database (prod)lpr_prod into dataset prod20091013 2009-10-13 13:09:13 db_snapshot: Running commands as DBO: lpr_prod Database Owner 'lpr_prod' password: database owner's password 2009-10-13 13:09:25 db_snapshot: Creating prod20091013 directory... 2009-10-13 13:09:26 db_snapshot: Getting list of user tables sorted by size... 2009-10-13 13:09:55 db_snapshot: Distributing tables into 10 portions... 2009-10-13 13:10:02 db_snapshot: Performing bcp out for the tables... rcc 1 req 2 rcr 3 rst 4 rtx 5 rglc 6 rls 8 rzga 7 rlsa 9 msg 10 rlsb 5 rha 7 rtr 1 rlo 3 rsc 2 reqa 6 rtd 9 ... ruet 9 rsq 4 Portion 6 done Tue Oct 13 13:10:13 PDT 2009 rxr 10 rxrp 1 rub 4 ruqt 2 run 8 rwt 7 rxup 3 runt 9 Portion 10 done Tue Oct 13 13:10:13 PDT 2009 Portion 5 done Tue Oct 13 13:10:13 PDT 2009 rxp 9 ruj 4 rxf 8 rxu 2 Portion 3 done Tue Oct 13 13:10:13 PDT 2009 Portion 1 done Tue Oct 13 13:10:13 PDT 2009 rzu 9 rus 4 rzp 7 rzq 8 Portion 2 done Tue Oct 13 13:10:13 PDT 2009 ryr 4 Portion 7 done Tue Oct 13 13:10:13 PDT 2009 Portion 8 done Tue Oct 13 13:10:13 PDT 2009 Portion 9 done Tue Oct 13 13:10:13 PDT 2009 Portion 4 done Tue Oct 13 13:10:14 PDT 2009 2009-10-13 13:10:14 db_snapshot: End Unload complete; check /opt/nst/v62a/log/prod.log for any errors [nsdba62a:~]
[nsdba62a:~] . $TOPDIR/env/adm_dbms/etc/.lpprofileif using the sh, bash, or ksh shell, or:
[nsdba62a:~] source $TOPDIR/env/adm_dbms/etc/.lploginif using the csh or tcsh shell, and where dbms is either ora or syb.
[nsdba62a:~] sqlplus "sys as sysdba"And enter the sysdba password when prompted. Then at the SQL> prompt, execute:
SQL> grant alter user to target-user;Now the target-user can log onto sqlplus and change the passwords of other users.
[nsdba62a:~] isql -UsaAnd enter the sa password when prompted. Then at the 1> prompt, execute:
1> grant role sso_role to target-user
2> goNow the target-user can log onto isql and change the passwords of other users.
% sqlplusenter the user name and user-password when prompted.
SQL> alter user system-user identified by new-passwordwhere:
% isql -Uuser -Puser-password
1> sp_password user-password, new-password, system-userwhere:
lpchgpass config-file env-name user-name security-adminwhere:
Name | Description | Your Value | Notes |
config-file | run-time configuration script | top/etc/host_v62a_rt.msirc | top/etc/host_release_rt.msirc |
env-name | environment name | where the user has database access | |
user-name | user whose password is being changed | ||
security-admin | a user who holds Security Authority | usually $SRVADM, but can be any user who has Security Authority. See Granting Security Authority. | |
new-password | new password of user | 6-8 characters | |
security-admin's password | password of user with Security Authority | usually $SRVADM, but can be any user who has Security Authority. |
# cd /opt/nst/v62a/env/prod # . etc/.lpprofile # exe/lpchgpass $CFGDIR/$MSI_RT_CFG prod jstettner $SRVADM
# cd /opt/nst/v62a/env/prod # . etc/.lpprofile # exe/lpchgpass $CFGDIR/$MSI_RT_CFG prod jstettner $SRVADM Enter new password for user: user's password Confirm new password for user: user's password Enter password of the SSO role: SSO's password Password set correctly #
rm -f home-path/user-name/.lpdlogin-lckwhere:
[lpuser:~] dfAll three forms of the command produce similar output, for example as follows:
[lpuser:~] df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 8062392 657072 6989168 9% /
/dev/md0 194366 25394 158937 14% /boot
/dev/mapper/VolGroup01-LogVol01 4128448 139468 3779268 4% /tmp
/dev/mapper/VolGroup01-LogVol00 8256952 2653856 5183668 34% /usr
/dev/mapper/VolGroup01-LogVol02 4128448 2565024 1353712 66% /var
/dev/mapper/VolGroup01-LogVol03 20642428 1245624 18348228 7% /home
/dev/mapper/VolGroup01-LogVol04 25803068 8847068 15645280 37% /opt
/dev/mapper/VolGroup01-LogVol05 77409288 4153856 69323272 6% /opt/nst
/dev/mapper/VolGroup01-LogVol06 25803068 12881880 11610468 53% /opt/oracle/oradata
/dev/mapper/VolGroup01-LogVol07 25803068 531904 23960444 3% /opt/sybase/sybdata
tmpfs 4087568 5708 4081860 1% /dev/shm
netfs:/export/nfs/backup 371902464 48316928 304694272 14% /backup
[lpuser:~]
cleanupIt removes temporary files from the Queue Manager temporary directories that belong to processes that are no longer running. It is important to remove these files, because if another process with the same process ID as that of an existing file starts, it will abort because it sees the file as already in use. This will lead to multiple, random and confounding failures in almost any LeasePak process, from logging into the LeasePak client to running End of Period.
cleanse_s7 -awhere:
cleanse_s7 -sptdlrqwhere:
cleanse_s7which is the equivalent of cleanse_s7 -sptdrq, and performs only the tasks supported in earlier versions of the program, which were all of the above except -l remove logical tables.
[lpuser:~] cleanup
[nsadm62a:~] cleanse_s7 -a
[nsadm62a] cleanse_s7 -a
2009-10-15 14:22:46 cleanse_s7: Start: -sptdlrq
RT_CONFIG=/opt/nst/qm/v62a/qm_3_17/library/Config,
LNMDIR=/tmp/qm/v62a, JSPDIR=/opt/nst/qm/v62a/qm_3_17/spool
2009-10-15 14:22:46 cleanse_s7: Stopping queues ...
VX/DCL - DEC VMS DCL Emulation for Unix
Copyright (C) 1985-1995 Isleworth Ltd.
All Rights Reserved
2009-10-15 14:22:52 cleanse_s7: Purging spooler .JOBS ...
2009-10-15 14:22:53 cleanse_s7: Truncating VXRT.LOG ...
2009-10-15 14:22:53 cleanse_s7: Purging JOB* PD_* PT_* SOR* *ERR and PJOB* files ...
2009-10-15 14:22:53 cleanse_s7: Logical name tables ...
2009-10-15 14:22:53 cleanse_s7: Restarting spooler ...
VX/DCL - DEC VMS DCL Emulation for Unix
Copyright (C) 1985-1995 Isleworth Ltd.
All Rights Reserved
2009-10-15 14:23:00 cleanse_s7: Restarting queues ...
VX/DCL - DEC VMS DCL Emulation for Unix
Copyright (C) 1985-1995 Isleworth Ltd.
All Rights Reserved
Batch queue SYS$BATCH, running
Batch queue LP$EOP1, running
Print queue SYS$BLACKHOLE, running, on LPBH:, mounted form DEFAULT
Print queue SYS$PRINT, running, on LPSP:, mounted form DEFAULT
Print queue DEV$PRINT, running, on LP5SI:, mounted form DEFAULT
Print queue DEVL$PRINT, running, on LP5SIL:, mounted form LANDSCAPE
2009-10-15 14:23:24 cleanse_s7: End
[nsadm62a]
# Linux RHEL5 53 */2 * * * root ". ~nsadm62a/.lpprofile; cleanup" >/dev/null 2>&1
# HP-UX, Solaris, & Linux RHEL4 53 1,3,5,7,9,11,13,15,17,19,21,23 * * * ". ~nsadm62a/.lpprofile; cleanup" \ >/dev/null 2>&1
[nsadm62a:~] dcl
$ show queue/allThis will display all of the queues and any jobs on them. If the queue is already known, the operator may execute:
$ show queue/all queue-nameThis is an example of the output of this command:
$ show queue/all
Batch queue SYS$BATCH, running
Jobname Username Entry Status
------- -------- ----- ------
TESTHOLD jstettner 2480 Holding
Batch queue LP$EOP1, running
Batch queue LP$EOP2, running
$ set entry entry-number/releaseThere is no system response to this command. The operator must repeat the show queue command to verify that the job is executing or has executed.
$ logout
[nsdba62a] db_truncate_rhr environment-namewhere:
[nsdba62a:~] db_truncate_rhr prod 2009-10-15 22:42:23 db_truncate_rhr: Truncate rhr table in database lpr_prod of environment prod 2009-10-15 22:42:23 db_truncate_rhr: Running commands as DBO: lpr_prod Database Owner 'lpr_prod' password: database owner's password 2009-10-15 22:42:31 db_truncate_rhr: End [nsdba62a:~]
# . ~nsadm62a/.lpprofile
# find /home/ $TOPDIR/ -name core -mtime +2 \ -exec ls -l {} \; -exec rm -f {} \; > /tmp/core.log 2>&1This scans the /home directories and the LeasePak instance directory for core files older than 2 days, prints their name, size, and timestamp and then removes them, with the resulting information recorded in a log file.
# . ~nsadm62a/.lpprofile
# find /home/ $TOPDIR/ -name 'core.*' -mtime +2 \ -exec ls -l {} \; -exec rm -f {} \; > /tmp/core.log 2>&1This scans the /home directories and the LeasePak instance directory for core.* files older than 2 days, prints their name, size, and timestamp and then removes them, with the resulting information recorded in a log file.
# . ~nsadm62a/.lpprofile # find /home/ $TOPDIR/ -name core -mtime +2 \ -exec ls -l {} \; -exec rm -f {} \; > /tmp/core.log 2>&1 # cat /tmp/core.log -rw------- 1 lpsup62a nst 11933308 Aug 27 22:58 /opt/nst/v62a/env/devtest/eop/core -rw------- 1 ruthere nst 11933308 Aug 18 11:24 /opt/nst/v62a/env/prod/eop/core -rw------- 1 jstettner nst 15865468 Oct 6 04:10 /home/jstettner/core
CODE | DESCRIPTION |
G | excessively rapid growth |
S | excessive size |
Q | quantity of log files may become issue |
X | Debug logs that should not normally be used |
H | logs Handled by cleanse_s7 |
++ | high potential for a problem |
+ | moderate potential for a problem |
~ | low potential for problem |
SUB- SYSTEM |
DIRECTORY | LOGFILE | POTEN. |
LLDB Environments |
$msilog | admin.log | ~ |
dblib_lib.log | ~ | ||
dbms.log | ~ | ||
job.log | GS++ | ||
leasepakd.log | GS+ | ||
mPowerd.log | G+ | ||
ENVNAME.log | GS++ | ||
Conversions | $msilog | ENVNAME_convYYMMDDHHMM.log | SQ+ |
Oracle 9i | BACKGROUND_DUMP_DEST/ | alert_ORADB.log | Q+ |
$ORACLE_HOME/network/log/ | listener.log | SQ+ | |
USER_DUMP_DEST/ | *.trc | X++ | |
Oracle 11g | $ORACLE_BASE/diag/rdbms/ORADB/ORAINST/alert/ | log.xml | Q+ | $ORACLE_BASE/diag/rdbms/ORADB/ORAINST/trace/ | alert_ORADB.log | Q+ |
$ORACLE_BASE/diag/tnslsnr/<dbms-host>/listener/alert/ | log.xml | Q+ | |
$ORACLE_BASE/diag/tnslsnr/<dbms-host>/listener/trace/ | listener.log | SQ+ | |
DIAGNOSTIC_DEST/... | *.trc | X++ | |
/var/tmp | ora_startup_shutdown.log | ~ | |
DAVOX | $ueop/log | davox_dl.log | ~ |
$udata/ | m2_BBBB_YYMMDD_HHMMSS.log | ~ | |
EOPS-II | $ueop/log | eop_run.log | G~ |
pPOR_status.log | GSQ+ | ||
EOPS-III | $ueop/log | eops_event.log | GS++ |
pPOR_session.log | SQ+ | ||
eops_proc.log | S+ | ||
eops_gen.log | S+ | ||
eops_dbg.log | X+ | ||
eops_state.log | X+ | ||
event_handler.log | X++ | ||
Queue Manager | /tmp | VXRT.log | H~ |
Config:LNMDIR | job_*, PD_*, PT_* | HQ+ | |
Config:JSPDIR | JSPLOG, QMGRLOG.*, PJOBLOG.* | Q+S++ | |
LeasePak | $HOME | leasepak_error.log | GS++ |
lxcommand_PID.log | XQ+ | ||
lxbuffer_PID.log | XQ+ | ||
lxproc_PID.log | XQ+ | ||
lpadbdrvr_PID.log | XQ+ |