9.3.9. colour
A - Introduction
La commande `colour` permet d’activer ou désactiver les couleurs dans les sorties de l’instance en cours de gcap-cli.
B - Prérequis
Utilisateur : setup, gviewadm, gview
Dépendances : N/A
C - Commande
`colour {disable|enable}`
D - Procédure pour afficher des statuts des services avec de la couleur
L’invite de commande est affichée.
(gcap-cli)
Saisir la commande
colour enable
- ValiderLe système affiche ensuite les informations avec de la couleur
<pre> <span style="color:green;">[Monitoring UP]</span> <span style="color:red;">GCap</span><span style="color:blue;"> (gcap-cli)</span> service status <span style="color:green;">up</span> - Service eve-generation <span style="color:green;">up</span> - Service eve-upload <span style="color:green;">up</span> - Service file-extraction <span style="color:green;">up</span> - Service file-upload <span style="color:red;">down</span> - Service filter-fileinfo <span style="color:red;">down</span> - Service eve-compress <span style="color:green;">[Monitoring UP]</span> <span style="color:red;">GCap</span><span style="color:blue;"> (gcap-cli)</span> colour disable </pre>
E - Exemple pour afficher des états des services sans la couleur
L’invite de commande est affichée.
(gcap-cli)
Saisir la commande
colour disable
- ValiderLe système affiche ensuite les informations sans la couleur voir (exemple ci-après)
<pre> [Monitoring UP] GCap (gcap-cli) service status up - Service eve-generation up - Service eve-upload up - Service file-extraction up - Service file-upload down - Service filter-fileinfo down - Service eve-compress </pre>