SQWareProduction:sybrep
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_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_GetSaPass.ksh
Script $gvsqw_SybBin/../tools/sqwrs_GetSaPass.ksh:
set env for $DSQUERY
See the detailed help for sqwrs_GetSaPass.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
help
Contains help files for "-s" option of bin scripts.
spm
SQL query toolkit
See the detailed help for spm