dmloadcf
-parse a DMCONFIG
file and load binary BDMCONFIG
configuration file
dmloadcf [-c] [-n] [-y] [-b
blocks
] {
dmconfig_file
| - }
dmloadcf
reads a file or the standard input that is in DMCONFIG
syntax, checks the syntax, and optionally loads a binary BDMCONFIG
configuration file. The BDMCONFIG
environment variable points to the path name of the BDMCONFIG
file where the information should be stored.
dmloadcf
prints an error message if it finds any required section of the DMCONFIG
file missing. If a syntax error is found while parsing the input file, dmloadcf
exits without performing any updates to the BDMCONFIG
file.
dmloadcf
requires the existence of the $TUXDIR/udataobj/DMTYPE
file. This file defines the valid domain types. If this file does not exist, dmloadcf
exits without performing any updates to the BDMCONFIG
file.
The effective user identifier of the person running dmloadcf
must match the UID
in the RESOURCES
section of the TUXCONFIG
file.
The -c
option to dmloadcf
causes the program to print minimum IPC resources needed for each local domain (gateway group) in this configuration. The BDMCONFIG
file is not updated.
The -n
option to dmloadcf
causes the program to do only syntax checking of the ASCII DMCONFIG
file without actually updating the BDMCONFIG
file.
After syntax checking, dmloadcf
checks to see if the file pointed to by BDMCONFIG
exists, is a valid BEA TUXEDO file system, and contains BDMCONFIG
tables. If these conditions are not true, the user is prompted to create and initialize the file with Initialize BDMCONFIG file
: path [y, q]?
where path is the complete file name of the BDMCONFIG
file. Prompting is suppressed if the standard input or output are not terminals, or if the -y
option is specified on the command line. Any response other than "y
" or "Y
" will cause dmloadcf
to exit without creating the configuration file.
If the BDMCONFIG
file is not properly initialized, and the user has given the go-ahead, dmloadcf
creates the BEA TUXEDO file system and then creates the BDMCONFIG
tables. If the -b
option is specified on the command line, its argument is used as the number of blocks for the device when creating the BEA TUXEDO file system. If the value of the -b
option is large enough to hold the new BDMCONFIG
tables, dmloadcf
will use the specified value to create the new file system; otherwise, dmloadcf
will print an error message and exit. If the -b
option is not specified, dmloadcf
will create a new file system large enough to hold the BDMCONFIG
tables. The -b
option is ignored if the file system already exists. The -b
option is highly recommended if BDMCONFIG
is a raw device (that has not been initialized) and should be set to the number of blocks on the raw device. The -b
option is not recommended if BDMCONFIG
is a regular UNIX file.
If the BDMCONFIG
file is found to have been initialized already, dmloadcf
ensures that the local domain described by that BDMCONFIG
file is not running. If a local domain is running, dmloadcf
prints an error message and exits. Otherwise, dmloadcf
, to confirm that the file should be overwritten, prompts the user with:
"Really overwriteBDMCONFIG
file [y, q]?"
Prompting is suppressed if the standard input or output are not a terminal or if the -y
option is specified on the command line. Any response other than "y
" or "Y
" will cause dmloadcf
to exit without overwriting the file.
If the SECURITY
parameter is specified in the RESOURCES
section of the TUXCONFIG
file, then dmloadcf
will flush the standard input, turn off terminal echo and prompt the user for an application password as follows: Enter Application Password?
The password is limited to 30 characters. The option to load the ASCII DMCONFIG
file via the standard input (rather than a file) cannot be used when this SECURITY
parameter is turned on. If the standard input is not a terminal, that is, if the user cannot be prompted for a password (as with a here
file, for example), then the environment variable APP_PW
is accessed to set the application password. If the environment variable APP_PW
is not set with the standard input not a terminal, then dmloadcf
will print an error message, generate a log message and fail to load the BDMCONFIG
file.
Assuming no errors, and if all checks have passed, dmloadcf
loads the DMCONFIG
file into the BDMCONFIG
file. It will overwrite all existing information found in the BDMCONFIG
tables.
dmloadcf
is supported as a BEA TUXEDO-supplied administrative tool on UNIX operating systems only.
The environment variable APP_PW
must be set for applications that require security (the SECURITY
parameter in the TUXCONFIG
file is set to APP_PW
) and dmloadcf
is run with something other than a terminal as the standard input.
The BDMCONFIG
environment variable should point to the BDMCONFIG
file.
The following example shows how a binary configuration file is loaded from the bank.dmconfig
ASCII file. The BDMCONFIG
device is created (or reinitialized) with 2000 blocks:
dmloadcf -b 2000 bank.dmconfig
If an error is detected in the input, the offending line is printed to standard error along with a message indicating the problem. If a syntax error is found in the DMCONFIG
file or the system is currently running, no information is updated in the BDMCONFIG
file and dmloadcf
exits with exit code 1.
If dmloadcf
is run on an active node, the following error message is displayed:
*** dmloadcf cannot run on an active node ***
If dmloadcf
is run by a person whose effective user identifier doesn't match the UID
specified in the TUXCONFIG
file, the following error message is displayed:
*** UID is not effective user ID ***
Upon successful completion, dmloadcf
exits with exit code 0. If the BDMCONFIG
file is updated, a userlog
message is generated to record this event.
dmunloadcf
(1), dmconfig
(5), ubbconfig
(5), BEA TUXEDO Domains Guide, Administering the BEA TUXEDO System