Modèle:SQWareProduction sqwsyb CheckstorageDatabase.ksh example
Révision datée du 6 mars 2023 à 10:41 par BatchUser (discussion | contributions) (Updated by BatchUser)
Sourcing sqwsyb_Global.lib v2023.04 SQWareProduction for Sybase (dbSQWare) ... #Standard (Locale) help for script sqwsyb_CheckstorageDatabase.ksh: # XXXXX : -Dist $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -h #Affichage de l'aide en ligne pour ce script $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -Locale en -h #Display online help for this script with forcing of the 'fr' locale (default locale managed by the variable gvsqw_Locale) $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -s #Display usage examples for this script $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com' #Add the mail list to the default address managed by the variable gvsqw_GlobalMail $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -SendReport #Send the log by email at the end of the treatment even if there is no error $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -I $DSQUERY -D <DbName> -NoMail #Desactive l'envoi de mail sur erreur a to $gvsqw_GlobalMail (par defaut, send on error) $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -I $DSQUERY -D <DbName> -Exec #Execute les commandes generees $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -I $DSQUERY -D <DbName> #Genere les commandes mais ne les execute pas ! $gvsqw_SybBin/sqwsyb_CheckstorageDatabase.ksh -I $DSQUERY -D <DbName> -FRT <NumericValue> -Exec #Force le code retour a '<NumericValue>' sur erreur (si pas d'erreur, exit 0!) #Vous pouvez aussi forcer le code retour de ce script pour tous #si vous settez la variable d'environnement: $gvsqw_ForcedReturnCodeScript_sqwsyb_CheckstorageDatabase=<NumericValue> #dans le fichier de configuration $gvsqw_SybBin/../etc_cust/sqwsyb_GlobalVar.cfg