Difference between revisions of "Template:SQWareProduction sqwcas CentralisedNodetool.ksh example"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by BatchUser)
m (Updated by BatchUser)
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<pre>
 
<pre>
Sourcing sqwcas_Global.lib v4.0.01 SQWareProduction for Cassandra (dbSQWare) ...  
+
Sourcing sqwcas_Global.lib v2024.03 SQWareProduction for Cassandra (dbSQWare) ...  
  
 
#Standard help for script sqwcas_CentralisedNodetool.ksh:
 
#Standard help for script sqwcas_CentralisedNodetool.ksh:
 
  
 
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -h
 
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -h
 
#Display online help for this script
 
#Display online help for this script
  
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -NoMail
+
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -Locale en -h
#Desactivate sendmail on error to $gvsqw_GlobalMail (by default, send on error)
+
#Display online help for this script with forcing of the 'en' locale (by default locale managed by $gvsqw_Locale)
  
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Exec
+
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -s
#Execute generated commands
+
#Display usage examples for this script
  
 
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options>
 
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options>
 
#Generate commands but don't execute them !
 
#Generate commands but don't execute them !
  
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C 'version' -S All -Exec
+
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Exec
#Execute 'nodetool version' command on all nodes of the cluster
+
#Execute nodetool command on all selected nodes in parallel (by default is local only)
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C 'version' -S <scope> -Exec
 +
#Execute 'nodetool version' command on <scope> nodes of the cluster : All, LocalDC ...
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -S All -Dist -Exec
 +
#Execute 'nodetool version' command on <scope> nodes, with distant connection on non-local instance $XXX and for All nodes
 +
#You need to register credentials to use for distant connection to the instance (user and so on) in file $gvsqw_DistPasswdFile
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Timeout -Exec
 +
#Timeout in seconds for kill inactive ssh session (by default is 3600, manage by $gvsqw_TimeOut)
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Dynamic -Exec
 +
#Force dynamic discovery of nodes (by default, search in \$gvsqw_RootCfg/$CAS_SID.clucfg)
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -AGR 20 -Exec
 +
#Set the waiting time in seconds between two command run, 20s here (by default is 10)
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -AGE 40 -Exec
 +
#Set the waiting time in seconds between two end checks, 40s here (by default is 30)
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com' -Exec
 +
#Add the mail list to the default address managed by $gvsqw_GlobalMail (only this time), if needed separate by commas
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -SendReport -Exec
 +
#Send the log by email at the end of the treatment even if there is no error (by default, send on error)
 +
 
 +
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -NoMail -Exec
 +
#Disables sending an email on error to $gvsqw_GlobalMail (by default, send on error)
  
 
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -FRT <NumericValue> -Exec
 
$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -FRT <NumericValue> -Exec
#Force return code to '<NumericValue>' on error (if no error, exit 0!)
+
#Force return code to '<NumericValue>' on error (if no error, "exit 0!")
 
#You can also force return code of this script on all your
 
#You can also force return code of this script on all your
 
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwcas_CentralisedNodetool=<NumericValue>
 
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwcas_CentralisedNodetool=<NumericValue>
 
#in configuration file $gvsqw_CasBin/../etc_cust/sqwcas_GlobalVar.cfg
 
#in configuration file $gvsqw_CasBin/../etc_cust/sqwcas_GlobalVar.cfg
 
 
</pre>
 
</pre>

Latest revision as of 16:13, 26 April 2024

Sourcing sqwcas_Global.lib v2024.03 SQWareProduction for Cassandra (dbSQWare) ... 

#Standard help for script sqwcas_CentralisedNodetool.ksh:

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -h
#Display online help for this script

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -Locale en -h
#Display online help for this script with forcing of the 'en' locale (by default locale managed by $gvsqw_Locale)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -s
#Display usage examples for this script

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options>
#Generate commands but don't execute them !

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Exec
#Execute nodetool command on all selected nodes in parallel (by default is local only)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C 'version' -S <scope> -Exec
#Execute 'nodetool version' command on <scope> nodes of the cluster : All, LocalDC ...

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -S All -Dist -Exec
#Execute 'nodetool version' command on <scope> nodes, with distant connection on non-local instance $XXX and for All nodes
#You need to register credentials to use for distant connection to the instance (user and so on) in file $gvsqw_DistPasswdFile

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Timeout -Exec
#Timeout in seconds for kill inactive ssh session (by default is 3600, manage by $gvsqw_TimeOut)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -Dynamic -Exec
#Force dynamic discovery of nodes (by default, search in \$gvsqw_RootCfg/$CAS_SID.clucfg)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -AGR 20 -Exec
#Set the waiting time in seconds between two command run, 20s here (by default is 10)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -AGE 40 -Exec
#Set the waiting time in seconds between two end checks, 40s here (by default is 30)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -AddMail 'mymail1@mydomaine.com,mymail2@mydomaine.com' -Exec
#Add the mail list to the default address managed by $gvsqw_GlobalMail (only this time), if needed separate by commas 

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -SendReport -Exec
#Send the log by email at the end of the treatment even if there is no error (by default, send on error)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -NoMail -Exec
#Disables sending an email on error to $gvsqw_GlobalMail (by default, send on error)

$gvsqw_CasBin/sqwcas_CentralisedNodetool.ksh -I $CAS_SID -C <command options> -FRT <NumericValue> -Exec
#Force return code to '<NumericValue>' on error (if no error, "exit 0!")
#You can also force return code of this script on all your
#environnement if you set the variable: $gvsqw_ForcedReturnCodeScript_sqwcas_CentralisedNodetool=<NumericValue>
#in configuration file $gvsqw_CasBin/../etc_cust/sqwcas_GlobalVar.cfg