Start here if you are installing LeasePak on your server for the first time. If you have a previous installation of LeasePak, refer to the document LeasePak Server Upgrade and Conversion for procedures to upgrade or update your LeasePak server and convert LeasePak databases.
Review the System Requirements before beginning the installation process to ensure your client computer meets the minimum requirements for LeasePak .
This is the procedure for installing LeasePak on a server where no previous installation of LeasePak exists. If the server has a previous installation, use the procedure described in LeasePak Server Upgrade and Conversion.
/tmp
directory.SETUP
program.
HP
Use the swlist
command to verify that you are running the following version of the
operating system:
Linux
Use the uname -a
command to verify that you are running the following version of the
operating system:
Sun
Use the showrev
command to verify that you are running the following version of the
operating system:
Use direct commands or system administration tools to create the following groups, users, devices, and directories.
Description | Name (example) | Your Name |
---|---|---|
LeasePak users group | msi | |
Oracle DBMS primary installation group | orainv | |
Oracle DBMS secondary installation group | oradba | |
Sybase DBMS installation group | sybase |
Linux users: your primary group must be
the
msi
group for all LeasePak users. By default, Red Hat will create an individual group for each user; you must
either turn this feature off before creating users or later change the primary group of users to the msi
group.
For more information on users not mentioned here (such as LeasePak client users), refer to LeasePak Users.
Description | Name (example) | Group (example) | Your Name | Your Group |
---|---|---|---|---|
Oracle DBMS installation user | oracle | orainv (primary group) oradba (secondary group) | ||
Sybase DBMS installation user | sybase | sybase | ||
LeasePak (MSI) release administrator | msiadm | msi | ||
LeasePak (MSI) database administrator | msidba | msi |
Multiple concurrent versions:
if you are running more than one version of LeasePak on the same server, you must use the appropriate startup files
(such as
.lplogin
and .lpprofile
) with the LeasePak release administrator for the version you are working in.
For this situation, NetSol strongly recommends setting up separate, version-specific LeasePak release administrator users.
Some of the following will already exist within your OS; others you will need to create. Note that many of the DBMS volumes/partitions must be unformatted (raw).
NetSol is integrating Sector7 into our Queue Manager. During this process, you may encounter instances of both
sector7
or s7
and the new qm
in folder and file names.
![]() |
![]() |
![]() |
Your Values | |
---|---|---|---|---|
Mount Point | /SD-CDROM | /mnt/cdrom | /cdrom | |
NetSol recommends that the CD-ROM device be attached directly to the server (not over a network) to avoid problems where the directory paths might be translated into uppercase. |
Examples | Your Values | |
---|---|---|
Name | /home | |
Size | 200 MB minimum | |
The directory is normally standard on the OS. Each LeasePak client user has a directory under
/home on the server. For large numbers of LeasePak users, calculate the size based on average number of different
reports each user will run and whether or not you will regularly truncate or archive each user's leasepak_error.log file. |
Examples/Instructions | Your Values | |
---|---|---|
Name | /tmp | |
Size | 1200 MB minimum |
Examples/Instructions | Your Values | |
---|---|---|
Name | /tmp/qm | |
Owner:Group | root:sys | |
Permissions | 755 | |
The LeasePak setup program creates this directory. |
Examples/Instructions | Your Values | |
---|---|---|
Name | /tmp/qm/ | |
Owner:Group | msiadm:msi | |
Permissions | 777 | |
The LeasePak setup program creates this directory. |
Examples/Instructions | Your Values | |
---|---|---|
Name | swap | |
Size | 40 MB for each concurrent LeasePak
(lpadriver.exe ) connection. | |
Minimum calculation of physical memory * 3 . |
LeasePak server, LeasePak queue manager, and DBMS server program files can reside on the same volume/partition (allow for appropriate space).
![]() |
![]() |
![]() |
Your Values | |
---|---|---|---|---|
File System/Mount Point | /opt/msi/ | /opt/msi/ | /opt/msi/ | |
Owner:Group | msiadm:msi | msiadm:msi | msiadm:msi | |
Permissions | 750 | 750 | 750 | |
Size | 1400 MB minimum | 1400 MB minimum | 1400 MB minimum | |
Physical Location | (separate logical volume) | (separate partition) | (separate volume) | |
(Logical) Volume Name or Device | msiapps | /dev/hdxn, where x is the drive letter and n is the partition number | msiapps | |
Type | file system, use HFS (or VxFS for journaling) | file system, use ext3 | UFS file system, use mkfs to format |
LeasePak server, LeasePak queue manager, and DBMS server program files can reside on the same volume/partition (allow for appropriate space).
![]() |
![]() |
![]() |
Your Values | |
---|---|---|---|---|
File System/Mount Point | /opt/qm | /opt/qm | /opt/qm | |
Owner:Group | msiadm:msi | msiadm:msi | msiadm:msi | |
Permissions | 750 | 750 | 750 | |
Size | 300 MB minimum | 300 MB minimum | 300 MB minimum | |
Physical Location | (separate logical volume) | (separate partition) | (separate volume) | |
(Logical) Volume Name or Device | qmgr | /dev/hdxn, where x is the drive letter and n is the partition number | qmgr | |
Type | file system, use HFS (or VxFS for journaling) | file system, use ext3 | UFS file system, use mkfs to format | |
The LeasePak setup program creates a version-specific directory under
/opt/qm ;
/qm_3_17 for HP, /qm_3_19 for Linux, or /qm_3_17 for Sun. |
LeasePak and queue manager directories:
the top and subdirectories of LeasePak and the queue manager must not include:
LeasePak server, LeasePak queue manager, and DBMS server program files can reside on the same volume/partition (allow for appropriate space). You may have both Oracle and Sybase installed; in this case, note your values for both.
![]() |
![]() |
![]() |
Your Values | |
---|---|---|---|---|
File System/Mount Point | /opt/oracle | /opt/oracle | /opt/oracle | |
Owner:Group | oracle:orainv | oracle:orainv | oracle:orainv | |
Permissions | 755 | 755 | 755 | |
Size | 3.5 GB minimum for /opt/oracle | 3.5 GB minimum for /opt/oracle | 3.5 GB minimum for /opt/oracle | |
Physical Location | Separate logical volume | Separate partition | Separate volume | |
(Logical) Volume Name or Device | oracle | /dev/hdxn, where x is the drive letter and n is the partition number | oracle | |
Type | File system, use HFS | File system, use ext3 | UFS file system, use mkfs to format |
LeasePak server, LeasePak queue manager, and DBMS server program files can reside on the same volume/partition (allow for appropriate space). You may have both Oracle and Sybase installed; in this case, note your values for both.
![]() |
![]() |
![]() |
Your Values | |
---|---|---|---|---|
File System/Mount Point | /opt/sybase | /opt/sybase | /opt/sybase | |
Owner:Group | sybase:sybase | sybase:sybase | sybase:sybase | |
Permissions | 755 | 755 | 755 | |
Size | 2048 MB minimum for /opt/sybase | 2048 MB minimum for /opt/sybase | 2048 MB minimum for /opt/sybase | |
Physical Location | Separate logical volume | Separate partition | Separate volume | |
(Logical) Volume Name or Device | sybase | /dev/hdxn, where x is the drive letter and n is the partition number | sybase | |
Type | File system, use HFS | File system, use ext3 | UFS file system, use mkfs to format |
Use SAM or direct commands to configure the following kernel parameters. After setting the parameters, you must reboot the server to rebuild the kernel.
The parameter values listed are minimum guidelines only. You may need to adjust these values to achieve optimal server performance. If you've already configured the kernel parameters for a previous LeasePak installation, your existing kernel parameters will, in most cases, work.
Description | Minimum Value | Your Value |
---|---|---|
maximum data segment size for a process executing in memory | 0x08000000 hexidecimal bytes |
Description | Minimum Value | Your Value |
---|---|---|
maximum allocated swap space | configured swap space (in megabytes) / 2 * (size of swchunk ) |
Description | Minimum Value | Your Value |
---|---|---|
resource allocation parameter | 4 * average number of concurrent users |
For the following parameters, configure msgseg
, msgmnb
, and msgssz
first,
then set msgmax
.
Description | Minimum Value | Your Value |
---|---|---|
number of message segments available on a single message queue | 4096 segments |
Description | Minimum Value | Your Value |
---|---|---|
maximum size of all messages existing simultaneously on a single message queue | 32768 bytes |
Description | Minimum Value | Your Value |
---|---|---|
message segment size | 8 bytes |
Description | Minimum Value | Your Value |
---|---|---|
maximum size of any single message | 32768 bytes |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of available file locks | 2000 file locks |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of concurrent processes | 20 + (8 * maxusers ) |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of available pseudo ttys | 2 * maximum number of concurrent users |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of available streams-based pseudo ttys | 2 * maximum number of concurrent users |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of processes with pending undo operations on a semaphore |
60 processes |
Description | Minimum Value | Your Value |
---|---|---|
swap chunk size | 2048 kilobytes |
Linux users: RedHat installs My.sql by default, including the executable /usr/bin/isql. Shell scripts naturally find /usr/bin
before finding the correct Sybase path. This will cause errors in any LeasePak shell script using isql
. Allowing a default installation
of My.sql on a LeasePak server is inherently incompatible with the operation of Sybase. NetSol strongly recommmends not installing My.sql
on the LeasePak server. Where My.sql is installed alongside Sybase, users must remove, rename, or relocate /usr/bin/isql
so that LeasePak shell scripts will not find it when searching for the Sybase isql
.
For the user msiadm
(or your equivalent), log in as root
,
then make the following entries to the /etc/sudoers
file so that
msiadm
can properly install LeasePak.
Edit /etc/system
to configure the following kernel parameters.
After setting the parameters, you must reboot the server to rebuild the kernel.
The parameter values listed are minimum guidelines only. You may need to adjust these values to achieve optimal server performance. If you've already configured the kernel parameters for a previous LeasePak installation, your existing kernel parameters will, in most cases, work in the new version.
Description | Minimum Value | Your Value |
---|---|---|
maximum size of any single message | 32768 bytes |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of bytes on a single message queue | 32768 bytes |
Description | Value | |
---|---|---|
enable users to chown their own files |
0 |
Description | Minimum Value | Your Value |
---|---|---|
maximum number of processes with pending undo operations on a semaphore |
60 processes |
The diskette supplied with your LeasePak CD contains one (or both) of the following license files:
lplicense.ora
(Oracle)lplicense.syb
(Sybase)If your diskette contains only one file,
the file
lplicense.dat
, this is actually a Sybase LeasePak license file. You must rename the file to
lplicense.syb
before you begin the installation.
To set up the license file for installation
root
. If you use su
to log
in as root
, use su -
/usr/bin
is included in the root user PATH./tmp
directory. If using FTP, transfer the file(s) in binary mode.SETUP
program.
The SETUP
program prompts the user for various configurations, then sets up the server according to those configuration
and installs the LeasePak server software.
If you have a previous installation of LeasePak on the server and are updating to a new release, you can use one of the following options:
-b
install the new build only (and live will point to the new build)-s7
install the new LeasePak queue manager only-l
(the letter l) install the new license onlyRead through all of the following release configuration questions
before running the
SETUP
program. Note that although the order of the questions is always the same, the numbering of the sections
and the inclusion of certain questions are dynamic and will vary according to your selections. Also note that during the actual SETUP
program,
the questions will be interspersed with output from the program. Use the links following the release configuration questions to view samples of the
SETUP
program output.
1. Server Name
The LeasePak release directory, or $TOPDIR , must end in the LeasePak release version--for example, . When you run SETUP , you must supply the full path of $TOPDIR , but the final component does not need to exist. The recommended path is /opt/msi/ . Only /opt/msi needs to exist prior to installation--SETUP will create the directory if needed.
You must run SETUP as root , and you should not have any environment variables set for any version of LeasePak. Login directly as root or use su - to switch user to root . You may be able to install directly on top of an existing LeasePak installation, but NetSol does not support this as it may result in installation or runtime failures.
|
Name of the LeasePak Application Server [yoursrvr]:
Usually this is the hostname, which in turn is usually the node name. The hostname is available through the hostname command. The node name is available through the uname -n command. They can be different, but NetSol does not guarantee LeasePak to work if they are. For LeasePak, NetSol usually uses uname -n , but may in some cases (particularly when dealing with a network) use hostname instead.
This can also be the cluster name. Some LeasePak sites operate their servers in a cluster, enabling them to perform fail-overs if needed. The disk array is shared between the main server and the backup/fail-over server. Thus, the configuration files in $CFGDIR, which are named with the application server name, no longer match the server during a fail-over. For this reason, if the cluster name is used instead, then users logging on to the fail-over server will find themselves still running the same configuration from the disk array. |
Path of End User Customized Code directory [/opt/msi/cst]:
This should be within the msi software area of the filesystem, but not within a LeasePak release directory (that is, not under $TOPDIR ). NetSol recommends /opt/msi/cst . The directory and path must exist before installation. Whenever a LeasePak build links to the system, the program creates a subdirectory of /opt/msi/cst ($CSTDIR ) with the name of the build's sequence number--for example, 6.00.2142 . Within the build-specific directory, the program creates a cql and prg directory. Within cql , the program creates a directory for each installed DBMS, ora and/or syb . Although each release can have its own $CSTDIR , NetSol recommends having only one.
|
2. Queue Manager
|
Parent of Queue Mgr /qm_3_17 directory [/opt/qm]:
This is the directory that holds the release's LeasePak Queue Manager directories. NetSol recommends /opt/qm . For users already on the OS/DBMS platform architecture introduced in 6.0a, they may already have a Sector7 directory (/opt/sector7 ) in place. NetSol now supports a symbolic link as long as it links to an actual directory. Therefore, you can make /opt/qm as a link pointing to /opt/sector7 . Only this parent directory must exist before installation; SETUP will create the remaining components. If SETUP finds a copy of the Queue Manager package already installed, it removes that installation and replaces it with the shipped package.
|
Install Queue Mgr startup/shutdown in rc1.d/rc3.d? (Y/N) [Y]:
NetSol recommends Y , which causes the program to create the file qmgr_ in /etc/init.d (or /sbin/init.d ) with corresponding links from rc1.d and rc3.d . Each install of the same LeasePak release where the user answers Y to this question overwrites the previous init.d information, even if the user is installing different instances of the same LeasePak release, so that only the queues from the most recent install restart automatically on reboot.
|
3. DBMS configuration
LeasePak runs on two DBMSs; Oracle and Sybase. However, only two of the platforms--Linux and Sun Solaris--support both together. The first two questions in this section only appear if the user is running LeasePak on a Linux or Solaris platform. If you are on a Linux or Solaris platform and answer OS (meaning both DBMSs) to the first question, the SETUP program will then ask you the second question. You can pick either DBMS as the primary one; the $MSIADMIN and $MSIDBA accounts will point to the primary DBMS.
|
DBMS's to support in this release (O=Oracle S=Sybase OS=both):
Running both Oracle and Sybase on the same Solaris server requires extensive amounts of memory. Contact your NetSol representative for more information if you are considering this option. |
Primary DBMS on this server (O=Oracle S=Sybase) [S]:
If you have installed both the Oracle and Sybase DBMS, you must select one to be primary. The $MSIADMIN and $MSIDBA accounts point to the primary DBMS by default.
|
Naming convention (S=strict, L=Loose, N=New strict) (S/L/N) [S]:
If you have an existing installation of LeasePak version 5.0a or below, select L for Loose to use old naming
conventions on existing data and Loose conventions on new data, or select N for New Strict to use old naming conventions on
existing data but Strict conventions on new data. In this case, NetSol recommends selecting N for New Strict.
If you have an existing installation of LeasePak version 5.1a or above, or you are installing LeasePak for the first time, select S to use Strict conventions, select L to use Loose conventions, or select N if you have previously
used Loose conventions but want to switch to Strict for new data. In this case, NetSol recommends selecting S for Strict.
For more information, refer to the Naming Conventions document. |
4. Oracle configuration
The questions in this section only appear if you have selected either Oracle or both Oracle and Sybase as your DBMS. |
Path of Oracle home [/opt/oracle/product/9.2]:
Oracle requires the variable ORACLE_HOME , which represents the location where the Oracle software was installed. This path must exist before running SETUP . NetSol recommends using /opt/oracle/product . Within this directory, you should have a separate directory for each major release of Oracle. In this case, the directory would be 9.2 for 9i, so /opt/oracle/product/9.2 would be the full path.
|
Install Oracle startup/shutdown in rc1.d/rc3.d? (Y/N) [Y]:
NetSol recommends Y , which causes the program to install the file dbora9i in /etc/init.d (or /sbin/init.d ) with corresponding links from rc1.d and rc3.d . SETUP also installs a file named /etc/mccue_oracle_instances , which must contain an assignment to the variable MSI_INSTANCES . This variable should have as its value all of the Oracle instances to be started on the server on reboot. The file dbora9i will not start or stop anything until mccue_oracle_instances is set up. These instances are defined by their ORACLE_SID s. NetSol recommends only one instance--called lpak --for each server.
|
Name of Oracle installation account [oracle]:
This is the user account name used to install Oracle on the server. NetSol recommends oracle . This must already exist prior to running SETUP . Refer to the documents LeasePak Server Preparation and Installation and Oracle Server for more information on this user account and its corresponding groups.
|
Oracle net service name(s) [YOURSRVR_ORACLE]:
These are the names you will need to locate your Oracle instances on the network. These are not instance or service names. These names must be in the file $ORACLE_HOME/network/admin/tnsnames.ora and must have the following format:
YOURSERVER_ORACLE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = yourserver)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = lpak.yourserver.yourcompany.com) ) )The service name is the machine name in the form of a URL and includes the instance name. NetSol recommends that they users use YOURSERVER_ORACLE as the net service name. This is referred to in LeasePak as the 'Oracle server.' Multiple servers can be listed here; the first is the primary server which $MSIADMIN and $MSIDBA will point to by default (if Oracle is your primary DBMS). The Oracle OCI must be able to take this name and resolve it to a machine and port to find the instance you want to use.
|
Oracle default tablespace [users]:
In Oracle, every user is a schema. This means that every user has, in theory, a place in the Oracle database to create database objects. In the case of LeasePak and LeasePak users, however, db_add_login assigns the user to the tablespace you designate here. LeasePak users have no quota on this tablespace, so they cannot create database objects. Instead, they use the objects belonging to the LeasePak logical database owner's schema--what in LeasePak is known as the 'LeasePak database.' NetSol recommends calling the default tablespace users . Usually Oracle creates this tablespace during installation. This tablespace (or the one you choose as the default tablespace) must exist before db_add_login can assign users to it.
|
Oracle NLS_LANG value [American_America.WE8ISO8859P1]:
This determines the locale (language, monetary, and measurement conventions) under which LeasePak runs from the Oracle perspective. American_America.WEISO8859P1 is American English. This corresponds to the ISO-8859-1 character set, which includes the traditional ASCII characters along with additional characters for Latin alphabet-based European languages. This is not the same as the UTF-8, UTF-16, or Unicode character sets--NetSol does not support these. NetSol recommends the following values for servers running in the United States, depending on your platform: HP-UX: en_US.iso88591 Linux: en_US (ASCII character set) Solaris: en_US.ISO8859-1 |
5. Sybase configuration
The questions in this section only appear if you have selected either Sybase or both Oracle and Sybase as your DBMS. |
Path of Sybase directory [/opt/sybase]:
Sybase requires the variable SYBASE , which represents the location where the Sybase software was installed. This path must exist before running SETUP . NetSol recommends using /opt/sybase . The current Sybase releases create version-specific directories under this path as needed, so NetSol strongly recommends that you do not attempt to do this yourself.
|
Install Sybase startup/shutdown in rc1.d/rc3.d? (Y/N) [Y]:
NetSol recommends Y , which causes the program to install the file sybase12.5 in /etc/init.d (or /sbin/init.d ) with corresponding links from rc1.d and rc3.d .
|
Include Sybase backup server in startup/shutdown? (Y/N) [Y]:
NetSol recommends that the user configure a Sybase backup server. If you have configured this, NetSol recommends answering Y , which includes the backup server in the /etc/init.d (or /sbin/init.d ) configuration.
|
Sybase Data Server name(s) [YOURSRVR_SYBASE]:
This is a list of dataservers that the user wants for LeasePak databases. All dataservers must all be in the interfaces file in $SYBASE . NetSol recommends that the dataserver name be YOURSERVER_SYBASE . The first dataserver in the list is set as the primary dataserver which $MSIADMIN and $MSIDBA will point to by default (if Sybase is your primary DBMS), and LeasePak refers to this one as 'the server.'
|
Sybase Backup Server name [YOURSRVR_BACKUP]:
You will only see this question if your answer to Include Sybase backup server in startup/shutdown? is Y . NetSol recommends that you use YOURSERVER_BACKUP as the backup server name.
|
Automatically create Sybase database owner names? (Y/N) [Y]:
NetSol recommends Y , which directs the LeasePak server to create a DBO for each database using the same name as the database itself. This allows LeasePak to treat the two DBMSs (Oracle and Sybase) identically as far as the security model is concerned.
|
6. Required Leasepak & DBMS roles
|
DBMS server administrator name [srvadm]:
Each DBMS has a user who has sufficient privileges to do the three things needed for LeasePak: create new user accounts, allocate space for LeasePak logical databases, and deallocate LeasePak logical databases. NetSol recommends this user name be srvadm and that there be only one for each server. The user never uses this role directly for LeasePak operations or processing. If you have installed both Oracle and Sybase, the LeasePak server will use same name and the same password. This name cannot be an actual UNIX account name, and you cannot use this name as a database owner. This name cannot take on the privileges it grants to database owners, so cannot actually use a LeasePak logical database.
|
MSI Admin login name [msiadm]:
NetSol strongly recommends that you set up a new $MSIADMIN account for each LeasePak release. This account should never use a LeasePak database or run programs in LeasePak. Instead, this account exists to administer UNIX tasks on the LeasePak server. NetSol recommends using msiadm . If you choose a different value, NetSol recommends that it include the release number. In LeasePak documentation, this account is designated as either msiadmin or $MSIADMIN .
|
MSI DBA login name [msidba]:
NetSol strongly recommends that you set up a new $MSIDBA account for each LeasePak release. This account should never use a LeasePak database or run programs in LeasePak. Instead, this account exists to administer DBMS tasks on the LeasePak server. NetSol recommends using msidba . If you choose a different value, NetSol recommends that it include the release number. In LeasePak documentation, this account is designated as either msidba or $MSIDBA .
|
MSI group name [msi]:
All LeasePak users, including the special $MSIADMIN and $MSIDBA users, must have as their primary group the one specified here. When setting up users on the Linux platform, take special care that LeasePak users have this group as their primary group, as Linux will assign each user to its own individual group by default. NetSol recommends using the name msi for this group.
|
7. Leasepakd daemon configuration
LeasePak uses two inet-managed 'listener' daemons in addition to those used by the DBMSs. One is leasepakd , used by the traditional LeasePak interface. The other is mpowerd , used by the user-configurable, Web-service interfaces such as ChannelIT, which is part of the mPower Web-based technology platform.
|
TCP port assignment for leasepakd inet daemon [6000]:
The leasepakd daemon setup is mandatory, and it requires a dedicated port on the server. NetSol normally uses the LeasePak release version number to determine the port number. In this case, corresponds to port 6000. NetSol recommends this numbering method but it is not required. If SETUP finds an identical daemon configured in the inetd configuration, it replaces the configured daemon with a new one. Otherwise it creates a new one and insists that the configuration be given a non-conflicting port number. The service name is leasepakd_leasepak_version_port . If the default number or the number that you choose is already in use, pick a higher number.
|
Max bad logins before lockout (0=disabled) [0]:
This is the maximum number of failed logon attempts that LeasePak will allow before locking a user out. For example, if you set this to 3 , LeasePak will allow the user to mistype the logon (the user name, password, or both) 3 times. If the user correctly types the logon on the fourth attempt, no lockout occurs. But if the user again mistypes the logon on the fourth attempt, LeasePak locks the user out. Set this to 0 to disable this feature, meaning no user will every be locked out, regardless of the number of failed attempts. To see a server-side procedure for unlocking an account, refer to the Housekeeping section of the System Administration Guide document LeasePak Server Configuration and Maintenance.
|
Install LeasePak TCP port in inet configuration? (Y/N) [Y]:
Answer Y unless you are testing the installation process (and do not intend to use the Leasepak resulting from the installation). If you do not install the TCP port in the inet configuration, LeasePak will not function. For HP-UX and Solaris, SETUP makes an entry in /etc/services and in /etc/inetd.conf . For Linux, SETUP creates a file in /etc/xinetd.d using the service name.
|
8. mPowerd daemon configuration
|
Install mPowerd daemon (Y/N) [N]:
If your license includes the ChannelIT module, you must answer Y . If you answer N , you will not see the remaining questions in this section.
|
TCP port assignment for mPowerd inet daemon [6006]:
If your license includes the ChannelIT module, the mpowerd daemon setup is mandatory, and it requires a dedicated port on the server. NetSol normally uses the LeasePak release version number to determine the port number. In this case, corresponds to port 6006, by convention 6 more than the leasepakd port number. NetSol recommends this numbering method but it is not required. If SETUP finds an identical daemon configured in the inetd configuration, it replaces the configured daemon with a new one. Otherwise it creates a new one and insists that the configuration be given a non-conflicting port number. The service name is mpowerd_leasepak_version_port . If the default number or the number that you choose is already in use, pick a higher number.
|
Max bad logins before lockout (0=disabled) [0]:
This is the maximum number of failed logon attempts that ChannelIT will allow before locking a user out. For example, if you set this to 3 , ChannelIT will allow the user to mistype the logon (the user name, password, or both) 3 times. If the user correctly types the logon on the fourth attempt, no lockout occurs. But if the user again mistypes the logon on the fourth attempt, ChannelIT locks the user out. Set this to 0 to disable this feature, meaning no user will every be locked out, regardless of the number of failed attempts. To see a server-side procedure for unlocking an account, refer to the Housekeeping section of the System Administration Guide document LeasePak Server Configuration and Maintenance.
|
Install mPower TCP port in inet configuration? (Y/N) [Y]:
Answer Y unless you are testing the installation process (and do not intend to use the ChannelIT resulting from the installation). If you do not install the TCP port in the inet configuration, ChannelIT will not function. For HP-UX and Solaris, SETUP makes an entry in /etc/services and in /etc/inetd.conf . For Linux, SETUP creates a file in /etc/xinetd.d using the service name.
|
The following are SETUP
outputs showing samples with both Oracle and Sybase configurations. Both are text documents that open in new windows.
To run the SETUP
program
root
. If you use su
to log
in as root
, use su -
/usr/bin
is included in the root user PATH.cd-rom_device/setup release_directory
where cd-rom_device is the full path of your CD-ROM device and release_directory is the full path of your LeasePak release directory.
HP only: both the cd-rom device
path and
SETUP
must be uppercase; for example, /SD_CDROM/SETUP
, but remainder of the command
line, including the release directory, must be in lower case.
Press Enter to start the program.
Oracle users: if you are able to create the
srvadm
account during
SETUP, yet receive failed login/bad password messages when you attempt to log on, check the following parameter in the init.ora file:
REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE
The setup program creates an administrative environment, either adm_ora
or adm_syb
(or both, if applicable),
and copies the the files .lplogin
and .lpprofile
to the home directories of
msiadm
and msidba
. These adm_*
environments are do not contain a database, but do contain the
necessary environmental variables to enable access to the DBMS.
Do not create a LeasePak database in the
administrative environment. Refer to the document LeasePak Server
Configuration to create at least one environment and database for use with LeasePak.
The users msiadm
and msidba
can no longer use change_env
to change their own
environments (or each other's). All scripts requiring a
specified environment include the environment name as an argument on the command line; you do not need to change the environment of
msiadm
or msidba
. To perform tasks that do require a user to be within a specific environment (such as End of
Period or LeasePak utilities), NetSol strongly recommends creating a LeasePak supervisor user, by convention referred to as
lpsuper
. You can create a different lpsuper
user for each environment (this avoids having to use
change_env
), or log on the server as msiadm
and use change_env
to switch lpsuper
from
one environment to another. For more information on lpsuper
, refer to the
LeasePak Supervisor User section in
LeasePak Server Configuration and Maintenance.
Use setup_new_env to create new production, test, and visitor environments.
The following are the two most common examples of using setup_new_env
:
Production Environments
setup_new_env env-name db-type db-server db-namewhere env-name is the environment the new database will be associated with, db-type is either
ora
for Oracle orsyb
for Sybase, db-server is the the DBMS server, and db-name is the database name.
Test Environments
setup_new_env -tl env-name db-type db-server db-name build-descriptor(the options are the letters t and l for test environments), where build-descriptor is either
live
,host
, or an actual build numberbldn.nn.nnnn
(for example,bld.0000
).
Multiple concurrent versions: if you have more than one version of LeasePak installed on the same server, note that database names must be unique for the entire server, not just the individual versions of LeasePak.
Note the following values for running setup_new_env
:
Description | Example | Your Value | Notes |
---|---|---|---|
env-name (environment name) |
Must be unique for the specific LeasePak installation. | ||
db-type (database type) |
(database-specific) | ora for Oracle or syb for Sybase. |
|
db-server (database server name) |
(database-specific) | ||
db-name (database name) |
(database-specific) | Database names must be unique for the specific LeasePak installation and comply with your selected type of naming conventions. For more information on naming conventions, refer to Naming Conventions. | |
host-env (host environment) |
For visitor environments only. | ||
build-descriptor | For test and visitor environments only. |
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to the System Requirements for more information.
setup_new_env
(opens in a new window).
2007-07-25 11:42:11 setup_new_env: PRODUCTION doctest ora HUMMER_ORACLE lpr_doctest live; Start 2007-07-25 11:42:12 setup_new_env: Creating environment directory structure... 2007-07-25 11:42:19 setup_new_env: Creating logdb.*... 2007-07-25 11:42:46 setup_new_env: Creating envdb.msirc... 2007-07-25 11:42:52 setup_new_env: Creating msidba placeholder ... 2007-07-25 11:42:52 setup_new_env: Creating .lp*... 2007-07-25 11:42:56 setup_new_env: Setting environment security... You will need the following for Leasepak PC Client setup: IP Address or name: hummer Environment name: doctest Server Port: 6011 2007-07-25 11:42:58 setup_new_env: End
Use db_create to create a new LeasePak database for a particular environment.
Do not create a database in the administrative environment
(
adm_ora
or adm_syb
).
The following is the most common example of using db_create
:
db_create env-name
where env-name is the environment the new database will be associated with. You will be prompted for the
srvadm
password and, if necessary, the dbo
password.
Sybase only: for more information on
dbo
names and passwords,
refer to the Database Owner section of Sybase 12.x Server.
msidba
Terminal emulation: you must use one of the supported terminal types. Refer to the System Requirements for more information.
setup_new_env
(opens in a new window).
Oracle users: db_create
will display a list of storage segments with available space. For example:
2007-07-25 11:51:01 db_setup_phys: Set up physical storage description for (doctest)lpr_doctest Storage segments with available space: LPCOMMON
The script will prompt you for the segment name and database size:
[<RET>/Q/q]=quit [R/r]=redisplay list [V/v]=view physdb.msirc Enter Segment name from list above: Enter # MBs required from segment:
Type a value for the segment and press Enter. Specify sizes in megabytes. In most cases, LeasePak requires approximately 60 K for each lease, plus an additional 30% for log files (this percentage will decrease for larger databases).
The script will then proceed to build the database.
Sybase users: db_create
will display a list of storage segments with available space. For example:
2007-07-25 13:10:06 db_setup_phys: Set up physical storage description for (doctest)lpr_doctest Storage segments with available space: msi_log01 1145 msi_data04 3245 msi_log02 3210 msi_data05 3420 msi_log03 3210 msi_data06 3919 msi_data01 470 msi_data07 3720 msi_data02 2126 msi_data08 3520 msi_data03 3620 msi_data09 3520
The script will prompt you to specifiy a data segment and a log segment:
[<RET>/Q/q]=quit [R/r]=redisplay list [V/v]=view physdb.msirc Enter Segment name from list above: Enter # MBs required from segment: Segment type: 'D[ATA]' or 'L[OG]':
You will need to repeat this process twice--once for the data ('D') segment and once for the log ('L') segment.
Type values for the data and log segments and press Enter. Specify sizes in megabytes. For the data segment, LeasePak usually requires approximately 60 K for each lease. The size of the log segment should be approximately 30% of the data segment (this percentage will decrease for larger databases).
Use different devices for the data and log segments. Do not create data or log segments on any device used by the DBMS for its system databases, schemas, or tables.
The script will then proceed to build the database.
Sybase only: the script creates a database with
the "truncate log on checkpoint" option enabled. This will clean transaction logs generated each time an automatic checkpoint is
performed. For production databases, disable the Sybase "truncate log on checkpoint" option so that the entire transaction log is
available for recovery in the event of a system failure between full backups. You can always manually clean out the transaction log as
needed. Refer to your Sybase documentation for more information or contact your NetSol representative.
After creating a new database, you will need to either load your data--or at the very least the seed
dataset--prior to using the database in LeasePak.
To load data:
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to the System Requirements for more information.
db_restore environment-name dataset [dbo-password]where environment-name is the environment of the database you are loading and dataset is the name of the dataset to use. You can either enter the
dbo
password on the command line or wait for the script to prompt you for it.
Running
db_restore
clears all existing data from the database and replaces it with the dataset.
For information on LeasePak OS and DBMS server roles and other types of users (such as mPower users), refer to LeasePak Roles and Users.
During installation, the SETUP
script, with user input, creates the release administrator
($MSIADMIN
, by default msiadm
) and database administrator
($MSIDBA
, by default msidba
) accounts.
For most LeasePak administrative scripts
(such as setup_new_env
, upgrade_env
, db_create
, db_snapshot
, and db_restore
),
you will need to log on the LeasePak server as either the $MSIADMIN
or $MSIDBA
user, depending on the script.
Environment-related and general housekeeping scripts usually require the $MSIADMIN
user, while database-related scripts usually
require the $MSIDBA
user.
These are highly specialized accounts. Their environment variables should always point to the administrative environment
(
adm_ora
and/or adm_syb
) where SETUP
initially placed them.
Do not change the environment for either of these accounts or set either of them up as LeasePak users.
The steps for setting up the types of users listed below are detailed in Account Setup Steps.
For each environment you create within your LeasePak installation, NetSol recommends that you have a separate administrative user.
You will need at least one user of this type, even if you decide to share it among environments.
This is a user that can log on the LeasePak client, server, and DBMS to perform advanced LeasePak operational tasks such as
End of Period administration, submission of LeasePak batch jobs, tasks within LeasePak Utilities, and user security through Security [U0706].
NetSol refers to this user as the LeasePak supervisor user, by convention
lpsuper_env-name
, where env-name is the name of the environment.
The following are the basic steps for setting up this type of user:
lpsuper
can change this client string
(and the translated passwords with it) later through the LeasePak client Change Password function.
msi
), and the password must be the translated OS server password.
.lplogin
and .lpprofile
files from the appropriate environment's
$top/env/env-name/etc
directory to the user's home directory.
.login
and .profile
files to include .lplogin
and .lpprofile
,
or use the sample.login
and sample.profile
files located in the $top/env/env-name/lib
directory.
Do not use LeasePak Utility 108 Add user security record to add any user to the LeasePak security table other than the LeasePak administrative user. LeasePak Utility 108 provides no control in how the user is added to LeasePak security, and the LeasePak administrative user must still log on the LeasePak client in order to correctly configure other users' security settings.
This is a typical user that logs on the LeasePak client, does not have direct sever logon privileges,
and has access to various updates and reports as set by a supervisor user (lpsuper
)
through LeasePak Security [U0706]. The following are the basic steps for setting up this type of user:
lpsuper
can change this client string
(and the translated passwords with it) later through the LeasePak client Change Password function.
msi
), and the password must be the translated OS server password.
This is a specialized user that logs on the LeasePak client, does not have direct sever logon privileges,
and has access to reports only. A supervisor user (lpsuper
)
can further restrict sets which reports the report user has access to by using LeasePak Security [U0706].
The following are the basic steps for setting up this type of user:
lpsuper
can change this client string
(and the translated passwords with it) later through the LeasePak client Change Password function.
msi
), and the password must be the translated OS server password.
This is a specialized user that logs on the LeasePak client, either through the LeasePak client software or through a separate origination tool, does not have direct sever logon privileges, and only has access to Application [U08], Lessee [U0203], and other updates and reports related to origination. The following are the basic steps for setting up this type of user:
lpsuper
can change this client string
(and the translated passwords with it) later through the LeasePak client Change Password function.
msi
), and the password must be the translated OS server password.
Select an initial password that the user will type to log on the LeasePak client. This is known as the client string or client string password. This password must be between 6 and 8 characters in length and conform to your company's password policies, which you can specify in LeasePak using Custom General [U0712]: Miscellaneous Customizations (refer to the LeasePak Reference Guide for more information on this update).
Use LeasePak Utility 112 Unix and SQL Server password translation to translate the client string into the OS and DBMS server passwords:
$MSIADMIN
or the LeasePak supervisor user (for the very first time, you may need to
log on as $MSIADMIN
).
Terminal emulation: you must use one of the supported terminal types. Refer to the System Requirements for more information.
0 Exit 108 Add user security record 109 Dump contents of linked-in maps 111 Copy the batch payment and PAP files into LeasePak 112 Unix and SQL Server password translation 200 Lock/unlock updates 207 DAS update 212 Change key utility (change port/comp/regn/offc)(and so on). Type 112 and press Enter. The terminal will display:
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)?
Type y and press Enter.
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:
Type the selected client string (6-8 characters in length) and press Enter. If you type password as the client string, the terminal will display
Client string: password SQL Server string: rkqcguh4 Unix string: rrchglt1
NetSol does not recommend using the word "password" as an actual client string.
Enter the Client string, <RETURN> to exit:
Press Enter to exit the utility.
Refer to LeasePak Roles and Users for more information on password translation.
Follow the appropriate instructions for your OS platform to add a LeasePak user account with the translated password.
Make the LeasePak group msi
the primary group for the user, and ensure that the user can write to the $HOME
directory.
If you assign a user's UID number manually, do not use a number greater than 32757. Contact your NetSol representative for more information.
Every LeasePak environment includes two hidden files, .lplogin
and .lpprofile
, located in the
$top/env/env-name/etc
directory, where env-name is the name of the LeasePak environment.
The file .lplogin is a C shell startup file and .lpprofile is a Korn/Bourne/HP-UX Posix shell startup file. You must include these files
in the appropriate startup files of any user that needs to log directly on the server to perform LeasePak and LeasePak-related tasks.
NetSol provides two sample startup files containing the .lplogin
and .lpprofile
information,
sample.login
(for C shell users) and sample.profile
(for Korn/Bourne/HP-UX Posix shell users),
located in the $top/env/env-name/lib
directory, where env-name is the particular LeasePak environment.
To use the sample files:
root
.
Terminal emulation: you must use one of the supported terminal types. Refer to System Requirements for more information.
sample.login
from $top/env/env-name/lib
(where env-name is the particular LeasePak environment) to the user's home directory.
########################################### # MSI Sample .login file ########################################### # Source users .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
Insert any startup information needed for your particular server into the beginning of the file. Leave everything from the comment
# Source users .lplogin file to set up LEASEPAK/UX environment
to the end of the file in place.
sample.profile
from $top/env/env-name/lib
(where env-name is the particular LeasePak environment) to the user's home directory.
########################################### # MSI Sample .profile file ########################################### # 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
Insert any startup information needed for your particular server into the beginning of the file. Leave everything from the comment
# Source user's .lpprofile file to set up LEASEPAK/UX environment
to the end of the file in place
mv sample.login .login mv sample.profile .profile
.lplogin
and .lpprofile
files from $top/env/environment/lib
(where environment is the particular LeasePak environment) to the user's home directory.
User : user_name LeasePak version : Environment name : environment Environment type : (production, test, or visitor) Database name : lpr_database Database vendor : (Oracle or Sybase) Database server : database_server_name Database home : (usually /opt/oracle or /opt/sybase) Designated build : live Executable directory is a : link to build directory You will need the following for LeasePak PC Client setup: IP Address or name : server_name Server Port :
Use the values for IP Address or name
, Environment name
, and Server Port
to configure the
LeasePak client for connection to this particular environment.
NetSol recommends setting up both the .lplogin
and .lpprofile
files, regardless of which shell is normally in use.
The following scripts are useful for the administration of users with direct server logon privileges.
$MSIADMIN
can use change_env to change another user's settings from one environment to another.
$MSIADMIN
cannot use change_env
to change its own settings or the settings of $MSIDBA
.
change_env
, log on the server as $MSIADMIN
:
change_env [username version env-name modes]where username is the user whose environment you wish to change, version is the version to change to (or type the current version), env-name is the environment to change to (or type the current environment), and modes is the mode (read, write, execute for owner, group, world) number to apply to the
.lp*
files copied to the user's home directory. NetSol recommends a mode of either 640 (owner writable) or 660 (owner and
group writable). After change_env
, the user must exit and log back on for the changes to take effect.
whatami
,
log on the server as a user with direct server logon privileges and run:
whatamiThe terminal will display something similar to the following:
User : user_name LeasePak version : Environment name : environment Environment type : (production, test, or visitor) Database name : lpr_database Database vendor : (Oracle or Sybase) Database server : database_server_name Database home : (usually /opt/oracle or /opt/sybase) Designated build : live Executable directory is a : link to build directory You will need the following for LeasePak PC Client setup: IP Address or name : server_name Server Port :
Use the LeasePak script db_add_login to create an account on your DBMS server:
To use db_add_login
, log on the server as $MSIDBA
:
db_add_login dbms-type new-login-name [new-login-password [srvadm-password]]
where dbms-type is either ora
for Oracle or syb
for Sybase, new-login-name is the same user name
as the server account, new-login-password is the corresponding translated password, and srvadm-password is the password
for the srvadm
user.
Use the LeasePak script db_add_user to add a user to a specific LeasePak environment and database.
To use db_add_user
, log on the server as $MSIDBA
:
db_add_user environment-name legal-DBMS-user msi-access-group dbo-password
where environment-name is the specific LeasePak environment, legal-DBMS-user is the user's DBMS account user name,
msi-access-group is either msi
for normal read/write permissions or msir
for read-only permissions, and
dbo-password is the password for the dbo
of the specific database (as specified during db_create
).
Do not use LeasePak Utility 108 Add user security record to add any user to the LeasePak security table other than the LeasePak administrative user. The LeasePak Utility 108 function provides no control in how the user is added to LeasePak security, and the LeasePak administrative user must still log on the LeasePak client in order to correctly configure a other users' security records.
To user LeasePak Utility 108:
lpsuper_env-name
)
Terminal emulation: you must use one of the supported terminal types. Refer to the System Requirements for more information.
0 Exit 108 Add user security record 109 Dump contents of linked-in maps 111 Copy the batch payment and PAP files into LeasePak 112 Unix and SQL Server password translation 200 Lock/unlock updates 207 DAS update 212 Change key utility (change port/comp/regn/offc)(and so on). Type 108 and press Enter. The terminal will display:
This Utility option is an MSI 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)?
Client Password?
Password?
Enter username, <RETURN> to exit:
Enter user initials:User initials are three characters and must be unique within the specific LeasePak database. Type the initials and press Enter to complete the update.
This section details a few items from Security [U0706] related to setting up the various types of user accounts. Refer to the LeasePak Reference Guide for the full documentation.
NetSol is integrating Sector7 into our Queue Manager. During this process, you may encounter instances of both
sector7
or s7
and the new qm
in folder and file names.
Configure the LeasePak queue manager parameters in the file Config
(the file name begins with an uppercase
C). You can find this file in /opt/qm/qm_3_version/library
(or your equivalent), where version is the version of the queue manager appropriate for your platform.
The queue manager directories must not
include hidden directories--that is, directories that begin with a dot or period (.),
directory names containing a dot or period, directory names containing uppercase letters, or directories that cross physical drives or
mount points.
To edit Config
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to System Requirements for more information.
dcl -n /opt/qm/qm_3_version/com/stop_qmgr.com
/opt/qm/qm_3_version/library/Config
(the file name begins with an uppercase C). Locate and edit the following parametersThe Queue Manager uses two (2) shared memory segments. One is for storing the device mapping and assignment information, the other for additional process tables. The size of these segments depends on two parameters; Config:MAXJOB and Config:MAXDEV. Currently, each process entry is 584 bytes, and each device entry 220 bytes. Basic math show that if you allow 200 users, you would need to be able to allocate 200 * 582 (116400 / 1024 = 113K) bytes of shared memory for the process table. Similarly, for 250 devices you would need 250 * 220 (55000 / 1024 = 53K) bytes for the device table. This is normally well within the limits for shared memory access. The Unix key for accessing the shared memory segments (and all other Unix resources) is governed by the Config:SYSTEM. Normally this will be set to decimal 30000 (0x7530). This will tell Unix to use key 0x7530 for the process table and SYSTEM+1 (0x7531) for the device table. The shared memory and all other resources can be seen by executing an 'ipcs -a'.
/opt/qm/qm_3_version/bin
/opt/qm/qm_3_version/a
/opt/qm/qm_3_version/bin
/opt/qm/qm_3_version/library
/opt/qm/qm_3_version/message
/tmp/qm/
/tmp/qm/
/tmp/qm/
/tmp/qm/
/opt/qm/qm_3_version/spool
/opt/qm/qm_3_version/bin
LeasePak primarily uses batch queues during End of Period processing. Configure batch queues in the file
start_queues.com
, located in
/opt/qm/qm_3_version/com
. LeasePak requires configuration of
sys$batch
. NetSol recommends setting up a separate batch queue for each portfolio, as each portfolio should use
a different queue for its End of Period processing.
To edit start_queues.com
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to System Requirements for more information.
dcl -n /opt/qm/qm_3_version/com/stop_qmgr.com
/opt/qm/qm_3_version/com/start_queues.com
$ if P1 .eqs. "" then P1 = 1 $ init/que/start/job_limit='P1'/batch sys$batch $ init/que/start/job_limit='P1'/batch lp$eop1 $ init/que/start/job_limit='P1'/batch lp$eop2 $ wait 5 $ init/que/start/job_limit='P1'/batch lp$eop3 $ init/que/start/job_limit='P1'/batch lp$eop4
start
parameter for queues to be ready to run jobs.batch
lp$eopn
, where n is the portfolio number. Conventional
name for a portfolio's End of Period batch queue.wait n
, where n is the number of seconds to
wait. Insert a wait
command after every three init/que
commands to ensure that all
queues are initialized by the time start_queues.com
is finished.If you are using this section to perform additional queue manager configurations--that is, you have already
completed the required configurations for LeasePak, you can now restart the queues. As msiadmin
, use the
following two commands to first start the queue manager, then start the queues
dcl -n /opt/qm/qm_3_version/com/start_qmgr.com
dcl -n /opt/qm/qm_3_version/com/start_queues.com
Your printer must be able to print 132-column output in order to print LeasePak reports.
When a user prints a report in LeasePak, the queue manager directs the print job to an emulated VMS-style printer queue, then maps the
printing instructions to a Unix/Linux lp
command, so that the Unix/Linux print spooler handles the actual
printing.
The queue manager directories must not include
hidden directories--that is, directories that begin with a dot or period (.), directory names containing a dot or period,
directory names containing uppercase letters, or directories that cross physical drives or mount points.
To set up the printer, first define the printer on your server OS, then use the DEVINIT
,
Config
, and start_queues.com
files to define the printer in the queue manager.
LeasePak printer names must contain only lowercase letters (a-z) or numbers (0-9). Do not use an underscore ( _ ) in the name. In
the following examples, assume there is a printer on the third floor of your office you will name 3fp
.
Install the printer according to the manufacturer's instructions and connect it to the server, by either a direct (parallel or serial)
or network connection. Logged on the server as root
, define the printer using an administrative tool or direct
commands. Verify that the system is ready to accept new print requests, the print queue is enabled, and the spooler is running,
then test the printer
lp -d3fp file
where the -d
option specifies the destination (name of printer) and
file is any text file (with directory path if necessary).
The DEVINIT
file defines VMS-style pseudo-devices for disks, printers, magnetic tape,
and null devices. The file name is all uppercase.
To edit DEVINIT
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to the System Requirements for more information.
dcl -n /opt/qm/qm_3_version/com/stop_qmgr.com
/opt/qm/qm_3_version/library/DEVINIT
DUA0: / DK 512 NL: /dev/null NL 10240 LP: /dev/lp LP 512 LP3FP: /dev/null LP 512 LP3FPL: /dev/null LP 512 LPBH: /dev/null LP 512 LPSP: /dev/null LP 512
LP
),
there are usually two listings--one for portrait printing and one for landscape. Pseudo-device names are always all uppercase and
must be unique. The queue manager requires the entries for DUA0 (the disk device) and NL (the null device), and LeasePak requires an entry
for the paperless print queue (LPBH
). The above example includes entries for the sample printer
3fp
, LP3FP
(portrait) and LP3FPL
(landscape)./dev/null
.DK
LP
MD
NL
The Config file contains the parameters the queue manager uses to map printers to their corresponding Unix/Linux lp
commands.
To edit Config
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to System Requirements for more information.
dcl -n /opt/qm/qm_3_version/com/stop_qmgr.com
/opt/qm/qm_3_version/library/DEVINIT
.
Locate the listings for the queue manager printer devices and their corresponding Unix/Linux commands by searching for the pattern
LP
. The required options for these listings will vary depending on your type of printer and which drivers you
have installed.
This is an example using an HP LaserJet printer with HP JetDirect
LP3FP: /usr/bin/lp -d3fp -odouble -otl66 -oc -c -s 2>>/tmp/qm//LP3FP_ERR < %s LP3FPL: /usr/bin/lp -d3fp -odouble -olandscape -ofp12.5 -otl46 -c -s 2>>/tmp/qm//LP3FPL_ERR < %s LPSP: /usr/bin/lp -dsysprint -s 2>>/tmp/qm/SYSPRINT_ERR < %s LPBH: :
This is an example using Postscript
LP3FP: /usr/bin/a2ps -P 3fp --columns=1 --rows=1 --portrait --chars-per-line=132 --major=rows -SDuplex:false -B --borders=no --medium=Letter 2>>/tmp/qm//LP3FP_ERR < %s LP3FPL: /usr/bin/a2ps -P 3fp --columns=1 --rows=1 --landscape --chars-per-line=132 --major=rows -SDuplex:false -B --borders=no --medium=Letter 2>>/tmp/qm//LP3FPL_ERR < %s LPSP: /usr/bin/a2ps -P sysprint 2>>/tmp/qm/SYSPRINT_ERR < %s LPBH: :
The syntax for mapping a normal printer device is
S7DEVICE: command printer_name options error_output < %s
The syntax for mapping the paperless queue device is
LPBH:
Copy the pseudo-device names exactly from the DEVINIT file. If the printer has both portrait and landscape devices, create two configurations--one for portrait printing and another for landscape printing. Use whatever print command options are necessary to produce 132-column output with your particular printer(s). One of the print command options must specify that the spooler make a copy of the file to be printed. This ensures all files will be printed, particularly in the case where the user is running many reports of the same type, such as multiple Lease Inquiry [R0905] reports. If needed, contact your NetSol representative for assistance with mapping your printers.
This file, located in /opt/qm/qm_3_version/com
, contains the commands
for initializing the printer queues as well as the batch queues.
To edit start_queues.com
msiadmin
Terminal emulation: you must use one of the supported terminal types. Refer to System Requirements for more information.
dcl -n /opt/qm/qm_3_version/com/stop_qmgr.com
/opt/qm/qm_3_version/com/start_queues.com
.
The first section of the file contains the initializations for portrait and landscape documents
$ 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=46 - /margin=(Bottom=6,Top=6, Left=10, Right=10) - /stock=default - /truncate - /width=132
Do not alter the parameters in this section. Contact your NetSol representative for more information.
Farther down the file, you will find the printer queue initializations
$ init/que/start/form=default/on=LP3FP: sys$print $ init/que/start/form=landscape/on=LP3FPL: csl$print $ init/que/start/form=default/on=LPBH: sys$blackhole $ wait 5
start
parameter for queues to be ready to run jobs.form=default
. For a landscape printer device (such as the example
LP3FPL), use form=landscape
.wait n
, where n is the number of seconds to
wait. Insert a wait
command after every three init/que
commands to ensure that all
queues are initialized by the time start_queues.com
is finished.If you are using this section to perform additional queue manager configurations--that is, you have already
completed the required configurations for LeasePak, you can now restart the queues. As msiadmin
, use the
following two commands to first start the queue manager, then start the queues
dcl -n /opt/qm/qm_3_version/com/start_qmgr.com
dcl -n /opt/qm/qm_3_version/com/start_queues.com
Use the /ver
option with lpadriver.exe
to obtain registration codes for dx Generation (automated document
generation) and Print Spy, FormPak (obsolete), EOP Monitor, and LeasePak EC.
$uexe/lpadriver.exe /ver LEASEPAK UX Copyright (c) 1995 - by NetSol Technologies Incorporated ------------------------------------------------------------ Version : - Build date : 15-Aug- 00:18 Client name : LeasePak Development Client code : V5 User License : 99999 Report License : 99999 Partial License: 99999 Registration Codes ------------------------------------------------------------ dx Generation : SER-0541-ZZZ-P92ERR Print Spy : SER-0541-ZZZ-P92ERR FormPak : SER-0541-ZZZ-FE2O3 Eop Monitor : SER-0541-ZZZ-SO2 LeasePak EC : SER-0541-ZZZ-AL2O3
LeasePak Documentation Suite
©
by NetSol Technologies Inc. All rights reserved.
The information contained in this document is the property of NetSol Technologies Inc. Use of the i= nformation contained herein is restricted. Conditions of use are subject to change without notice. NetSol Technologies Inc. assumes no liability for any inaccuracy that may appear in this document; the contents of this document do not constitute a promise or warranty. The software described in this document is furnished under license and may be used or copied only in accordance with the terms of said license. Unauthorized use, alteration, or reproduction of this document without the written consent of NetSol Technologies Inc. is prohibited.
This message should disappear within 5-15 seconds, depending on the size of the document and the speed of your connection to the Documentation Suite.
If you can still see this message after 20 seconds, try clicking the Refresh or Reload button on your Web browser.
If your document still does not load, refer to Document Load Troubleshooting for instructions on how to fix possible problems with either your Documentation Suite installation or Web browser setup.
If you do not have read access to the parent docsuite directory, you will not be able to load the Document Load Troubleshooting document. In this case, contact your network administrator for assistance.