The caspac command line utility enables you to initialize a PAC before it is started.
Attention: This feature is in Early Adopter Product (EAP) release status. We will continue the development of additional features and
provide additional interfaces via patch updates and future releases. Please contact
Micro Focus SupportLine if you require further clarification.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
Use caspac to specify new binaries to be loaded into a PAC, binaries to be deleted from a PAC, or to list loaded binaries.
Syntax:
caspac -a{action}=object -s{store} [-u{userid}] [-p{password}]
Parameters:
- -a
- Specifies the action to perform and the object it will be performed on.
- action
- Specifies the action to perform and can take one of these values:
- object
- Specifies the object the action is to use and can take one of these object types, a DLL, share object, or PAC name.
Note: The object name is case-sensitive.
- -sstore
- Specifies the store and its connection parameters to use. his is the scale-out repository type and connection parameters to
use. For example:
redis,127.0.0.1:6741
- -u{userid}
- Optional, authorization user ID.
- -p{password}
- Optional, authorization password.
Examples
- The following example loads
acct.dll into the SOR represented by the Redis server located at 127.0.0.1 on port 6741. The
acct.dll can then be deployed to all active enterprise server instances in the PAC using the
New Copy command:
caspac -aLoad="c:\new files\acct.dll" -sredis,127.0.0.1:6741 -uSYSAD -pSYSAD
- The following example loads all files under
c:\new files into the SOR represented by the Redis server located at 127.0.0.1 on port 6741. All programs that were uploaded can be deployed
to all active enterprise server instances in the PAC using a
New Copy command:
caspac -aLoad="c:\new files\*.*" -sredis,127.0.0.1:6741 -uSYSAD -pSYSAD
- The following example removes
acct.dll from the SOR represented by the Redis server located at 127.0.0.1 on port 6741:
caspac -aDelete=acct.dll -sredis,127.0.0.1:6741 -uSYSAD -pSYSAD
- The following example lists user programs that have been uploaded into the SOR:
caspac -aList=* -sredis,127.0.0.1:6741 -uSYSAD -pSYSAD
- The following example initializes the PAC called
MyPAC ready for a cold start. The PAC has a PSOR that uses a Redis server located at 127.0.0.1 on port 6741:
caspac -aInitPac=MyPac -sredis,127.0.0.1:6741 -uSYSAD -pSYSAD