DMK User Guide
Introduction
The DMK (database management kit) offers to database administrators’ an efficient way to manage databases. It’s a platform independent and standardized collection of scripts for Linux/Unix.
Software Overview
The software is composed of an archive for Linux/Unix systems. No differentiation is made between for the 32bit and 64bit architectures.
Support
In case you encounter a bug, we strongly recommend enabling the DEBUG mode before to raise a bug.
Enable debug as follows:
In case you have questions, want to raise a request, bug or any for any other purpose contact the Support Team at the following mail address: dmk.support@dbi-services.com
Alias & Variable Management
DMK set the environment using ${DMK_HOME}/etc/dmk.conf
in 3 steps:
All these steps match to a section from the ${DMK_HOME}/etc/dmk.conf
file. Which are defined by brackets [...]
, example follows:
Automatic creation of aliases and variables for modules
DMK interacts with other dbi services toolkits (DMK_DBBACKUP, ....), this interaction feature is available for customers on Linux/Unix platforms. Details of the feature:
Directories located under
${MONGODB_BASE}/local
Creates an alias and a variable with the name of the directory in Uppercase. The system variable
${PATH}
is extended with the ?bin
directory
Advanced Configuration
This chapter presents the “standard” configuration of DMK. However, the flexibility of the tool permits customizations and extensions.
Aliases & Variables Management
The following paragraphs explain how to create your own aliases and variables.
Aliases are declared using the following syntax
[var|novar]
var
: : creates automatically a variable with the name of the aliasnovar
: doesn’t create the above variable
`[force|noforce]``
force
: if a command or an alias already exists it’s overwrittennoforce
: a warning is printed instead of overwriting the existing alias or command
Example of a warning printout
Declare a variable
Variable are declared using the following syntax
[=|+|-]
=
: equal operator+
: expand and existing variablé-
: contract, remove element from a variable
[begin|end|noption|warn|nowarn]
begin|end
: works like the operators+|-
noopton|warn
: default behave print warning in case thevariable existnowarn
: disable warning and overwrites the variable
Example of a warning printout
Last updated