Difference between revisions of "SQWareProduction:sybrep:etc:sqwrs GlobalVar.cfg"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
 
(114 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Configuration file $gvsqw_SybBin/../etc/sqwrs_GlobalVar.cfg:<br>
 
Configuration file $gvsqw_SybBin/../etc/sqwrs_GlobalVar.cfg:<br>
 
{{SQWareProduction_sqwrs_GlobalVar.cfg_presentation}}
 
{{SQWareProduction_sqwrs_GlobalVar.cfg_presentation}}
<br>
+
{{SQWareProduction_sqwrs_GlobalVar.cfg_content}}
<br>
+
{{SQWareProduction_sqwrs_GlobalVar.cfg_explanation}}
File content:
 
<pre>
 
</pre>
 
<br>
 
<br>
 
Variable explanation:
 
<pre>
 
</pre>
 
 
{{SQWareProductionSurchargeVar|sybrep|Syb|sqwrs_GlobalVar.cfg}}
 
{{SQWareProductionSurchargeVar|sybrep|Syb|sqwrs_GlobalVar.cfg}}
 
<br>
 
<br>

Latest revision as of 15:57, 31 October 2024

Configuration file $gvsqw_SybBin/../etc/sqwrs_GlobalVar.cfg:
Global var for SybaseRs
It contains the operating variables of SQWareProduction.

File content:

#!/bin/ksh
###################################################################
# SQWareProduction for SybaseRs module of dbSQWare
# 
# dbSQWare is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# CGU/CGA for more details.
# 
# You should have received a copy of the CGU/CGA
# along with this program.  If not, see <http://www.dbsqware.com/licenses/>.
# 
# For information : contact@dbsqware.com or www.dbsqware.com
###################################################################
## @Synopsis	Global var for SybaseRs
## @Copyright	Copyright 2010-2024, dbSQWare (www.dbsqware.com)

#global
export gvsqw_SqwVersionDbms=2024.07
export gvsqw_SaUser='sa'
export gvsqw_PasswdFile="$HOME/.passwd"
export gvsqw_GlobalInterfacesFile='$SYBASE/interfaces'
export gvsqw_RootAdmin='$HOME/${DSQUERY}'
export gvsqw_RootAdminDisable='$HOME'
export gvsqw_RootAdminDist='$HOME/admin/sybrep/${DSQUERY}'
export gvsqw_RootCfg='$gvsqw_RootAdmin/sqwConfig'
export gvsqw_RootDev='/$(echo $HOME|cut -d/ -f2)/data/${DSQUERY}'
export gvsqw_RunFile='$HOME/${DSQUERY}/runfile/RUN_${DSQUERY}'
export gvsqw_RunFilePath='$HOME/${DSQUERY}/runfile'
export gvsqw_ConfigFilePath='$HOME/${DSQUERY}/cfg'
export gvsqw_ErrorLogPath='$HOME/${DSQUERY}/log'
export gvsqw_ErrorLog='$HOME/${DSQUERY}/log/${DSQUERY}.log'

#for indicators
#PK for indicators, if DSQUERY not unique, put for example gvsqw_DbAlias='$DSQUERY:$(hostname|cut -d '.' -f1)'
export gvsqw_DbAlias='$DSQUERY'
#Put for distant connection (indicators, ...)
export gvsqw_DistGlobalInterfacesFile='$HOME/dbSQWare/SQWareCentral/etc_cust/dbsqware_interfaces'
export gvsqw_PathList="HOME;gvsqw_RootAdmin;gvsqw_RootCfg"
export gvsqw_PathListExtra=""

##Globaly forcing return code for scripts
#export gvsqw_ForcedReturnCodeScript_sqwrs_GatherIndicators=0


Variables explanation:

#General variables

gvsqw_SaUser => User with sa role
gvsqw_PasswdFile => Password file path
gvsqw_RootAdmin => admin directory
gvsqw_RootCfg => configuration directory
gvsqw_RunFile => run file name
gvsqw_RunFilePath => run file directory
gvsqw_ConfigFilePath => config directory
gvsqw_ErrorLogPath => errorlog directory
gvsqw_ErrorLog => errorlog file name
gvsqw_GlobalInterfacesFile => XXXXX
gvsqw_RootAdminDisable => XXXXX
gvsqw_RootAdminDist => XXXXX
gvsqw_RootDev => devices directory

#for indicators
gvsqw_DbAlias => Database alias
gvsqw_DistGlobalInterfacesFile => XXXXX

#for SQWare Web
gvsqw_WebDbaUserConn => Connection string ssh user@hostname to SQWare Web
Nuvola apps information.png
Note:
You can overload variables contain in $gvsqw_SybBin/../etc/sqwrs_GlobalVar.cfg

by the same variables in $gvsqw_SybBin/../etc_cust/sqwrs_GlobalVar.cfg for all your environnement
or in $HOME/sqwConfig/sqwrs_GlobalVar.cfg specifically for this user.