diff --git a/ReadMe.txt b/ReadMe.txt index d0101b2..2c66c9c 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -1,11 +1,148 @@ # $RCSfile: ReadMe.txt,v $ -# $Revision: 1.1 $ +# $Revision: 1.2 $ # $Name: $ -# $Date: 2009/01/12 15:36:39 $ +# $Date: 2009/01/12 17:59:03 $ # $Author: agibert $ -This first release has been lost... RIP ! +Welcome to EnvMng (Unix shell Environment Manager) ! + + + +This release of EnvMng supports the following OSes: + - AIX 5.3, + - HP UX 11.0. + +EnvMng is licensed under the GNU GPL Licenses. +For more information, please read the corresponding source file headers. +The license details can be found in the GNU-GPL.txt and GNU-FDL.txt files. + + + +envmng installation +------------------------------------------------------------------------------- +- rename ~/.profile into ~/.profile.old +- rename ~/.dtprofile into ~/.profile.old +- rename ~/.login into ~/.login.old +- copy /etc/skel/.profile to ~/.profile +- copy /etc/skel/.dtprofile to ~/.dtprofile +- soft link ~/.bash_profile to /etc/envmng_rc + + is /home/dtarget/envmng + + + +envmng usage +------------------------------------------------------------------------------- +Usage: envmng [COMMAND] [OPTION] + -b, --bash [] [norc] switch to bash and set id to + -k, --ksh [] [norc] switch to ksh and set id to + -S, --setid [norc] set id to + -R, --reset reset envlist to + -a, --add [head|tail] add in envlist head or tail + -d, --del del from envlist + -p, --profile [] do envlist or profile + -r, --rc [] do envlist or rc + -s, --status print status + -h, --help print this help + -V, --version print version + + + +envmng usage example +------------------------------------------------------------------------------- +- print curent env status: "envmng -s" +- switch to dtarget-gnu env: "envmng -S dtarget-gnu" or "env-dtarget" +- switch to d2target-gnu env: "envmng -S d2target-gnu" or "env-d2target" +- switch to ksh: "envmng -k" or "env-ksh" +- switch to bash in dtarget-gnu env: "envmng -b dtarget-gnu" + + + +user env customization +------------------------------------------------------------------------------- +- copy /etc/envmng.d/env_template to ~/.envmng_user +- add user customization into ~/.envmng_user + + is /home/dtarget/envmng + + + +.profile template +------------------------------------------------------------------------------- +clear +. /home/dtarget/envmng/etc/envmng_profile d2target-gnu bash +#. /home/dtarget/envmng/etc/envmng_profile d2target ksh + + + +.dtprofile template +------------------------------------------------------------------------------- +. /home/dtarget/envmng/etc/envmng_dtprofile d2target-gnu bash +#. /home/dtarget/envmng/etc/envmng_dtprofile d2target-gnu ksh + + + +EnvMng Id List (/etc/envmng_id) +------------------------------------------------------------------------------- +dtarget: user:shell:ora920:tux80:dtarget:snav:pvcs:64bits:system:gnu +dtarget-gnu: user:gnu:shell:ora920:tux80:dtarget:snav:pvcs:64bits:system +d2target: user:shell:ora817a:tux80a:d2target:snav:pvcs:32bits:system:gnu +d2target-gnu: user:gnu:shell:ora817a:tux80a:d2target:snav:pvcs:32bits:system + + + +Protected varibles (/etc/envmng_protvar) +------------------------------------------------------------------------------- +DISPLAY +DT +ENVMNG_ID +ENVMNG_LIST +MAIL +LOGNAME +HOME +PS1 +PS2 +PS3 +PS4 +PWD +SHELL +SHLVL +TERM +TZ +USER +_ + + + +Protected aliases (/etc/envmng_protalias) +------------------------------------------------------------------------------- +envmng + + + +d2target-gnu Env Id default aliases +------------------------------------------------------------------------------- +alias env-bash='envmng --bash' +alias env-d2target='envmng -S d2target-gnu' +alias env-dtarget='envmng -S dtarget-gnu' +alias env-ksh='envmng --ksh' +alias envmng='. /home/dtarget/envmng/bin/envmng' +alias ll='ls -la' +alias ls='ls --color=auto' +alias snav='snavigator' +alias xem='xemacs' + + + + + +Enjoy it! + +Your EnvMng Team. + +arnaud@rx3.net +http://www.rx3.org/dvp/?dvp=envmng diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 48fe3c1..00ce3f5 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,13 +1,21 @@ # $RCSfile: ReleaseNotes.txt,v $ -# $Revision: 1.1 $ +# $Revision: 1.2 $ # $Name: $ -# $Date: 2009/01/12 15:36:39 $ +# $Date: 2009/01/12 17:59:03 $ # $Author: agibert $ +-------------------------------------------------------------------------------- +EnvMng V 1.1.0 - A. Gibert - 2005/05/01 +-------------------------------------------------------------------------------- + +- Fix minor bugs. + + + -------------------------------------------------------------------------------- EnvMng V 1.0.0 - A. Gibert - 2004/02/01 -------------------------------------------------------------------------------- diff --git a/bin/envmng b/bin/envmng new file mode 100644 index 0000000..1950bf2 --- /dev/null +++ b/bin/envmng @@ -0,0 +1,275 @@ +# $RCSfile: envmng,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +# envmng - Unix shell Environment Manager +# Copyright (C) 2004-2005 Arnaud G. Gibert +# mailto:arnaud@rx3.net +# http://www.rx3.org/dvp/?dvp=envmng +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or any later version. +# +# This program 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 +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + + +EnvMng_Cmd="$1" +EnvMng_Env="$2" +EnvMng_Opt="$3" + +envmng_prefix=/home/dtarget/envmng +envmng_d=$envmng_prefix/etc/envmng.d +envmng_id=$envmng_prefix/etc/envmng_id +envmng_protvar=$envmng_prefix/etc/envmng_protvar +envmng_protalias=$envmng_prefix/etc/envmng_protalias +envmng_display=$envmng_prefix/etc/envmng_display + +env=/bin/env +sed=/bin/sed +grep=/bin/grep + +alias envmng=". $envmng_prefix/bin/envmng" + + + +envmng_rlist() +{ + rlist="" + + for elem in $1 + do + rlist="$elem $rlist" + done + + echo $rlist +} + + + +envmng_path_add() +{ + if [ "$1" != "" ] + then + echo "$2:$1" + else + echo "$2" + fi +} + + + +envmng_path_rm() +{ + echo "$1" | $sed -e "s/$(echo "$2" | $sed "s/\//\\\\\//g")//" -e "s/\:\:/\:/g" -e "s/^\://" -e "s/\:$//" +} + + + + + +case "$EnvMng_Cmd" in + -b | --bash) + if [ "$EnvMng_Env" != "" ] + then + export ENVMNG_ID=$EnvMng_Env + fi + + if [ "$BASH" = "" ] + then + echo "envmng: new shell: [bash] seting id: [$ENVMNG_ID]..." + + export NEW_SHELL=/home/dtarget/local/bin/bash + $NEW_SHELL + unset NEW_SHELL + else + echo "envmng: allready in: [bash] seting id: [$ENVMNG_ID]..." + . /home/dtarget/envmng/bin/envmng --setid $ENVMNG_ID $EnvMng_Opt + fi + ;; + + -k | --ksh) + if [ "$EnvMng_Env" != "" ] + then + export ENVMNG_ID=$EnvMng_Env + fi + + if [ "$BASH" != "" ] + then + echo "envmng: new shell: [ksh] seting id: [$ENVMNG_ID]..." + + export NEW_SHELL=/bin/ksh + $NEW_SHELL + unset NEW_SHELL + else + echo "envmng: allready in: [ksh] seting id: [$ENVMNG_ID]..." + . /home/dtarget/envmng/bin/envmng --setid $ENVMNG_ID $EnvMng_Opt + fi + ;; + + -S | --setid) + echo "envmng: seting id: [$EnvMng_Env]..." + + export ENVMNG_ID=$EnvMng_Env + + . $envmng_prefix/bin/envmng --reset $($grep "^$EnvMng_Env:" $envmng_id | $sed "s/^$EnvMng_Env:[ \ ]*//") $EnvMng_Opt + ;; + + -R | --reset) + echo "envmng: reseting env [$EnvMng_Env]..." + echo "envmng: reseting profile..." + + norc=$EnvMng_Opt + + env_list=$($env | $sed -e "s/=.*//") + + if [ "$env_list" != "" ] + then + for var in $env_list + do + if [ $var != "$($grep ^$var$ $envmng_protvar)" ] + then + unset $var + fi + done + fi + + export ENVMNG_LIST="$EnvMng_Env" + + + echo "envmng: reseting aliases..." + + alias_list=$(alias | $sed -e "s/alias //" -e "s/=.*//") + + if [ "$alias_list" != "" ] + then + for alias in $alias_list + do + if [ $alias != "$($grep ^$alias$ $envmng_protalias)" ] + then + unalias $alias + fi + done + fi + + . $envmng_prefix/bin/envmng --profile + + if [ "$norc" != "norc" ] + then + . $envmng_prefix/bin/envmng --rc + fi + ;; + + -a | --add) + if [ "$(echo $ENVMNG_LIST | $sed -e s/.*\:$EnvMng_Env/$EnvMng_Env/ -e s/$EnvMng_Env\:.*/$EnvMng_Env/)" != "$EnvMng_Env" ] + then + env_list=$(echo $ENVMNG_LIST | $sed -e "s/\:/ /g") + + if [ "$EnvMng_Opt" = "tail" ] + then + echo "envmng: adding [$EnvMng_Env] on [$EnvMng_Opt]..." + + if [ "$env_list" != "" ] + then + . $envmng_prefix/bin/envmng --reset $ENVMNG_LIST:$EnvMng_Env + else + export ENVMNG_LIST=$EnvMng_Env + + . $envmng_prefix/bin/envmng --profile $EnvMng_Env + . $envmng_prefix/bin/envmng --rc $EnvMng_Env + fi + + else + EnvMng_Opt=head + + echo "envmng: adding [$EnvMng_Env] on [$EnvMng_Opt]..." + + export ENVMNG_LIST=$EnvMng_Env:$ENVMNG_LIST + + . $envmng_prefix/bin/envmng --profile $EnvMng_Env + . $envmng_prefix/bin/envmng --rc $EnvMng_Env + fi + else + echo "envmng: skipping [$EnvMng_Env] env !" + fi + ;; + + -d | --del) + echo "envmng: deleting [$EnvMng_Env]..." + + if [ "$(echo $ENVMNG_LIST | $sed -e s/.*\:$EnvMng_Env/$EnvMng_Env/ -e s/$EnvMng_Env\:.*/$EnvMng_Env/)" == "$EnvMng_Env" ] + then + export ENVMNG_LIST=$(echo $ENVMNG_LIST | $sed -e "s/$EnvMng_Env//" -e "s/\:\:/\:/g" -e "s/^\://" -e "s/\:$//") + . $envmng_prefix/bin/envmng --reset $ENVMNG_LIST + else + echo "envmng: skipping [$EnvMng_Env] profile !" + fi + ;; + + -p | --profile | -r | --rc) + if [ "$EnvMng_Cmd" = "-p" ] | [ "$EnvMng_Cmd" = "--profile" ] + then + mode="profiling" + else + mode="rcing" + fi + + echo "envmng: $mode..." + + if [ "$EnvMng_Env" != "" ] + then + echo "envmng: $mode [$EnvMng_Env]..." + . $envmng_d/$EnvMng_Env ${EnvMng_Cmd} + else + env_list=$(envmng_rlist "$(echo $ENVMNG_LIST | $sed -e "s/\:/ /g")") + + if [ "$env_list" != "" ] + then + for envi in $env_list + do + echo "envmng: $mode [$envi]..." + . $envmng_d/$envi ${EnvMng_Cmd} + done + fi + fi + ;; + + -s | --status) + echo "ENVMNG_ID: [$ENVMNG_ID] ENVMNG_LIST: [$ENVMNG_LIST]" + ;; + + -h | --help) + echo "Usage: envmng [COMMAND] [OPTION]" + echo " -b, --bash [] [norc] switch to bash and set id to " + echo " -k, --ksh [] [norc] switch to ksh and set id to " + echo " -S, --setid [norc] set id to " + echo " -R, --reset reset envlist to " + echo " -a, --add [head|tail] add in envlist head or tail" + echo " -d, --del del from envlist" + echo " -p, --profile [] do envlist or profile" + echo " -r, --rc [] do envlist or rc" + echo " -s, --status print status" + echo " -h, --help print this help" + echo " -V, --version print version" + ;; + + -V | --version) + echo "envmng V 1.1" + ;; + + *) + echo "$0: Invalid command: [$EnvMng_Cmd] !" + . $envmng_prefix/bin/envmng --help + ;; +esac diff --git a/etc/envmng.d/32bits b/etc/envmng.d/32bits new file mode 100644 index 0000000..917b651 --- /dev/null +++ b/etc/envmng.d/32bits @@ -0,0 +1,18 @@ +# $RCSfile: 32bits,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export ARCH=32BITS + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/64bits b/etc/envmng.d/64bits new file mode 100644 index 0000000..fab646d --- /dev/null +++ b/etc/envmng.d/64bits @@ -0,0 +1,18 @@ +# $RCSfile: 64bits,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export ARCH=64BITS + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/cristal b/etc/envmng.d/cristal new file mode 100644 index 0000000..3640a1c --- /dev/null +++ b/etc/envmng.d/cristal @@ -0,0 +1,37 @@ +# $RCSfile: cristal,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export CRISTALDIR=$TARGET_HOME/cristal/appli + export DATABASECRT=$TARGET_HOME/cristal/database/data + export EXPLCRT=$TARGET_HOME/cristal/expl + export DATADIR=$CRISTALDIR/expl + export LOGDIRCRT=$EXPLCRT/log + export PSPDIRCRT=$EXPLCRT/psp + export PROC_EXPL_CRT=$EXPLCRT/proc + + #---------------------------------------------------------------------------- + # LIVRAISON BACKUP APPLI SOURCE LST + #---------------------------------------------------------------------------- + export LIVRAISONCRT=$TARGET_HOME/livraison/cristal + export BACKUPCRT=$TARGET_HOME/backup/cristal + export APPLICRT=$TARGET_HOME/cristal/appli + export LSTDIRCRT=$EXPLCRT/lst + + #---------------------------------------------------------------------------- + # Tuxedo Queue Config + #---------------------------------------------------------------------------- + export QMCONFIG_CRT=$TARGET_HOME/cristal/qspace/QUE + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/d2target b/etc/envmng.d/d2target new file mode 100644 index 0000000..5c105e7 --- /dev/null +++ b/etc/envmng.d/d2target @@ -0,0 +1,19 @@ +# $RCSfile: d2target,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export TARGET_ID=d2target + export TARGET_HOME=/home/$TARGET_ID + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/dtarget b/etc/envmng.d/dtarget new file mode 100644 index 0000000..a17f1c6 --- /dev/null +++ b/etc/envmng.d/dtarget @@ -0,0 +1,19 @@ +# $RCSfile: dtarget,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export TARGET_ID=dtarget + export TARGET_HOME=/home/$TARGET_ID + ;; + + *rc) + ;; + + *) + envmng_echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/env_template b/etc/envmng.d/env_template new file mode 100644 index 0000000..1d78181 --- /dev/null +++ b/etc/envmng.d/env_template @@ -0,0 +1,17 @@ +# $RCSfile: env_template,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/gnu b/etc/envmng.d/gnu new file mode 100644 index 0000000..1719b34 --- /dev/null +++ b/etc/envmng.d/gnu @@ -0,0 +1,33 @@ +# $RCSfile: gnu,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +path=/home/dtarget/local/bin + +shlib_path=/home/dtarget/local/lib + +manpath=/home/dtarget/local/man:/home/dtarget/local/share/man + + + +case "$1" in + *profile) + export PATH=$(envmng_path_add "$PATH" "$path") + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + export MANPATH=$(envmng_path_add "$MANPATH" "$manpath") + ;; + + *rc) + alias ls='ls --color=auto' + alias ll='ls -la' + alias xem=xemacs + + function dmalloc { eval `command dmalloc -b $*`; } + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/ic b/etc/envmng.d/ic new file mode 100644 index 0000000..2837d7a --- /dev/null +++ b/etc/envmng.d/ic @@ -0,0 +1,604 @@ +# $RCSfile: ic,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export ICDIR=$TARGET_HOME/ic/appli + export APPDIR=$TARGET_HOME/ic/appli/bin + export EXPLIC=$TARGET_HOME/ic/expl + export REP_IC_EXPL=$TARGET_HOME/ic/expl + export QSPACEIC=$TARGET_HOME/ic/qspace + export DATABASEIC=$TARGET_HOME/ic/database + export DATAIC=$TARGET_HOME/ic/database/data + export EXPL_SCRIPTS=$TARGET_HOME/appli/expl/scripts + export CERTIFDIR=$TARGET_HOME/appli/expl/certif + export CERTIF_SCRIPTS=${CERTIFDIR}/scripts + export LOGDIRIC=$EXPLIC/log + export PSPDIRIC=$EXPLIC/psp + export PROC_EXPL_IC=$EXPLIC/proc + export IC_SH_DIR=$ICDIR/sh + export ENVDIRIC=$ICDIR/env + export IC_TOOLS_DIR=$ICDIR/tls + + export FICHIER_RES="$HOME/ic/source_dev/clients/client_resync/resync/msg" + export BIC_IC_TBF="ZYBMFRC0XXX" + export BIC_IC_TARGET="BDFEFRT0XXX" + + #---------------------------------------------------------------------------- + # LIVRAISON BACKUP APPLI SOURCE LST + #---------------------------------------------------------------------------- + export LIVRAISONIC=$TARGET_HOME/livraison/ic + export BACKUPIC=$TARGET_HOME/backup/ic + export LSTDIRIC=$TARGET_HOME/lst + + export SHDIRIC=${ICDIR}/sh + export BINDIRIC=${ICDIR}/bin + export SQLDIRIC=${ICDIR}/sql + export ENVDIRIC=${ICDIR}/env + + export EXPL_INJECTION=$TARGET_HOME/appli/expl/injection + export EXPL_SIMULATEUR=$TARGET_HOME/appli/expl/simulateur + export EXPLTMP=$TARGET_HOME/appli/expl/tmp + + #---------------------------------------------------------------------------- + # Variables d'environnement pour traitement du referentiel CRI par l'IC + #---------------------------------------------------------------------------- + export REFCRI_BIN=${BINDIRIC} + export REFCRI_REP_LOG=${LOGDIRIC} + + export REFCRI_SVC_EXPORT=SVCEXPORTACA + export REFCRI_GROUPE=GROUP_IC + export REFCRI_TRACE=1 + export REFCRI_LOG=$REFCRI_REP_LOG/ACALOG + export REFCRI_ERR=$REFCRI_REP_LOG/ACAERR + + #---------------------------------------------------------------------------- + # Tuxedo Queue Config + #---------------------------------------------------------------------------- + export QMCONFIG_IC=$TARGET_HOME/ic/qspace/QUE + export QMCONFIG=$QMCONFIG_IC + export IC_DEVICE_QUEUE=$QMCONFIG_IC + export IC_DEVICE_QUE=$QMCONFIG_IC + export ULOGPFX=${LOGTUX}/ULOG + + #---------------------------------------------------------------------------- + # Exploitation Env + #---------------------------------------------------------------------------- + export JOUR=`date +%m%d%y` + export JOUR_LOG=`date +%m%d%y%H%M` + export AUJOURDHUI=`date +%y%m%d` + + export REPBUP=$TARGET_ID/backup + export APPLI=${TARGET_ID} + export APPLI_HOME=/home/${TARGET_ID} + export EXPLOIT=/home/${TARGET_ID}/appli/expl + export BAT="/home/${TARGET_ID}/appli/expl/proc" + export BAT_SQL=${BAT}/sql + export LST="/home/${TARGET_ID}/appli/expl/lst" + export PILO="/home/${TARGET_ID}/appli/expl/proc/pilotage" + export HFJ_BIN=${BINDIRIC} + export HFJ_DATA=${ICDIR}/data + export HFJ_SH=${SHDIRIC} + + export IC_ARCHIVAGE=$EXPLIC/lst/hebdo + export IC_ARCHIVAGE_HEBDO=$EXPLIC/lst/hebdo + export REP_TEMPORAIRE=$REPBUP + + export SCH_INIT_QUOTI=ICMGR + export SCH_FINAL_QUOTI=TARGET_HEBDO + export FIC_EXP_QUOTI=export_quoti_ic + + export SCH_INIT_HEBDO=TARGET_HEBDO + export SCH_FINAL_HEBDO=TARGET_SEMESTRE + export FIC_EXP_HEBDO=export_hebdo_ic + + export SCH_INIT_RESTORE=TARGET_HEBDO + export SCH_FINAL_RESTORE=TARGET_RESTORE + + export USR_ICMGR=ICMGR + export PWD_ICMGR=SOLEIL98 + export USR_HEBDO=TARGET_HEBDO + export PWD_HEBDO=HEBDO + export USR_RESTORE=TARGET_RESTORE + export PWD_RESTORE=RESTORE + export USR_SYSTEME=SYSTEME + export PWD_SYSTEME=MANAGER + export USR_STELINK=STELINK + export PWD_STELINK=STELINK + + # Variables statistiques BCE + export CMDFTPMICBCE1=$BAT/cmdftpmicbce1 + export CMDFTPMICBCE2=$BAT/cmdftpmicbce2 + export REP_BCE=$EXPLOIT/statistiques_bce + export NOM_AWK=$BAT/statistiques_BCE.awk + export FIC_STAT_I=I`date +%y%m%d`.MIC + export FIC_STAT_O=O`date +%y%m%d`.MIC + export FIC_STAT_BCE=statistiques_BCE.$JOUR + + # User sur NT SAFIRE PRIMAIRE & SECOURS + export USRBCE=TARGET01 + export PWDBCE=ICOTT01 + + export PSP_PRI=psp_pri ; + export PSP_SEC=psp_sec ; + export PSP=$PSP_SEC ; + export PSP_REP=target_integra ; + + # Variables traitement du BIC DICTIONNARY + export FIC_BIC_CTL=$BAT/load_bic.ctl + export FIC_BIC_DAT=$BAT/TBIC0101.dat + export FIC_BIC_BAD=$LST/TBIC0101.bad + export FIC_BIC_LOG=$LST/TBIC0101.log + + export ADSM=/home/sauvegarde/lst + + APPLI_REP="/home/target0 /home/target0/backup /home/target0/appli/expl /home/target0/appli/expl/tuxedo/tlog";export APPLI_REP; + APPLI_REP1="/home/target0/ic/database/databasehebdo /home/target0/ic/expl /home/target0/ic/database/redolog /home/target0/ic/database/redolog_m";export APPLI_REP1; + APPLI_REP2="/home/target0/ic /home/target0/ic/qspace /home/target0/ic/database /home/target0/ic/database/archivelog";export APPLI_REP2; + APPLI_REP3="/home/target0/cristal /home/target0/cristal/qspace /home/target0/cristal/database";export APPLI_REP3; + APPLI_REP4="/home/target0/stelink /home/target0/stelink/database /home/target0/stelink/qspace";export APPLI_REP4; + APPLI_REP5="/home/target0/stelink/appli /home/target0/stelink/database/archivelog /home/target0/stelink/database/redolog /home/target0/stelink/database/redolog_m";export APPLI_REP5; + APPLI_REP6="/home/applvg1/logiciel /home/secur";export APPLI_REP6; + + APPLI_REP1_ARCH="/home/target0/ /home/target0/appli/expl/ /home/target0/appli/expl/tuxedo/tlog/";export APPLI_REP1_ARCH; + APPLI_REP2_ARCH="/home/target0/cristal/ /home/target0/cristal/database/ /home/target0/cristal/qspace/ /home/target0/ic/ /home/target0/ic/qspace/ /home/target0/ic/database/ /home/target0/ic/database/databasehebdo/ /home/target0/ic/expl/ /home/target0/ic/database/redolog/ /home/target0/ic/database/redolog_m/ /home/target0/ic/database/archivelog/";export APPLI_REP2_ARCH; + APPLI_REP3_ARCH="/home/target0/stelink/ /home/target0/stelink/database/ /home/target0/stelink/qspace/ /home/target0/stelink/appli/ /home/target0/stelink/database/archivelog/ /home/target0/stelink/database/redolog/ /home/target0/stelink/database/redolog_m/";export APPLI_REP3_ARCH; + + + export APPLI_TMP=${APPLI_HOME}/tmp + export ARCHIVELOGREP=$EXPLOIT/arch; + export QM_CRT=$QMCONFIG_CRT + export LIST_CRT="Q_IC_REP" + + export QM_STK=$QMCONFIG_STK + export LIST_STK="FILE_SVC" + + export QM_IC=$QMCONFIG_IC + export LIST_IC="IC_QSP.SVC_ALRT_IC IC_QSP.Q_IC_ERR_RCP IC_QSP.IC_QSPERR IC_QSP.Q_IC_ERR_EMI" + export DATE_ARCHIVAGE=`date +%Y\/%m\/%d` + + #------------------------------------------------------------------------------ + #---- VARIABLES A POSITIONNER EN DUR + #------------------------------------------------------------------------------ + export BIC_IC="BDFEFRT0XXX" #--- N'est pas utilise + export CDE_BQ=90124 #--- var utilisee dans les batchs CRT (lance_crt_tfj) + export BIC_CRT="XXXXXXXX" + export BIC_CRISTAL="ZYAHFRT0XXX" + export STE_ORACLE_SID=STEORA + export USERDBAICCRT=dbadtar + export USERDBASTELINK=dbadstl + export HOME_LOGICIEL=/home/logiciel #-- cas de la prod + + #-------------------GESTION CLUSTER PRIMAIRE ET SECOURS--------------------- + export SITE_PRIMAIRE="" + export SITE_SECOURS="" + export PKG_PRIMAIRE=hitargp2 + export PKG_SECOURS=hpint8 + export SITE_PRIMAIRE_N1=hpint15 + export SITE_PRIMAIRE_N2=hpint16 + export SITE_SECOURS_N1=hpint8 + export SITE_SECOURS_N2=hpint8 + export LP_SAFIRE_PRI=lpsafire_prim + export LP_SAFIRE_SEC=lpsafire_sec + export LP_SAFIRE=$LP_SAFIRE_PRI + export CRT_OWNER=ops\$target0; + + #---------------------------------------------------------------------------- + # IC Env + #---------------------------------------------------------------------------- + #################################################################### + ######## ################### + ######## PARAMETRES D'ENVIRONNEMENT DE L'IC ################### + ######## ################### + # Modifie le 09/09/1999, DST, CIMV + # Ajout configuration lot C v2.5 + # Modifie le 26/04/2000, DST, CIMV + # Ajout IC_REP_QSPACE_AVN pour IC v3 + #################################################################### + + # Path utilise pour la generation des IPC (ftok) + export IPC_PATH_IC=${ICDIR} + + export IC_USER=${TARGET_ID} + export IC_DEVICE_QUE=${QMCONFIG_IC} + export REP_IC_EXPL=$EXPLIC + + #################################################################### + ####### Logs ################### + #################################################################### + + # Niveau de trace + export IC_TRACE_LEVEL=20 + export IC_TRACE_LEVEL_MIN=0 + export IC_TRACE_LEVEL_MAX=20 + + + ################################################################### + ####### Clients IC ################### + ################################################################### + + + ####### General ################################ + + # Shell de purge des clients IC, admet en parametre le nom du client a purger + export SHELL_PURGE_CLI_IC=${ICDIR}/sh/killclient.sh + + # QSPACE utilises par l'IC + export IC_QSPACE=IC_QSP + export IC_QSPACE_RCP=IC_QSP_RCP + export IC_QSPACE_EMS=IC_QSP_EMS + export IC_QSPACE_CNF=IC_QSP_CNF + export IC_QSPACE_STK=IC_QSPEMSTK + + # FILE d'émission vers Stelink (depuis Interlinking) utilise par l'IC + export IC_QUEUE_EMI_STK=SVCIMPORTBDF + + # FILE de reception (depuis Interlinking) utilise par l'IC + export IC_QUEUE_RCP=RECEPTION_IC + + # FILE de reprise en reception utilise par l'IC + export IC_QUEUE_RCP_REP=Q_IC_RCP_REP + + # FILE d'emission (vers Interlinking) utilise par l'IC + #export IC_QUEUE_EMI=Q_IC_EMI + export IC_QUEUE_EMI=EMISSION_IC + + # FILE de reprise en emission utilisee par l'IC + export IC_QUEUE_EMI_REP=Q_IC_EMI_REP + + #Groupe utilise pour gerer les transactions + export GROUPNAME_IC=GROUP_IC + export GROUPNAME_IC=GROUP_DAVID + + ####### Client de supervision ################### + + #Cltname utilise dans tpinit par les clients qui veulent recevoir les alertes duclient de supervision + export CLTNAME_IC=IC + + ####### Scheduler ################### + export CLIENT_SCHEDUL_LOG=${REP_IC_EXPL}/log/scheduler.log + + ####### Journal alerte ################### + export IC_CHEMIN_JNL_ALERT=${REP_IC_EXPL}/log/journalAlerte.log + + ####### Client de test EOD ################### + export HFJ_BIN=${ICDIR}/bin + export HFJ_DATA=${ICDIR}/files + export HFJ_LOG=${REP_IC_EXPL}/log/spv_alert.log + export ALRT_LOG=${REP_IC_EXPL}/log/spv_alert.log + export CLIENT_PIL_LOG=${REP_IC_EXPL}/log/client_pil_ic.log + + ####### Client de Statistiques Interlinking ################### + export CONST_RAPPORT_LOG=${REP_IC_EXPL}/log/const_rapport.log + + ################################################################### + ####### Retrieval et Resynchro (cote Interlinking) ########### + ################################################################### + + ####### RETRIEVAL ############################### + + #QSPACE de retrivial + export RTV_QSP_EMI=IC_QSP_EMS + export RTV_QSP_RCP=IC_QSP_RCP + + # File de retrieval en reception + export RTV_QPSM_RCP=SVC_RESYNC_RCP + + # File de retrieval en emission + export RTV_QPSM_EMI=SVC_RESYNC_EMI + + # Service de retrieval stelink + export SVC_EXPORT_SYN=SVCEXPORTSYN + + # Service de retrieval IC + export SVC_RTV=SVC_RTV + + + ####### RESYNCHRO ############################### + + # Log du client de Resynchro + export CLI_RESYNC_LOG=${REP_IC_EXPL}/log/cli_rsc.log + + # File de discordance en emission + export RTV_QDISC_EMI=SVC_DISC_EMI + + # Service de resynchro en emission + export SVC_RESYNC_RCP=SVC_RESYNC_RCP + + # Service de resynchro en reception + export SVC_RESYNC_EMI=SVC_RESYNC_EMI + + ############################################################################# + + ############################################################################# + ###### BASCULES FILE VERS FILE (Reprise et applicatives) ############## + ############################################################################# + export IC_CLIENTS_BASCULE_FILE_FILE=EMS,RCP,CNF,TFJ,IMP,EXP,ALR,SOL,BIP + + export IC_REP_GROUPNAME=GROUP_IC + + #Parametrage reprise en EMISSION (EMS) + export IC_REP_USRNAME_EMS=REPRISE_EMS + export IC_REP_CLTNAME_EMS=BASCULE_REP + export IC_REP_GRPNAME_EMS=GROUP_IC + export IC_REP_QSPACE_EMS=IC_QSP_EMS + export IC_REP_QSPACE_AVN=IC_QSP_EMS + export IC_REP_QSPACE_ORIG_EMS=IC_QSP_EMS + export IC_REP_QORIG_EMS=IC_QSP_EMS_ERR + export IC_REP_QSPACE_DEST_EMS=IC_QSP_EMS + export IC_REP_QDEST_EMS=EMISSION_IC + export IC_REP_TIMER_EMS=30 + export IC_REP_NB_OCC_EMS=1 + export IC_REP_SH_START_EMS=ic_bascule_file + export IC_REP_SH_STOP_EMS=${ICDIR}/sh/killclientbsc.sh + + #Parametrage reprise en RECEPTION (RCP) + export IC_REP_USRNAME_RCP=REPRISE_RCP + export IC_REP_CLTNAME_RCP=BASCULE_REP + export IC_REP_GRPNAME_RCP=GROUP_IC + export IC_REP_QSPACE_RCP=IC_QSP_RCP + export IC_REP_QSPACE_ORIG_RCP=IC_QSP_RCP + export IC_REP_QORIG_RCP=IC_QSP_RCP_ERR + export IC_REP_QSPACE_DEST_RCP=IC_QSP_RCP + export IC_REP_QDEST_RCP=RECEPTION_IC + export IC_REP_TIMER_RCP=30 + export IC_REP_NB_OCC_RCP=1 + export IC_REP_SH_START_RCP=ic_bascule_file + export IC_REP_SH_STOP_RCP=${ICDIR}/sh/killclientbsc.sh + export IC_REP_LOG_RCP=${REP_IC_EXPL}/log/reprise_rcp.log + + #Parametrage reprise en CONFIRMATION (CNF) + export IC_REP_USRNAME_CNF=REPRISE_CNF + export IC_REP_CLTNAME_CNF=BASCULE_REP + export IC_REP_GRPNAME_CNF=GROUP_IC + export IC_REP_QSPACE_CNF=IC_QSP_CNF + export IC_REP_QSPACE_ORIG_CNF=IC_QSP_CNF + export IC_REP_QORIG_CNF=IC_QSP_CNF_ERR + export IC_REP_QSPACE_DEST_CNF=IC_QSP_CNF + export IC_REP_QDEST_CNF=CONFIRM_IC + export IC_REP_TIMER_CNF=30 + export IC_REP_NB_OCC_CNF=1 + export IC_REP_SH_START_CNF=ic_bascule_file + export IC_REP_SH_STOP_CNF=${ICDIR}/sh/killclientbsc.sh + export IC_REP_LOG_CNF=${REP_IC_EXPL}/log/reprise_cnf.log + + #Parametrage reprise en EXPORT (EXP) + export IC_REP_USRNAME_EXP=REPRISE_EXP + export IC_REP_CLTNAME_EXP=BASCULE_REP + export IC_REP_GRPNAME_EXP=GROUP_IC + export IC_REP_QSPACE_EXP=IC_QSP_EXP + export IC_REP_QSPACE_ORIG_EXP=IC_QSP_EXP + export IC_REP_QORIG_EXP=IC_QSP_EXP_ERR + export IC_REP_QSPACE_DEST_EXP=IC_QSP_EXP + export IC_REP_QDEST_EXP=SVC_EXP_IC + export IC_REP_TIMER_EXP=30 + export IC_REP_NB_OCC_EXP=1 + export IC_REP_SH_START_EXP=ic_bascule_file + export IC_REP_SH_STOP_EXP=${ICDIR}/sh/killclientbsc.sh + export IC_REP_LOG_EXP=${REP_IC_EXPL}/log/reprise_exp.log + + #Parametrage reprise en IMPORT (IMP) + export IC_REP_USRNAME_IMP=REPRISE_IMP + export IC_REP_CLTNAME_IMP=BASCULE_REP + export IC_REP_GRPNAME_IMP=GROUP_IC + export IC_REP_QSPACE_IMP=IC_QSP_IMP + export IC_REP_QSPACE_ORIG_IMP=IC_QSP_IMP + export IC_REP_QORIG_IMP=IC_QSP_IMP_ERR + export IC_REP_QSPACE_DEST_IMP=IC_QSP_IMP + export IC_REP_QDEST_IMP=Q_CRT_RES + export IC_REP_TIMER_IMP=30 + export IC_REP_NB_OCC_IMP=1 + export IC_REP_SH_START_IMP=ic_bascule_file + export IC_REP_SH_STOP_IMP=${ICDIR}/sh/killclientbsc.sh + export IC_REP_LOG_IMP=${REP_IC_EXPL}/log/reprise_imp.log + + #Parametrage reprise en Traitement Fin de Journee (TFJ) + export IC_REP_USRNAME_TFJ=REPRISE_TFJ + export IC_REP_CLTNAME_TFJ=BASCULE_REP + export IC_REP_GRPNAME_TFJ=GROUP_IC + export IC_REP_QSPACE_TFJ=IC_QSP_TFJ + export IC_REP_QSPACE_ORIG_TFJ=IC_QSP_TFJ + export IC_REP_QORIG_TFJ=IC_QSP_TFJ_ERR + export IC_REP_QSPACE_DEST_TFJ=IC_QSP_TFJ + export IC_REP_QDEST_TFJ=SPV_SVC_TEST + export IC_REP_TIMER_TFJ=30 + export IC_REP_NB_OCC_TFJ=1 + export IC_REP_SH_START_TFJ=ic_bascule_file + export IC_REP_SH_STOP_TFJ=${ICDIR}/sh/killclientbsc.sh + export IC_REP_LOG_TFJ=${REP_IC_EXPL}/log/reprise_tfj.log + + #Parametrage reprise en Alerte (ALR) + export IC_REP_USRNAME_ALR=REPRISE_ALR + export IC_REP_CLTNAME_ALR=BASCULE_REP + export IC_REP_GRPNAME_ALR=GROUP_IC + export IC_REP_QSPACE_ALR=IC_QSP_ALR + export IC_REP_QSPACE_ORIG_ALR=IC_QSP_ALR + export IC_REP_QORIG_ALR=IC_QSP_ALR_ERR + export IC_REP_QSPACE_DEST_ALR=IC_QSP_ALR + export IC_REP_QDEST_ALR=SVC_ALRT + export IC_REP_TIMER_ALR=30 + export IC_REP_NB_OCC_ALR=1 + export IC_REP_SH_START_ALR=ic_bascule_file + export IC_REP_SH_STOP_ALR=${ICDIR}/sh/killclientbsc.sh + export IC_REP_LOG_ALR=${REP_IC_EXPL}/log/reprise_alr.log + + #------------------------------------------------------------------- + #------------------------------------------------------------------- + #-------- Variables d'environnement pour le service SVC_RTV + #-------- et la resynchro ------------------------------------------ + #------------------------------------------------------------------- + #------------------------------------------------------------------- + + export IC_RTV_QSPACE_EMS=IC_QSP_EMS + export IC_RTV_QSTOCK_EMS=IC_QSP_EMS_ERR + export IC_RTV_QPSM_EMS=SVC_RESYNC_EMI + export IC_RTV_QERR_EMS=IC_QSP_ERR_ERR + + export IC_RTV_QSPACE_RCP=IC_QSP_RCP + export IC_RTV_QSTOCK_RCP=IC_QSP_RCP_ERR + export IC_RTV_QPSM_RCP=SVC_RESYNC_RCP + export IC_RTV_QERR_RCP=IC_QSP_RCP_ERR + + export RTV_CATALOG=${ICDIR}/bin/CatErrRtv + + # gestion des alarmes + export IC_CHEMIN_ALARME_TARGET=${REP_IC_EXPL}/log/ALARME_TARGET + export IC_REP_QSPACE_AVN=IC_QSP_EMS + export IC_EXPQREPRISE=Q_REP_SECOURS + + #gestion du pilotage bancaire + export IC_REP_QSPACE_PIL=IC_QSP_PIL + export SVC_PIL_IC=SVC_PIL_IC + + # Version 5.1.0 + export CONST_RAPPORT_LOG=$LOGDIRIC/const_rapport.out + export IC_CHEMIN_JNL_ALERT=${REP_IC_EXPL}/log/journalAlerte.log + export CLIENT_SCHEDUL_LOG=${LOGDIRIC}/scheduler.log + ####### RESYNCHRO ############################### + + #Event des fins de phases + export CHGT_PHASE_RESYNC_EVENT=changement_phase_resync + + #Chemin du client de chgt de phase + export CLI_SCAN_RESYNC_DIR=$APPDIR + + #Nom du client de chgt de phase + export CLI_SCAN_RESYNC_EXE=ic_scan_resync + ####### Client scan resynchro ################### + export IC_SCAN_RESYNC_LOG=${REP_IC_EXPL}/log/ic_scan_resync.log + + #Event des fins de phases + export CHGT_PHASE_RESYNC_EVENT=changement_phase_resync + + #Chemin du client de chgt de phase + export CLI_SCAN_RESYNC_DIR=$APPDIR + + #Nom du client de chgt de phase + export CLI_SCAN_RESYNC_EXE=ic_scan_resync + + + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=${APPDIR}:$EXPL_SCRIPTS:$CERTIF_SCRIPTS + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=${ICDIR}/sl:${APPDIR} + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + + fldtbldir=$ENVDIRIC + export FLDTBLDIR=$(envmng_path_add "$FLDTBLDIR" "$fldtbldir") + export FLDTBLDIR32=$(envmng_path_add "$FLDTBLDIR32" "$fldtbldir") + ;; + + *rc) + #--------------------------------------------------------------------------- + #-- ALIAS PRATIQUES (SCOPE) ------------------------------------------------ + #--------------------------------------------------------------------------- + alias s="cd $STELINKDIR ; pwd" + alias ma="cd /home/${TARGET_ID}/appli/expl/masterisation/master ; pwd" + alias l="ls -la" + alias lt="ls -lt | head -15" + alias lst="ls -t | head -20" + alias dlog=" ls -l $UTILDIR/logs/purge_defrag.log ; tail $UTILDIR/logs/purge_defrag.log" + alias log="cd /home/$TARGET_ID/appli/expl/tuxedo/log ; ls -lt | head -15" + alias v="cd $HOME/schv ; ls -lt | head -15" + alias s="cd $STELINKDIR ; ls -lt | head -15" + alias bin="cd $EXPL_SCRIPTS ; ls -lt | head -15" + alias calend="calendrier.sh" + alias vj="vi $DATADIR/crtpurge/99780_tfj.log ; ls -l $DATADIR/crtpurge/99780_tfj.log" + alias tj="tail -f $DATADIR/crtpurge/99780_tfj.log " + alias m="make" + alias vm="vi [Mm]akefile" + alias vv="vi verif.c" + alias cal="calendrier.sh" + alias tux='cd `dirname $TUXCONFIG` ; ls -l' + alias lf='ls -F' + alias bat='cd $BAT; pwd ; ls -lt | head -6 ; pwd' + + #--- Execution du .alias commun ------- + alias tux="cd ~/ic/appli/tuxedo" + alias tuxc="cd ~/appli/expl/tuxedo/config" + alias tuxb="cd ~/ic/appli/bin" + alias tuxe="cd ~/ic/appli/env" + alias tuxf="cd ~/ic/appli/files" + alias tuxl="cd ~/ic/expl/log" + alias tuxs="cd ~/ic/appli/sh" + alias tuxt="cd ~/ic/appli/tls" + alias tuxts="cd ~/ic/appli/tls/sh" + alias qvide2.sh="~/ic/appli/tls/sh/qvide2.sh" + alias start_tux="~/ic/appli/tls/sh/start_tux" + alias stop_tux="~/ic/appli/tls/sh/stop_tux" + alias viul="~/ic/appli/tls/sh/viul.sh" + alias tlul="~/ic/appli/tls/sh/tlul.sh" + alias viic="~/ic/appli/tls/sh/viic.sh" + alias tm="tmadmin" + alias qm="qmadmin" + alias cn="~/ic/appli/tls/sh/clinor.sh" + alias ct="~/ic/appli/tls/sh/clithe.sh" + alias or="~/ic/appli/tls/sh/clioli.sh" + alias dv="~/ic/appli/tls/sh/clidav.sh" + alias rg="~/ic/appli/tls/sh/clireg.sh" + alias pa="~/ic/appli/tls/sh/clipad.sh" + alias dp="~/ic/appli/tls/sh/clidpa.sh" + alias ol="~/ic/appli/tls/sh/cliroq.sh" + alias da="~/ic/appli/tls/sh/clidan.sh" + alias ra="~/ic/appli/tls/sh/clirac.sh" + alias ev="~/ic/appli/tls/sh/clieve.sh" + alias clideq="~/ic/appli/bin/client_dequeue" + alias vrcpo="vi ~/ic/appli/log/svr_rcp_ic.out" + alias vrcpe="vi ~/ic/appli/log/svr_rcp_ic.err" + alias vemio="vi ~/ic/appli/log/svr_emi_ic.out" + alias vemie="vi ~/ic/appli/log/svr_emi_ic.err" + alias vcnfo="vi ~/ic/appli/log/svr_cnf_ic.out" + alias vcnfe="vi ~/ic/appli/log/svr_cnf_ic.err" + alias vsqlo="vi ~/ic/appli/log/svr_sql_ic.out" + alias vsqle="vi ~/ic/appli/log/svr_sql_ic.err" + alias vexpo="vi ~/ic/appli/log/svr_exp_ic.out" + alias vexpe="vi ~/ic/appli/log/svr_exp_ic.err" + alias vimpo="vi ~/ic/appli/log/svr_imp_ic.out" + alias vimpe="vi ~/ic/appli/log/svr_imp_ic.err" + alias vtfjo="vi ~/ic/appli/log/svr_tfj_ic.out" + alias vtfje="vi ~/ic/appli/log/svr_tfj_ic.err" + alias vspv="vi ~/ic/appli/log/cli_spv_ic.log" + alias valr="vi ~/ic/appli/log/spv_alert.log" + alias pc="ps -def|grep dbadtarg" + alias mip="ipcs|grep dbadtarg" + alias sqlp="sqlplus /" + alias lf="ls -F" + alias nettoie="~/ic/appli/tls/sh/nettoie.sh" + alias nor="cd ~/ic/appli/tls/tst/nordine/data" + alias the="cd ~/ic/appli/tls/tst/thierry/data" + alias dav="cd ~/ic/appli/tls/tst/david/data" + alias oli="cd ~/ic/appli/tls/tst/olivier/data" + alias reg="cd ~/ic/appli/tls/tst/regis/data" + alias pad="cd ~/ic/appli/tls/tst/pad/data" + alias dan="cd ~/ic/appli/tls/tst/dan/data" + alias dpa="cd ~/ic/appli/tls/tst/dpa/data" + alias rac="cd ~/ic/appli/tls/tst/rachid/data" + alias eve="cd ~/ic/appli/tls/tst/evelyne/data" + alias deq="~/ic/appli/tls/bin/client_test_dequeue" + +# #--- Execution des .alias prives +# TTY=`tty | sed 's/^\/dev\///'` +# ADR=`who -a | grep $TTY | awk '{ print $8 }'` +# if [ -f $ICDIR/tls/.alias.${ADR} ] +# then +# . $ICDIR/tls/.alias.${ADR} +# fi + + alias vic="vi $CERTIF_SCRIPTS/injecteur04.sh" + alias mod="cd $CERTIFDIR/modeles04 ; ls -lt | head ; pwd" + alias sc="cd $CERTIFDIR/nonreg/scenarios ; ls -lt | head ; pwd" + alias cer="cd $CERTIFDIR ; ls -lt | head ; pwd" + alias cs="cd $CERTIF_SCRIPTS ; ls -lt | head ; pwd" + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/imr b/etc/envmng.d/imr new file mode 100644 index 0000000..d9e92fd --- /dev/null +++ b/etc/envmng.d/imr @@ -0,0 +1,21 @@ +# $RCSfile: imr,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + + export USR_IMRMGR=IMRMGR + export PWD_IMRMGR=SWAP + ;; + + *rc) + + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/mqm32 b/etc/envmng.d/mqm32 new file mode 100644 index 0000000..d5d2ff0 --- /dev/null +++ b/etc/envmng.d/mqm32 @@ -0,0 +1,27 @@ +# $RCSfile: mqm32,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export MQM_HOME=/opt/mqm + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$MQM_HOME/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$MQM_HOME/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/mqm64 b/etc/envmng.d/mqm64 new file mode 100644 index 0000000..08cf4d7 --- /dev/null +++ b/etc/envmng.d/mqm64 @@ -0,0 +1,27 @@ +# $RCSfile: mqm64,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export MQM_HOME=/opt/mqm + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$MQM_HOME/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$MQM_HOME/lib64:$MQM_HOME/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/ora817a b/etc/envmng.d/ora817a new file mode 100644 index 0000000..a41bad0 --- /dev/null +++ b/etc/envmng.d/ora817a @@ -0,0 +1,36 @@ +# $RCSfile: ora817a,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export ORACLE_HOME=/home/logiciel/oracle/ora817a + export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data + export NLS_LANG=american_america.we8iso8859p1 + export NLS_SORT=BINARY + export ORACLE_TERM=vt100 + export ORACLE_RM=Oracle_XA_8 + + export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$TARGET_ID\")}") + export CONFIGORAIC=$TARGET_HOME/appli/expl/oracle/ora_target/init + export EXPLORAIC=$TARGET_HOME/appli/expl/oracle/ora_target + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$ORACLE_HOME/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$ORACLE_HOME/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + envmng_echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/ora920 b/etc/envmng.d/ora920 new file mode 100644 index 0000000..dc3ee3e --- /dev/null +++ b/etc/envmng.d/ora920 @@ -0,0 +1,36 @@ +# $RCSfile: ora920,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export ORACLE_HOME=/home/logiciel/oracle/ora920 + export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data + export NLS_LANG=american_america.we8iso8859p1 + export NLS_SORT=BINARY + export ORACLE_TERM=vt100 + export ORACLE_RM=Oracle_XA_9 + + export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$TARGET_ID\")}") + export CONFIGORAIC=$TARGET_HOME/appli/expl/oracle/ora_target/init + export EXPLORAIC=$TARGET_HOME/appli/expl/oracle/ora_target + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$ORACLE_HOME/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$ORACLE_HOME/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/ora920a b/etc/envmng.d/ora920a new file mode 100644 index 0000000..dbb4a37 --- /dev/null +++ b/etc/envmng.d/ora920a @@ -0,0 +1,36 @@ +# $RCSfile: ora920a,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export ORACLE_HOME=/home/logiciel/oracle/ora920a + export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data + export NLS_LANG=american_america.we8iso8859p1 + export NLS_SORT=BINARY + export ORACLE_TERM=vt100 + export ORACLE_RM=Oracle_XA_9 + + export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$TARGET_ID\")}") + export CONFIGORAIC=$TARGET_HOME/appli/expl/oracle/ora_target/init + export EXPLORAIC=$TARGET_HOME/appli/expl/oracle/ora_target + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$ORACLE_HOME/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$ORACLE_HOME/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/purify b/etc/envmng.d/purify new file mode 100644 index 0000000..8bbcca8 --- /dev/null +++ b/etc/envmng.d/purify @@ -0,0 +1,23 @@ +# $RCSfile: purify,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +path=/opt/rational/releases/PurifyPlusFamily.2003.06.00/hppa_hpux/bin + +manpath=/opt/rational/releases/purify.hp.2003.06.00/man + +case "$1" in + *profile) + export PATH=$(envmng_path_add "$PATH" "$path") + export MANPATH=$(envmng_path_add "$MANPATH" "$manpath") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/pvcs b/etc/envmng.d/pvcs new file mode 100644 index 0000000..dd2c4f4 --- /dev/null +++ b/etc/envmng.d/pvcs @@ -0,0 +1,20 @@ +# $RCSfile: pvcs,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export PVCS_BINDIR=/home/pvcs/vm/hpux11.00/bin + + export PATH=$(envmng_path_add "$PATH" "$PVCS_BINDIR") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/shell b/etc/envmng.d/shell new file mode 100644 index 0000000..d39135e --- /dev/null +++ b/etc/envmng.d/shell @@ -0,0 +1,42 @@ +# $RCSfile: shell,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case $BASH in + *bash) + shell=$BASH + ;; + + *) + shell=/usr/bin/ksh + ;; +esac + + + +case "$shell"-$1 in + *ksh-*profile) + export ENV=$envmng_prefix/etc/envmng_rc + ;; + + *bash-*profile) + export ENV=$envmng_prefix/etc/envmng_rc + ;; + + *ksh-*rc) + alias __A= + alias __B= + alias __C= + alias __D= + ;; + + *bash-*rc) + ;; + + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/snav b/etc/envmng.d/snav new file mode 100644 index 0000000..734876b --- /dev/null +++ b/etc/envmng.d/snav @@ -0,0 +1,26 @@ +# $RCSfile: snav,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +path=/home/dtarget/sourcenav/bin + +manpath=/home/dtarget/sourcenav/man + + + +case "$1" in + *profile) + export PATH=$(envmng_path_add "$PATH" "$path") + export MANPATH=$(envmng_path_add "$MANPATH" "$manpath") + ;; + + *rc) + alias snav=snavigator + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/stk b/etc/envmng.d/stk new file mode 100644 index 0000000..5a8c0c8 --- /dev/null +++ b/etc/envmng.d/stk @@ -0,0 +1,39 @@ +# $RCSfile: stk,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export STELINKDIR=$TARGET_HOME/stelink/appli + export EXPLORASTK=$TARGET_HOME/appli/expl/oracle/ora_steora + export CONFIGORASTK=$TARGET_HOME/appli/expl/oracle/ora_steora/init + export EXPLSTK=$TARGET_HOME/stelink/expl + export DATASTK=$TARGET_HOME/stelink/database/data + export DATABASESTK=$TARGET_HOME/stelink/database + export LOGDIRSTK=$EXPLSTK/log + export PROC_EXPL_STK=$EXPLSTK/proc + export UTILDIR=$STELINKDIR/util + + #---------------------------------------------------------------------------- + # LIVRAISON BACKUP APPLI SOURCE LST + #---------------------------------------------------------------------------- + export LIVRAISONSTK=$TARGET_HOME/livraison/stelink + export BACKUPSTK=$TARGET_HOME/backup/stelink + export APPLISTK=$TARGET_HOME/stelink/appli + export LSTDIRSTK=$EXPLSTK/lst + + #---------------------------------------------------------------------------- + # Tuxedo Queue Config + #---------------------------------------------------------------------------- + export QMCONFIG_STK=$TARGET_HOME/stelink/qspace/QUE + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/system b/etc/envmng.d/system new file mode 100644 index 0000000..6290b9c --- /dev/null +++ b/etc/envmng.d/system @@ -0,0 +1,43 @@ +# $RCSfile: system,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +path=/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/resmon/bin:/opt/pred/bin:/opt/langtools/bin:/opt/imake/bin:/opt/aCC/bin:/opt/cxperf/bin:/opt/scr/bin:/opt/graphics/common/bin:/opt/STK/bin:/opt/seos/bin + +shlib_path=/usr/lib + +manpath=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L:/opt/OV/man/itose:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/mqm/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/imake/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/cxperf/share/man:/opt/scr/share/man:/opt/graphics/common/man:/opt/EMCpower/share:/opt/STK/share/man + + + +case "$1" in + *profile) + export PATH=$(envmng_path_add "$PATH" "$path") + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + export MANPATH=$(envmng_path_add "$MANPATH" "$manpath") + + if [ "$DISPLAY" = "" ] + then + export DISPLAY="$($grep "^$LOGNAME:" $envmng_display | $sed -e "s/^$LOGNAME:[ \ ]*//" -e "s/[ \ ]*#.*$//"):0" + fi + + stty erase ^? + stty kill ^U + stty eol ^@ + stty susp ^Z + stty intr ^C +# stty rprnt ^R + stty werase ^W + stty lnext ^V + ;; + + *rc) + alias ls=ls + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/tux80 b/etc/envmng.d/tux80 new file mode 100644 index 0000000..a07dcf6 --- /dev/null +++ b/etc/envmng.d/tux80 @@ -0,0 +1,37 @@ +# $RCSfile: tux80,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export TUXDIR=/home/logiciel/tuxedo/tuxedo80 + export EXPLTUX=$TARGET_HOME/appli/expl/tuxedo + export CONFIGTUX=$EXPLTUX/config + export TUXCONFIG=$CONFIGTUX/tuxconfig + export LOGTUX=$EXPLTUX/log + export FSCONFIG=$CONFIGTUX/tlog/TLOG + + export FIELDTBLS=tpadm,evt_mib,std.fml,field.fml,Usysflds + export FIELDTBLS32=$FIELDTBLS + export FLDTBLDIR=$TUXDIR/udataobj + export FLDTBLDIR32=$FLDTBLDIR + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$TUXDIR/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$TUXDIR/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/tux80a b/etc/envmng.d/tux80a new file mode 100644 index 0000000..7a5bea6 --- /dev/null +++ b/etc/envmng.d/tux80a @@ -0,0 +1,37 @@ +# $RCSfile: tux80a,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case "$1" in + *profile) + export TUXDIR=/home/logiciel/tuxedo/tuxedo80a + export EXPLTUX=$TARGET_HOME/appli/expl/tuxedo + export CONFIGTUX=$EXPLTUX/config + export TUXCONFIG=$CONFIGTUX/tuxconfig + export LOGTUX=$EXPLTUX/log + export FSCONFIG=$CONFIGTUX/tlog/TLOG + + export FIELDTBLS=tpadm,evt_mib,std.fml,field.fml + export FIELDTBLS32=$FIELDTBLS + export FLDTBLDIR=$TUXDIR/udataobj + export FLDTBLDIR32=$FLDTBLDIR + + #---------------------------------------------------------------------------- + # PATH definitions + #---------------------------------------------------------------------------- + path=$TUXDIR/bin + export PATH=$(envmng_path_add "$PATH" "$path") + + shlib_path=$TUXDIR/lib + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + ;; + + *rc) + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac diff --git a/etc/envmng.d/user b/etc/envmng.d/user new file mode 100644 index 0000000..9d3fd50 --- /dev/null +++ b/etc/envmng.d/user @@ -0,0 +1,56 @@ +# $RCSfile: user,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +path=.:~/bin + +shlib_path=~/lib + +manpath=~/man + + + +case "$1" in + *profile) + set -o emacs + + export PATH=$(envmng_path_add "$PATH" "$path") + export SHLIB_PATH=$(envmng_path_add "$SHLIB_PATH" "$shlib_path") + export MANPATH=$(envmng_path_add "$MANPATH" "$man_path") + + export EDITOR=xemacs + export PAGER=less + ;; + + *rc) + export PS1="$(hostname)(\$LOGNAME)[\$ENVMNG_ID]\$PWD> " + + alias env-dtarget='envmng -S dtarget-gnu' + alias env-d2target='envmng -S d2target-gnu' + alias env-ksh='envmng --ksh' + alias env-bash='envmng --bash' + ;; + + *) + echo "$0: Invalid command: [$1] !" + ;; +esac + +if [ -f ~/.envmng_user ] +then + case "$1" in + *profile) + echo "envmng: profiling [user:$LOGNAME]..." + ;; + + *rc) + echo "envmng: rcing [user:$LOGNAME]..." + ;; + esac + + . ~/.envmng_user $1 +fi + +echo \ No newline at end of file diff --git a/etc/envmng_display b/etc/envmng_display new file mode 100644 index 0000000..fba8d13 --- /dev/null +++ b/etc/envmng_display @@ -0,0 +1,9 @@ +# $RCSfile: envmng_display,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +agibert: 10.3.26.159 # Arnaud Gibert +azertyz: 10.3.26.201 # XXX +qwertyq: 10.3.26.110 # YYYY diff --git a/etc/envmng_dtprofile b/etc/envmng_dtprofile new file mode 100644 index 0000000..ff52fbc --- /dev/null +++ b/etc/envmng_dtprofile @@ -0,0 +1,17 @@ +# $RCSfile: envmng_dtprofile,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +. /usr/local/bin/envmng --setid $1 norc + +case $2 in + *bash) + export SHELL=/usr/local/bin/bash + ;; + + *) + export SHELL=/bin/ksh + ;; +esac diff --git a/etc/envmng_id b/etc/envmng_id new file mode 100644 index 0000000..1a51df8 --- /dev/null +++ b/etc/envmng_id @@ -0,0 +1,10 @@ +# $RCSfile: envmng_id,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +dtarget: user:shell:imr:ic:cristal:stk:ora920a:tux80:mqm64:dtarget:snav:pvcs:purify:64bits:system:gnu +dtarget-gnu: user:gnu:shell:imr:ic:cristal:stk:ora920a:tux80:mqm64:dtarget:snav:pvcs:purify:64bits:system +d2target: user:shell:imr:ic:cristal:stk:ora817a:tux80a:mqm32:d2target:snav:pvcs:purify:32bits:system:gnu +d2target-gnu: user:gnu:shell:imr:ic:cristal:stk:ora817a:tux80a:mqm32:d2target:snav:pvcs:purify:32bits:system diff --git a/etc/envmng_profile b/etc/envmng_profile new file mode 100644 index 0000000..f00c586 --- /dev/null +++ b/etc/envmng_profile @@ -0,0 +1,16 @@ +# $RCSfile: envmng_profile,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +case $2 in + *bash) + . /usr/local/bin/envmng --$2 $1 + exit + ;; + + *) + . /usr/local/bin/envmng --$2 $1 norc + ;; +esac diff --git a/etc/envmng_protalias b/etc/envmng_protalias new file mode 100644 index 0000000..63a9f55 --- /dev/null +++ b/etc/envmng_protalias @@ -0,0 +1 @@ +envmng diff --git a/etc/envmng_protvar b/etc/envmng_protvar new file mode 100644 index 0000000..ca9e376 --- /dev/null +++ b/etc/envmng_protvar @@ -0,0 +1,18 @@ +DISPLAY +DT +ENVMNG_ID +ENVMNG_LIST +MAIL +LOGNAME +HOME +PS1 +PS2 +PS3 +PS4 +PWD +SHELL +SHLVL +TERM +TZ +USER +_ diff --git a/etc/envmng_rc b/etc/envmng_rc new file mode 100644 index 0000000..ed29999 --- /dev/null +++ b/etc/envmng_rc @@ -0,0 +1,16 @@ +# $RCSfile: envmng_rc,v $ +# $Revision: 1.1 $ +# $Name: $ +# $Date: 2009/01/12 17:59:03 $ +# $Author: agibert $ + +if [ "$(echo $- | /usr/bin/grep i)" != "" ] +then + if [ "$NEW_SHELL" != "" ] + then + export SHELL=$NEW_SHELL + . /usr/local/bin/envmng --setid $ENVMNG_ID + else + . /usr/local/bin/envmng --rc + fi +fi