(SPDs)
m (1 révision importée)
Ligne 1 : Ligne 1 :
=Utilisation de la console de ligne de commande (CLC)=
+
=Using the Command Line Console (CLC)=
{{#anc:Using the Command Line Console (CLC)}}
 
 
__TOC__
 
__TOC__
  
La console de ligne de commande (CLC) permet aux administrateurs d'utiliser la ligne de commande pour exécuter certaines fonctions GAX sur les [[SolutionPackageDefinitions|définitions de solution (SPD)]] et les [[InstallationPackages|packages d'installation (IP)]]. Par exemple, vous pouvez utiliser la CLC pour déployer les SPD silencieusement sur les hôtes distants.
+
The Command Line Console (CLC) enables administrators to use the command line to execute certain GAX functions on [[SolutionPackageDefinitions|solution definitions (SPDs)]] and [[InstallationPackages|installation packages (IPs)]]. For example, you might use the CLC to silently deploy SPDs onto remote hosts.
  
Vous devez pouvoir accéder à l'interface de ligne de commande du système d'exploitation pour utiliser la CLC. Si vous n'utilisez pas l'ordinateur hôte GAX, l'outil CLC ('''gaxclc.jar''') doit être disponible sur l'ordinateur local.
+
You must be able to access the operating system's command-line interface to use the CLC. If you are not on the GAX host machine, you must have the CLC tool ('''gaxclc.jar''') available on the local machine.
  
Pour accéder au fichier d'aide intégré de la CLC, exécutez l'une des commandes suivantes :
+
To access CLC's embedded Help file, execute one of the following commands:
  
 
<source lang="dos">
 
<source lang="dos">
Ligne 17 : Ligne 16 :
 
</source>
 
</source>
  
{{NoteFormat|Lorsque vous exécutez les commandes avec la CLC, un fichier journal est généré à l'emplacement d'exécution de l'outil.}}
+
{{NoteFormat|As you execute commands with CLC, a log file is generated in the same location as where the tool is executed.}}
  
{{#anc:Structure}}
 
 
==Structure==
 
==Structure==
La CLC prend en charge les commandes qui utilisent la structure suivante :
+
CLC supports commands that use the following structure:
  
 
<source lang="dos">
 
<source lang="dos">
Ligne 27 : Ligne 25 :
 
</source>
 
</source>
  
Dans l'exemple ci-dessus :
+
In the above example:
  
*<tt>-u:user</tt> correspond au nom de l'utilisateur utilisé pour se connecter à Configuration Server.
+
*<tt>-u:user</tt> is the user name to log in to Configuration Server.
*<tt>-p:password</tt> correspond au mot de passe utilisé pour se connecter à Configuration Server. La CLC suppose qu'il n'y a pas de mot de passe si aucune valeur n'est précisée pour cet indicateur.
+
*<tt>-p:password</tt> is the password to log in to Configuration Server. CLC assumes there is no password if this flag does not specify a value.
*<tt>-s</tt> demande à la CLC d'utiliser une connexion ''https'' sécurisée pour accéder au serveur GAX. Si cet indicateur n'est pas précisé, la CLC utilise ''http''.
+
*<tt>-s</tt> instructs CLC to use a secure ''https'' connection to the GAX server. If this flag is not specified, CLC uses ''http''.
*<tt>-h<host>:<port></tt> spécifie l'hôte et le port du serveur GAX. Si cet indicateur n'est pas précisé, la CLC utilise la valeur suivante : <tt>-h:localhost:8080</tt>.
+
*<tt>-h:<host>:<port></tt> specifies the host and port of the GAX server. If this flag is not specified, CLC uses the following value: <tt>-h:localhost:8080</tt>.
*<tt><function></tt> peut être <tt>ip</tt> ou <tt>spd</tt>.
+
*<tt><function></tt> can be either <tt>ip</tt> or <tt>spd</tt>.
*<tt><operation></tt> spécifie l'action à exécuter. Les valeurs valides de cet indicateur sont spécifiques à la fonction indiquée lors de l'étape précédente (<tt>ip</tt> ou <tt>spd</tt>).
+
*<tt><operation></tt> specifies the operation to be executed. The valid values for this flag are specific to the function you specified in the previous step (<tt>ip</tt> or <tt>spd</tt>).
*<tt><args></tt> spécifie les arguments d'action. Les valeurs valides de cet indicateur sont spécifiques aux paramètres <tt><function></tt> et <tt><operation></tt> définis lors des étapes précédentes.
+
*<tt><args></tt> specifies the operation arguments. The valid values for this flag are specific to the <tt><function></tt> and <tt><operation></tt> parameters you specified in the previous steps.
  
Voici un exemple de commande CLC :
+
The following is an example of a CLC command:
  
 
<source lang="dos">
 
<source lang="dos">
Ligne 43 : Ligne 41 :
 
</source>
 
</source>
  
{{#anc:SPDs}}
+
==SPDs==
==SPD (Définitions de solution)==
+
CLC supports the following operations for SPDs:
La CLC prend en charge les actions suivantes concernant les SPD :
 
  
 
*<tt>add</tt>
 
*<tt>add</tt>
Ligne 52 : Ligne 49 :
 
*<tt>execute</tt>
 
*<tt>execute</tt>
 
*<tt>delete</tt>
 
*<tt>delete</tt>
*<tt>encrypt</tt> (voir l’onglet <tt>execute</tt>)
+
*<tt>encrypt</tt> (see <tt>execute</tt> tab)
  
 
<div class="cloud-tabberlive-wrapper">
 
<div class="cloud-tabberlive-wrapper">
Ligne 61 : Ligne 58 :
 
<div class="cloud-left">
 
<div class="cloud-left">
  
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation adds an SPD to the GAX database. If the SPD already exists, as determined by the name and version in the SPD XML, this operation replaces the existing SPD.  
Cette action ajoute une SPD à la base de données GAX. Si la définition de solution existe déjà, et se termine par le nom et la version dans le XML de la SPD, cette action remplace la SPD existante.  
 
  
En cas de réussite, l'action renvoie l'ID de la SPD ajoutée.
+
If successful, the operation returns the ID of the added SPD.
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 73 : Ligne 68 :
 
</source>
 
</source>
  
*<tt>"file path"</tt>&mdash;Chemin d'accès au fichier XML.
+
*<tt>"file path"</tt>&mdash;The path to the XML file.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password spd add "c:\GAX\newSpd.xml"
 
java -jar gaxclc.jar -u:default -p:password spd add "c:\GAX\newSpd.xml"
Ligne 87 : Ligne 81 :
 
<h2>query</h2>
 
<h2>query</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation queries all SPDs and displays a table that lists the following for each SPD:
Cette action interroge toutes les SPD et affiche un tableau qui répertorie les détails suivants relatifs à chaque SPD :
 
  
*Numéro d’ID
+
*ID number
*Nom
+
*Name
 
*Version
 
*Version
*ID base de données du locataire
+
*Tenant DBID
  
Voici un exemple :
+
The following is an example:
  
 
<source lang="text">
 
<source lang="text">
Ligne 104 : Ligne 97 :
 
</source>
 
</source>
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 110 : Ligne 102 :
 
</source>
 
</source>
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password -s -h:132.45.43.45:443 spd query
 
java -jar gaxclc.jar -u:default -p:password -s -h:132.45.43.45:443 spd query
Ligne 122 : Ligne 113 :
 
<h2>querybyid</h2>
 
<h2>querybyid</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation queries an SPD by its ID. If the SPD does not exist, the operation fails.
Cette action interroge une SPD à l'aide de son ID. Si la SPD n'existe pas, l'action échoue.
 
  
En cas de réussite, l'action affiche un tableau qui répertorie les détails suivants sur la SPD :
+
If successful, the operation displays a table that lists the following details about the SPD:
  
*ID du profil
+
*Profile ID
*Nom
+
*Name
  
Par exemple :
+
For example:
 
<source lang="text">
 
<source lang="text">
 
1 Install
 
1 Install
 
</source>
 
</source>
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 142 : Ligne 131 :
 
</source>
 
</source>
  
*<tt>SPDID</tt>&mdash;ID de la SPD interrogée.
+
*<tt>SPDID</tt>&mdash;The ID of the SPD that is being queried.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password -h:132.45.43.45:8080 spd query 4374
 
java -jar gaxclc.jar -u:default -p:password -h:132.45.43.45:8080 spd query 4374
Ligne 156 : Ligne 144 :
 
<h2>execute</h2>
 
<h2>execute</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation executes a SPD.
Cette action exécute une SPD.
 
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos" enclose="div">
 
<source lang="dos" enclose="div">
Ligne 166 : Ligne 152 :
 
</source>
 
</source>
 
<br>
 
<br>
*<tt>SPDID</tt>&mdash;ID de la SPD à exécuter.
+
*<tt>SPDID</tt>&mdash;The ID of the SPD to be executed.
*<tt>profileName|-profileID:profileID|-profileName:profileName</tt>&mdash;Le profil SPD à exécuter.
+
*<tt>profileName|-profileID:profileID|-profileName:profileName</tt>&mdash;The SPD profile to be executed.
{{NoteFormat|Si aucun indicateur n'est spécifié, <tt>profileName</tt> est considéré comme étant le profil de SPD à exécuter.}}
+
{{NoteFormat|If no flag is specified, then <tt>profileName</tt> is assumed as the SPD profile to be executed.}}
*<tt>-encrypted</tt>&mdash;Si spécifié, indique si le fichier d'entrée est chiffré.
+
*<tt>-encrypted</tt>&mdash;If specified, indicates if the input file is encrypted.
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher l’utilisation" hidetext="[-] Masquer utilisation">
+
<toggledisplay linkstyle font-size:larger showtext="[+] Show Usage" hidetext="[-] Hide Usage">
  
La CLC prend en charge le chiffrement pour les fichiers d'entrée qui comprennent des données sensibles comme les mots de passe.
+
CLC provides encryption support for input files that include sensitive data such as passwords.
  
Format :
+
Format:
 
<source lang="dos">
 
<source lang="dos">
 
java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd encrypt "input file path" "encrypted output file path"
 
java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd encrypt "input file path" "encrypted output file path"
 
</source>
 
</source>
  
Le fichier d’entrée chiffré est conservé à l’emplacement spécifié par <tt>"encrypted output file path"</tt>. Si le fichier existe déjà à cet emplacement, il est écrasé.
+
The encrypted input file is stored in the location specified by <tt>"encrypted output file path"</tt>. If the file already exists at this location, it is overwritten.
  
Exemple :  
+
Example:  
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password spd -encrypted "c:\GAX\input.txt" "c:\GAX\encrypted.txt"
 
java -jar gaxclc.jar -u:default -p:password spd -encrypted "c:\GAX\input.txt" "c:\GAX\encrypted.txt"
Ligne 190 : Ligne 176 :
 
</source>
 
</source>
 
</toggledisplay>
 
</toggledisplay>
*<tt>"input file"</tt>&mdash;Spécifie le fichier d’entrée qui contient les paramètres de SPD. Si <tt>-encrypted</tt> est défini, le fichier d'entrée est chiffré.
+
*<tt>"input file"</tt>&mdash;Specifies the input file that contains SPD parameters. If <tt>-encrypted</tt> is set, the input file is encrypted.
Le fichier d'entrée doit être au format JSONObject et comprendre les paramètres de SPD d'un profil spécifique. Le fichier doit être codé au format UTF-8.
+
The input file must be in JSONObject format and include SPD parameters for a specific profile. The file must be encoded in UTF-8 format.
<toggledisplay linkstyle font-size:larger showtext="[+] Afficher l’utilisation" hidetext="[-] Masquer utilisation">
+
<toggledisplay linkstyle font-size:larger showtext="[+] Show usage" hidetext="[-] Hide usage">
  
'''Type CHAINE'''
+
'''STRING Type'''
  
La structure d'entrée du type ''chaîne'' est décrite ci-après :
+
The input structure for a ''string'' type is described below:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 205 : Ligne 191 :
 
</source><br>
 
</source><br>
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
  
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
Ligne 231 : Ligne 215 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 244 : Ligne 227 :
 
</source><br>
 
</source><br>
  
'''Type BOOLEEN'''
+
'''BOOLEAN Type'''
  
La structure d'entrée du type ''booléen'' est décrite ci-après :
+
The input structure for a ''boolean'' type is described below:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 255 : Ligne 238 :
 
</source><br>
 
</source><br>
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
<profile name="Install">
 
<profile name="Install">
Ligne 275 : Ligne 256 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 285 : Ligne 265 :
 
</source><br>
 
</source><br>
  
'''Type ENTIER'''
+
'''INTEGER Type'''
  
La structure d'entrée du type ''entier'' est décrite ci-après :
+
The input structure for an ''integer'' type is described below:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 296 : Ligne 276 :
 
</source><br>
 
</source><br>
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
<profile name="Install">
 
<profile name="Install">
Ligne 316 : Ligne 294 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 326 : Ligne 303 :
 
</source><br>
 
</source><br>
  
'''Type MOT DE PASSE'''
+
'''PASSWORD Type'''
  
La structure d'entrée du type ''mot de passe'' est décrite ci-après :
+
The input structure for a ''password'' type is described below:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 337 : Ligne 314 :
 
</source><br>
 
</source><br>
  
{{NoteFormat|Les fichiers d'entrée comprenant des données sensibles comme des mots de passe doivent être chiffrés à l'aide d'une opération de chiffrement SPD.}}
+
{{NoteFormat|Input files that include sensitive data such as passwords should be encrypted using the SPD encrypt operation.}}
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
<profile name="Install">
 
<profile name="Install">
Ligne 359 : Ligne 334 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 369 : Ligne 343 :
 
</source><br>
 
</source><br>
  
'''Type SELECTION UNIQUE'''
+
'''SELECTONE Type'''
  
La structure d'entrée du type ''sélection unique'' avec une balise '''<objectselect>''' est décrite ci-après :
+
The input structure for a ''selectOne'' type with an '''<objectselect>''' tag is described bellow:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 388 : Ligne 362 :
 
</source><br>
 
</source><br>
  
{{NoteFormat|CLC croise les filtres (''ET'') définis dans le fichier SPD et le fichier d'entrée de l'entrée ''sélection unique''. Les critères de filtre doivent être différents dans le fichier d'entrée SPD et les noms des filtres doivent être différents dans la même définition de filtre.}}
+
{{NoteFormat|CLC intersects (''AND'') filters defined in the SPD file and input file for a ''selectOne'' input. The filter criteria should be different in an SPD input file and filter names should differ in the same filter definition.}}
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
<profile name="Install">
 
<profile name="Install">
Ligne 413 : Ligne 385 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 431 : Ligne 402 :
 
</source><br>
 
</source><br>
  
'''Type SELECTION MULTIPLE'''
+
'''SELECTMULTIPLE Type'''
  
La structure d'entrée du type ''sélection multiple'' avec une balise '''<objectselect>''' est décrite ci-après :
+
The input structure for a ''selectMultiple'' type with '''<objectselect>''' tag is described below:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 450 : Ligne 421 :
 
</source><br>
 
</source><br>
  
Les filtres définis dans un fichier d'entrée SPD sont associés (''OU'') puis croisés (''ET'') avec les filtres définis dans un fichier SPD d'une entrée de type ''sélection multiple''.
+
Filters defined in an SPD input file are joined in union (''OR'') and then intersect (''AND'') with filters defined in an SPD file for a ''selectMultiple'' input.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
<profile name="Install">
 
<profile name="Install">
Ligne 475 : Ligne 444 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 496 : Ligne 464 :
 
</source><br>
 
</source><br>
  
L'opération renvoie deux applications nommées '''SIP_lrm26''' et '''SIP_lrm27'''.
+
The operation returns two applications named '''SIP_lrm26''' and '''SIP_lrm27'''.
  
'''Type SELECTION UNIQUE'''
+
'''SELECTONE Type'''
  
La structure d'entrée du type ''sélection unique/sélection multiple/booléen'' avec une balise '''<selection>''' est décrite ci-après :
+
The input structure for a ''selectOne/selectMultiple/boolean'' type with '''<selection>''' tag is described below:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 517 : Ligne 485 :
 
</source><br>
 
</source><br>
  
CLC sélectionne les options définies dans le fichier d'entrée SPD. Il n'est possible de spécifier plusieurs options que pour le type d'entrée ''sélection multiple''.
+
CLC selects options defined in the SPD input file. Multiple options can be specified only for the ''selectMultiple'' input type.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
  
{{#anc:SPD Profile}}
+
=====SPD Profile=====
=====Profil SPD=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
<profile name="Install">
 
<profile name="Install">
Ligne 543 : Ligne 509 :
 
</source><br>
 
</source><br>
  
{{#anc:Input File for Install Profile}}
+
=====Input File for Install Profile=====
=====Fichier d’entrée du profil d’installation=====
 
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
{
 
{
Ligne 563 : Ligne 528 :
 
{{NoteFormat|
 
{{NoteFormat|
 
<ul>
 
<ul>
<li>Si le fichier d'entrée ne contient pas de valeur pour un paramètre de SPD, la valeur définie dans l'attribut '''par défaut''' de l'élément d'entrée est utilisée.</li>
+
<li>If the input file does not specify a value for a SPD parameter, the value defined in the '''default''' attribute of the input element will be used.</li>
<li>Si l'attribut '''requis''' d'un élément d'entrée de la définition de solution est défini sur <tt>vrai</tt> en l'absence de valeur d'entrée correspondante dans la SPD (valeur par défaut) ou dans le fichier d'entrée, l'exécution de la définition de solution échoue.</li>
+
<li>If an SPD input element has the '''required''' attribute set to <tt>true</tt>, but there is no corresponding input value that is supplied in either the SPD (as a default) or in the input file, then the SPD execution fails.</li>
<li>Si la valeur de l'attribut '''lecture seule''' d'un élément d'entrée de SPD est défini sur <tt>vrai</tt>, la valeur de l'attribut '''par défaut''' est utilisée pour l'exécution si elle est définie.
+
<li>If an SPD input element has the '''readonly''' attribute value set to <tt>true</tt>, then the value in the '''default''' attribute value is used for the execution, if defined.
  
Si la valeur de l'attribut '''lecture seule''' est définie sur vrai, la valeur '''requis''' est définie sur <tt>faux</tt> et que l'attribut '''par défaut''' n'est pas défini, la logique suivante est appliquée pour déterminer la valeur d'entrée :
+
If the '''readonly''' attribute value is set to true, '''required''' is set to <tt>false</tt>, and the '''default''' attribute is not defined, then the following logic is used for input value determination:
 
<ol>
 
<ol>
<li>Avec un type d'entrée ''booléen'', la valeur d'entrée est définie sur <tt>faux</tt>.</li>
+
<li>For the ''boolean'' input type, the input value is set to <tt>false</tt>.</li>
<li>Avec les types d'entrée ''chaîne'' et ''mot de passe'', la valeur d'entrée est définie sur <tt>""</tt>.</li>
+
<li>For the ''string'' and ''password'' input types, the input value is set to <tt>""</tt>.</li>
<li>Avec le type d'entrée ''entier'', l'entrée n'est pas propagée.</li>
+
<li>For the ''integer'' input type, the input is not propagated.</li>
 
</ol></li>
 
</ol></li>
<li>Si la valeur de l'attribut '''cond''' d'une boîte de dialogue est définie sur faux, cette boîte de dialogue est ignorée par l'outil CLC.
+
<li>If a dialog '''cond''' attribute value evaluates to false, the dialog is skipped by the CLC tool.
  
Exemple :
+
Example:
 
<source lang="xml" enclose="div">
 
<source lang="xml" enclose="div">
 
  <dialog step="Role input" cond="false">
 
  <dialog step="Role input" cond="false">
Ligne 591 : Ligne 556 :
 
</toggledisplay>
 
</toggledisplay>
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos" enclose="div">
 
<source lang="dos" enclose="div">
 
java -jar gaxclc.jar -u:default -p:password -s -h:localhost:8080 spd execute 10054 -profileID:1 "C:/GAX/input.txt"
 
java -jar gaxclc.jar -u:default -p:password -s -h:localhost:8080 spd execute 10054 -profileID:1 "C:/GAX/input.txt"
Ligne 611 : Ligne 575 :
 
<h2>delete</h2>
 
<h2>delete</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation deletes an SPD. If SPD does not exist, the operation fails.
Cette action supprime une SPD. Si la SPD n'existe pas, l'action échoue.
 
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 621 : Ligne 583 :
 
</source>
 
</source>
  
*<tt>SPDID</tt>&mdash;ID de la SPD à supprimer.
+
*<tt>SPDID</tt>&mdash;The ID of the SPD to be deleted.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password spd delete 5436
 
java -jar gaxclc.jar -u:default -p:password spd delete 5436
Ligne 633 : Ligne 594 :
 
</div>
 
</div>
  
{{#anc:IPs}}
+
==IPs==
==Packages d’installation==
+
CLC supports the following operations for the <tt>ip</tt> function:
La CLC prend en charge les actions suivantes concernant la fonction <tt>ip</tt> :
 
  
 
*<tt>add</tt>
 
*<tt>add</tt>
Ligne 648 : Ligne 608 :
 
<h2>add</h2>
 
<h2>add</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation adds an IP (packaged as a .zip file) to the GAX database. If the IP already exists, it is replaced.
Cette action ajoute un package d'installation (sous la forme d'un fichier .zip) à la base de données GAX. Si le package d'installation existe déjà, il est remplacé.
 
  
En cas de réussite, l'action affiche l'ID du package d'installation.
+
If successful, the operation displays the ID of the IP.
  
{{NoteFormat|Le fichier .zip doit contenir le package d'installation et le dossier de modèles du package d'installation.}}
+
{{NoteFormat|The .zip file must contain the IP and the templates folder for the IP.}}
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 663 : Ligne 621 :
  
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos" enclose="div">
 
<source lang="dos" enclose="div">
 
java -jar gaxclc.jar -u:default -p:password ip add "C:\GAX\TESTS\zippedIpUpload\PRODUCTION\IP_TSrvSIP64_18100079b1_ENU_windows.zip"
 
java -jar gaxclc.jar -u:default -p:password ip add "C:\GAX\TESTS\zippedIpUpload\PRODUCTION\IP_TSrvSIP64_18100079b1_ENU_windows.zip"
Ligne 675 : Ligne 632 :
 
<h2>query</h2>
 
<h2>query</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation queries all IPs and displays a table that lists the following details for each IP:
Cette action interroge tous les packages d'installation et affiche un tableau qui répertorie les détails suivants sur chaque package d'installation :
 
  
*Numéro d’ID
+
*ID number
*Nom
+
*Name
 
*Version
 
*Version
*SE
+
*OS
*Paramètres régionaux
+
*Locale
*Etat
+
*Status
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 692 : Ligne 647 :
 
</source>
 
</source>
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password -s -h:132.45.43.45:443 ip query
 
java -jar gaxclc.jar -u:default -p:password -s -h:132.45.43.45:443 ip query
Ligne 704 : Ligne 658 :
 
<h2>querybyid</h2>
 
<h2>querybyid</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation queries an IP by its ID and displays a table that lists the following details:
Cette action interroge un package d'installation à l'aide de son ID et affiche un tableau qui répertorie les détails suivants :
 
  
*Numéro d’ID
+
*ID number
*Nom
+
*Name
 
*Version
 
*Version
*SE
+
*OS
*Paramètres régionaux
+
*Locale
*Etat
+
*Status
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 721 : Ligne 673 :
 
</source>
 
</source>
  
*<tt>IPID</tt>&mdash;ID du package d’installation à interroger.
+
*<tt>IPID</tt>&mdash;The ID of the IP to query.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password -h:132.45.43.45:8080 ip query 543
 
java -jar gaxclc.jar -u:default -p:password -h:132.45.43.45:8080 ip query 543
Ligne 735 : Ligne 686 :
 
<h2>delete</h2>
 
<h2>delete</h2>
 
<div class="cloud-left">
 
<div class="cloud-left">
{{#anc:Overview}}
+
====Overview====
====Présentation====
+
This operation deletes an IP.
Cette action supprime un package d'installation.
 
  
{{#anc:Format}}
 
 
====Format====
 
====Format====
 
<source lang="dos">
 
<source lang="dos">
Ligne 745 : Ligne 694 :
 
</source>
 
</source>
  
*<tt>IPID</tt>&mdash;ID du package d’installation à supprimer.
+
*<tt>IPID</tt>&mdash;The ID of the IP to delete.
  
{{#anc:Example}}
+
====Example====
====Exemple====
 
 
<source lang="dos">
 
<source lang="dos">
 
java -jar gaxclc.jar -u:default -p:password ip delete 547
 
java -jar gaxclc.jar -u:default -p:password ip delete 547

Version du mai 10, 2019 à 17:10

Using the Command Line Console (CLC)

The Command Line Console (CLC) enables administrators to use the command line to execute certain GAX functions on solution definitions (SPDs) and installation packages (IPs). For example, you might use the CLC to silently deploy SPDs onto remote hosts.

You must be able to access the operating system's command-line interface to use the CLC. If you are not on the GAX host machine, you must have the CLC tool (gaxclc.jar) available on the local machine.

To access CLC's embedded Help file, execute one of the following commands:

java –jar gaxclc.jar help
java –jar gaxclc.jar ?
Important
As you execute commands with CLC, a log file is generated in the same location as where the tool is executed.

Structure

CLC supports commands that use the following structure:

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> <function> <operation> <args>

In the above example:

  • -u:user is the user name to log in to Configuration Server.
  • -p:password is the password to log in to Configuration Server. CLC assumes there is no password if this flag does not specify a value.
  • -s instructs CLC to use a secure https connection to the GAX server. If this flag is not specified, CLC uses http.
  • -h:<host>:<port> specifies the host and port of the GAX server. If this flag is not specified, CLC uses the following value: -h:localhost:8080.
  • <function> can be either ip or spd.
  • <operation> specifies the operation to be executed. The valid values for this flag are specific to the function you specified in the previous step (ip or spd).
  • <args> specifies the operation arguments. The valid values for this flag are specific to the <function> and <operation> parameters you specified in the previous steps.

The following is an example of a CLC command:

java -jar gaxclc.jar -u:default -p:password -h:localhost:8080 spd execute 10054 1 "C:/GAX/input.txt"

SPDs

CLC supports the following operations for SPDs:

  • add
  • query
  • querybyid
  • execute
  • delete
  • encrypt (see execute tab)

add

Overview

This operation adds an SPD to the GAX database. If the SPD already exists, as determined by the name and version in the SPD XML, this operation replaces the existing SPD.

If successful, the operation returns the ID of the added SPD.

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd add "file path"
  • "file path"—The path to the XML file.

Example

java -jar gaxclc.jar -u:default -p:password spd add "c:\GAX\newSpd.xml"

query

Overview

This operation queries all SPDs and displays a table that lists the following for each SPD:

  • ID number
  • Name
  • Version
  • Tenant DBID

The following is an example:

10054 gvp 8.1.5 1
10060 genesysOne 8.1.5 1
10060 eServices 8.1.5 1

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd query

Example

java -jar gaxclc.jar -u:default -p:password -s -h:132.45.43.45:443 spd query

querybyid

Overview

This operation queries an SPD by its ID. If the SPD does not exist, the operation fails.

If successful, the operation displays a table that lists the following details about the SPD:

  • Profile ID
  • Name

For example:

1 Install

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd query SPDID
  • SPDID—The ID of the SPD that is being queried.

Example

java -jar gaxclc.jar -u:default -p:password -h:132.45.43.45:8080 spd query 4374

execute

Overview

This operation executes a SPD.

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd execute SPDID profileName|-profileID:profileID|-profileName:profileName -encrypted "input file"


  • SPDID—The ID of the SPD to be executed.
  • profileName|-profileID:profileID|-profileName:profileName—The SPD profile to be executed.
Important
If no flag is specified, then profileName is assumed as the SPD profile to be executed.
  • -encrypted—If specified, indicates if the input file is encrypted.
[+] Show Usage
  • "input file"—Specifies the input file that contains SPD parameters. If -encrypted is set, the input file is encrypted.

The input file must be in JSONObject format and include SPD parameters for a specific profile. The file must be encoded in UTF-8 format.

[+] Show usage

Example

java -jar gaxclc.jar -u:default -p:password -s -h:localhost:8080 spd execute 10054 -profileID:1 "C:/GAX/input.txt"


java -jar gaxclc.jar -u:default -p:password -h:localhost:8080 spd execute 10054 -profileName:"Install profile" "C:/GAX/input.txt"


java -jar gaxclc.jar -u:default -p:password -s -h:localhost:8080 spd execute 10054 1 -encrypted "C:/GAX/encryptedinput.txt"

delete

Overview

This operation deletes an SPD. If SPD does not exist, the operation fails.

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> spd delete SPDID
  • SPDID—The ID of the SPD to be deleted.

Example

java -jar gaxclc.jar -u:default -p:password spd delete 5436

IPs

CLC supports the following operations for the ip function:

  • add
  • query
  • querybyid
  • delete

add

Overview

This operation adds an IP (packaged as a .zip file) to the GAX database. If the IP already exists, it is replaced.

If successful, the operation displays the ID of the IP.

Important
The .zip file must contain the IP and the templates folder for the IP.

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> ip add "path to IP zip file"


Example

java -jar gaxclc.jar -u:default -p:password ip add "C:\GAX\TESTS\zippedIpUpload\PRODUCTION\IP_TSrvSIP64_18100079b1_ENU_windows.zip"

query

Overview

This operation queries all IPs and displays a table that lists the following details for each IP:

  • ID number
  • Name
  • Version
  • OS
  • Locale
  • Status

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> ip query

Example

java -jar gaxclc.jar -u:default -p:password -s -h:132.45.43.45:443 ip query

querybyid

Overview

This operation queries an IP by its ID and displays a table that lists the following details:

  • ID number
  • Name
  • Version
  • OS
  • Locale
  • Status

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> ip query IPID
  • IPID—The ID of the IP to query.

Example

java -jar gaxclc.jar -u:default -p:password -h:132.45.43.45:8080 ip query 543

delete

Overview

This operation deletes an IP.

Format

java –jar gaxclc.jar -u:user -p:password -s -h:<host>:<port> ip delete IPID
  • IPID—The ID of the IP to delete.

Example

java -jar gaxclc.jar -u:default -p:password ip delete 547

Comments or questions about this documentation? Contact us for support!