Difference between revisions of "Template:SQWareProductionPresSgbd"
Expdbtools (talk | contribs) |
Expdbtools (talk | contribs) (→Usage) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == Presentation == |
− | === | + | === Usage === |
− | + | It's the module locally operating of {{{1}}}.<br> | |
− | + | It is entirely written in ksh and sql. <br> | |
− | + | It allows to manage the operation for {{{1}}}.<br> | |
− | + | Example uses of the tool: | |
− | + | *Backup | |
− | + | *Recovery | |
− | + | *Compute statistics | |
− | *[[ | + | *Indicators collection to store in referential database [[SQWareRepository:general|SQWareRepository]] |
− | * | + | *Rotate logs |
− | *[[SQWareProduction | + | *.... |
− | + | This module is deployed locally on the machine hosting the authorities to manage, | |
+ | in order to avoid any points of weakness related to an NFS mount or whatever. | ||
+ | The deployment is done through a simple command SQWareCentral module using inventory located in SQWareRepository !<br> | ||
+ | [[Installation#SQWareProduction for {{{1}}} | Installation guide for SQWareProduction for {{{1}}} ]]<br> | ||
<br> | <br> | ||
− | === | + | === Explanation of directories === |
− | + | Directories located in $gvsqw_{{{2}}}Bin: | |
− | *bin : | + | *bin : Directory containing standard scripts |
− | *bin_cust : | + | *bin_cust : Directory containing customs scripts for your environnement |
− | *etc : | + | *etc : Directory containing the standard files of configuration |
− | *etc_cust : | + | *etc_cust : Directory containing the customs files of configuration for your environnement (overload standards) |
− | *lib : | + | *help : Directory containing the standard files of help |
− | *lib_cust : | + | *help_cust : Directory containing the customs files of help for your environnement |
− | *spm : | + | *lib : Directory containing the generic shell function librairies |
− | *tools : | + | *lib_cust : Directory containing the generic shell function librairies (overload standards) |
− | *tools_cust : | + | *spm : Contain sql query toolkit |
− | *menu : | + | *tools : Directory containing the standard scripts used on an ad hoc |
− | *menu_cust : | + | *tools_cust : Directory containing the customs scripts used on an ad hoc for your environnement |
+ | *menu : Directory containing the standard menus | ||
+ | *menu_cust : Directory containing the custom menus for your environnement | ||
{{Warning_custom}} | {{Warning_custom}} | ||
+ | <br> | ||
− | === convention | + | === Naming convention of files === |
− | + | The majority of files are named with suffixes: | |
− | + | * *.ksh : for scripts | |
− | + | * *.cfg : for configuration files | |
− | + | * *.lib : for function librairies | |
− | + | * *.hlp : for help files | |
− | |||
− | * *.ksh : | ||
− | * *.cfg : | ||
− | * *.lib : | ||
{{Warning_custom}} | {{Warning_custom}} | ||
<br> | <br> | ||
− | == convention | + | |
+ | === Naming convention in scripts === | ||
{{ExpNomVars}} | {{ExpNomVars}} |
Latest revision as of 19:02, 22 December 2017
Contents
Presentation
Usage
It's the module locally operating of {{{1}}}.
It is entirely written in ksh and sql.
It allows to manage the operation for {{{1}}}.
Example uses of the tool:
- Backup
- Recovery
- Compute statistics
- Indicators collection to store in referential database SQWareRepository
- Rotate logs
- ....
This module is deployed locally on the machine hosting the authorities to manage,
in order to avoid any points of weakness related to an NFS mount or whatever.
The deployment is done through a simple command SQWareCentral module using inventory located in SQWareRepository !
[[Installation#SQWareProduction for {{{1}}} | Installation guide for SQWareProduction for {{{1}}} ]]
Explanation of directories
Directories located in $gvsqw_{{{2}}}Bin:
- bin : Directory containing standard scripts
- bin_cust : Directory containing customs scripts for your environnement
- etc : Directory containing the standard files of configuration
- etc_cust : Directory containing the customs files of configuration for your environnement (overload standards)
- help : Directory containing the standard files of help
- help_cust : Directory containing the customs files of help for your environnement
- lib : Directory containing the generic shell function librairies
- lib_cust : Directory containing the generic shell function librairies (overload standards)
- spm : Contain sql query toolkit
- tools : Directory containing the standard scripts used on an ad hoc
- tools_cust : Directory containing the customs scripts used on an ad hoc for your environnement
- menu : Directory containing the standard menus
- menu_cust : Directory containing the custom menus for your environnement
Naming convention of files
The majority of files are named with suffixes:
- *.ksh : for scripts
- *.cfg : for configuration files
- *.lib : for function librairies
- *.hlp : for help files
Naming convention in scripts
In general, the following naming convention is used in all scripts of SQWareProduction:
- gvsqw_ {} : global variable initialized by the environment and / or generic library
- lvsqw_ {} : local variable initialized by the script and / or a specific library
- gfsqw_ {} : function defined by a generic library
- lfsqw_ {} : function defined by the script and / or a specific library