Difference between revisions of "SQWareProduction:sybrep"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
Line 6: | Line 6: | ||
{{SQWareProduction_sqwrs_ExecSQL.ksh_presentation}} | {{SQWareProduction_sqwrs_ExecSQL.ksh_presentation}} | ||
[[SQWareProduction:sybrep:bin:sqwrs_ExecSQL.ksh|See the detailed help for sqwrs_ExecSQL.ksh]]<br><br> | [[SQWareProduction:sybrep:bin:sqwrs_ExecSQL.ksh|See the detailed help for sqwrs_ExecSQL.ksh]]<br><br> | ||
+ | |||
+ | === sqwrs_FailWithoutMail.ksh === | ||
+ | Script $gvsqw_SybBin/bin/sqwrs_FailWithoutMail.ksh:<br> | ||
+ | {{SQWareProduction_sqwrs_FailWithoutMail.ksh_presentation}} | ||
+ | [[SQWareProduction:sybrep:bin:sqwrs_FailWithoutMail.ksh|See the detailed help for sqwrs_FailWithoutMail.ksh]]<br><br> | ||
=== sqwrs_GatherIndicators.ksh === | === sqwrs_GatherIndicators.ksh === |
Latest revision as of 08:59, 18 December 2023
Presentation
Usage
It's the module locally operating of sybrep.
It is entirely written in ksh and sql.
It allows to manage the operation for sybrep.
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 guide for SQWareProduction for sybrep
Explanation of directories
Directories located in $gvsqw_SybBin:
- 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
bin
sqwrs_ExecSQL.ksh
Script $gvsqw_SybBin/bin/sqwrs_ExecSQL.ksh:
execute SQL file on instance
See the detailed help for sqwrs_ExecSQL.ksh
sqwrs_FailWithoutMail.ksh
Script $gvsqw_SybBin/bin/sqwrs_FailWithoutMail.ksh:
exit with error and display imput parameters
See the detailed help for sqwrs_FailWithoutMail.ksh
sqwrs_GatherIndicators.ksh
Script $gvsqw_SybBin/bin/sqwrs_GatherIndicators.ksh:
Gather SybaseRs indicators and put them in SQWareRepository
Summary of collection:
- Volumetry (stable devices) of RS
- Version, options, configuration, ... of RS
See the detailed help for sqwrs_GatherIndicators.ksh
sqwrs_NetBackup.ksh
Script $gvsqw_SybBin/bin/sqwrs_NetBackup.ksh:
backup with NetBackup dump/backup files
See the detailed help for sqwrs_NetBackup.ksh
sqwrs_ParallelRun.ksh
Script $gvsqw_SybBin/bin/sqwrs_ParallelRun.ksh:
Manages the execution of unix commands in parallel mode
Takes in parameter file with unix command to execute
You can choose:
- The parallel degree
- Aggressiveness of run (number of seconds between two runs)
- Aggressiveness of check end (number of seconds between two checks of end)
See the detailed help for sqwrs_ParallelRun.ksh
sqwrs_RunJob.ksh
Script $gvsqw_SybBin/bin/sqwrs_RunJob.ksh:
Run SybaseRs scripts and generate log and error file
based on $gvsqw_RootCfg/sqwrs_Jobs.cfg configuration file
compress and purge oldest log files
See the detailed help for sqwrs_RunJob.ksh
etc
sqwrs_GlobalVar.cfg
Configuration file $gvsqw_SybBin/../etc/sqwrs_GlobalVar.cfg:
Global var for SybaseRs
It contains the operating variables of SQWareProduction.
See the detailed help for sqwrs_GlobalVar.cfg
.profile
Sample file for .profile $gvsqw_SybBin/../etc/.profile:
Sample of lines to add to .profile of sybrep users.
See the detailed help for .profile
.profile_confort
File to put aliases $gvsqw_SybBin/../etc/.profile_confort:
Contains confort aliases of SQWareProduction for sybrep.
See the detailed help for .profile_confort
lib
sqwrs_GatherIndicators.lib
shell functions library $gvsqw_SybBin/../lib/sqwrs_GatherIndicators.lib:
lib for sqwrs_GatherIndicators.ksh
See the detailed help for sqwrs_GatherIndicators.lib
sqwrs_GatherIndicators_Overload.lib
shell functions library $gvsqw_SybBin/../lib/sqwrs_GatherIndicators_Overload.lib:
lib for overLoad sqwrs_GatherIndicators.ksh
See the detailed help for sqwrs_GatherIndicators_Overload.lib
sqwrs_Global.lib
shell functions library $gvsqw_SybBin/../lib/sqwrs_Global.lib:
central lib of generic fonctions for SybaseRs
See the detailed help for sqwrs_Global.lib
sqwrs_NetBackup.lib
shell functions library $gvsqw_SybBin/../lib/sqwrs_NetBackup.lib:
lib for sqwgen_NetBackup.ksh
See the detailed help for sqwrs_NetBackup.lib
sqwrs_SetEnv.lib
shell functions library $gvsqw_SybBin/../lib/sqwrs_SetEnv.lib:
fonction to set env for $DSQUERY
See the detailed help for sqwrs_SetEnv.lib
tools
sqwrs_Crypt.ksh
Script $gvsqw_SybBin/../tools/sqwrs_Crypt.ksh:
Generic script to crypt file with openssl
See the detailed help for sqwrs_Crypt.ksh
sqwrs_GetSaPass.ksh
Script $gvsqw_SybBin/../tools/sqwrs_GetSaPass.ksh:
set env for $DSQUERY
See the detailed help for sqwrs_GetSaPass.ksh
sqwrs_ListAsyncFilesGlobal.ksh
Script $gvsqw_SybBin/../tools/sqwrs_ListAsyncFilesGlobal.ksh:
List Async files (sql, log, mail) to upload in SQWareCentral (all in a directory)
See the detailed help for sqwrs_ListAsyncFilesGlobal.ksh
sqwrs_ListAsyncFiles.ksh
Script $gvsqw_SybBin/../tools/sqwrs_ListAsyncFiles.ksh:
List Async files (sql, log, mail) to upload in SQWareCentral
See the detailed help for sqwrs_ListAsyncFiles.ksh
sqwrs_SetEnv.ksh
Script $gvsqw_SybBin/../tools/sqwrs_SetEnv.ksh:
set env for $DSQUERY
See the detailed help for sqwrs_SetEnv.ksh
sqwrs_Spm.ksh
Script $gvsqw_SybBin/../tools/sqwrs_Spm.ksh:
request for SybaseRs
See the detailed help for sqwrs_Spm.ksh
sqwrs_TestMySQL.ksh
Script $gvsqw_SybBin/../tools/sqwrs_TestMySQL.ksh:
Generic test MySQL connection script
See the detailed help for sqwrs_TestMySQL.ksh
sqwrs_TestSendmail.ksh
Script $gvsqw_SybBin/../tools/sqwrs_TestSendmail.ksh:
Generic test sendmail script
See the detailed help for sqwrs_TestSendmail.ksh
sqwrs_Uncrypt.ksh
Script $gvsqw_SybBin/../tools/sqwrs_Uncrypt.ksh:
Generic script to uncrypt file with openssl
See the detailed help for sqwrs_Uncrypt.ksh
help
Contains help files for "-s" option of bin scripts.
spm
SQL query toolkit
See the detailed help for spm