9.3.9. color
A - Introduction
The `colour` command enables or disables colors in the output of the current instance of gcap-cli.
B - Prerequisites
User: setup, gviewadm, gview
Dependencies: N/A
C - Command
`colour {disable|enable}`
D - Procedure to display service statuses with color
The command prompt is displayed.
(gcap-cli)
Enter the command
colour enable
- ValidateThe system then displays the information in color
<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 - Procedure to display service reports without color
The command prompt is displayed.
(gcap-cli)
Enter the command
colour disable
- ValidateThe system then displays the information without color (see example below)
<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>