CDT in Gaia Clish

Background

Starting from version 1.9.0, you can run the CDT commands from Gaia Clish with the help of the Gaia Dynamic CLI (see sk144112).

Dynamic CLI enhances Gaia Clish with commands from the Expert mode.

Each CLI command is granted with the full set of Role Based Access capabilities, from read-write granularity to a varied number of roles and permission levels (depending on your needs).

The Dynamic CLI commands have the same syntax, concept, and documentation as the Gaia Clish commands.

Dynamic CLI was created for these purposes:

  • To secure access to the "Expert" capabilities without compromising the "Expert" passwords or sharing all the "Expert" capabilities.

  • To separate between monitor roles or read-only users and administrators.

    For example, users with monitor roles can see Security Gateway logs without an access to the "Expert" space.

Installation Instructions

Management Server Version Installation Instructions

R81.10 and higher

The minimum required CDT version is integrated.

R81

Install the CDT package v1.9.0 or higher from sk111158.

R80.40

Follow these steps:

  1. Install the R80.40 Jumbo Hotfix Accumulator Take 77 or higher.

  2. Install the CDT package v1.9.0 or higher from sk111158.

  3. Run this script in the Expert mode:

    /opt/CPcdt/Clish_Cdt_Installer.py

(End of Life since Sep 2022)

R80.30

Follow these steps:

  1. Install the R80.30 Jumbo Hotfix Accumulator Take 215 or higher.

  2. Install the latest Gaia Dynamic CLI from sk144112.

  3. Install the CDT package v1.9.0 or higher from sk111158.

  4. Run this script in the Expert mode:

    /opt/CPcdt/Clish_Cdt_Installer.py

(End of Life since Sep 2022)

R80.20.M2

R80.20

R80.20.M1

R80.10

Follow these steps:

  1. Install the latest Gaia Dynamic CLI from sk144112.

  2. Install the CDT package v1.9.0 or higher from sk111158.

  3. Run this script in the Expert mode:

    /opt/CPcdt/Clish_Cdt_Installer.py

Description of Directories

During the installation, the CDT creates these directories:

Directory Description

/opt/CPcdt/CandidateListsRepository/

Repository to keep the Installation Candidates List Files that Gaia Clish users create.

Gaia Clish users have a "read" and "write" access to this directory.

For security reasons, all Installation Candidates List Files are located in this directory.

/opt/CPcdt/DeploymentPlanRepository/

Repository to keep the Deployment Plan Files that Gaia Clish users configure.

Gaia Clish users have a "read" and "write" access to this directory.

For security reasons, all Deployment Plan Files are located in this directory.

Important Note for Multi-Domain Security Management Server:

A SuperUser must manually create the Deployment Plan Files directory for each applicable Domain Management Server.

The required permissions for this directory are "read" (r), "write" (w), and "execute" (x).

Run this command in the Expert mode on the Multi-Domain Security Management Server:

mkdir –m777 /opt/CPcdt/DeploymentPlanRepository/<Name of Domain Management Server as configured in SmartConsole>

CDT Syntax in Gaia Clish

Syntax for all commands:

show cdt[ESC][ESC]

set cdt[ESC][ESC]

start cdt[ESC][ESC]

Syntax for the 'show' commands:

show cdt
      candidates
            candidates-list "<Path to Installation Candidates List File>.csv"
                  server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
                  [session <Name of Management Session without Spaces>]
      execute-output
            server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
            [session <Name of Management Session without Spaces>]
      generate-output
            server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
            [session <Name of Management Session without Spaces>]
      status
            server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
            [session <Name of Management Session without Spaces>]

Note:

The parameter "session <Name of Management Session without Spaces>" is optional (available from CDT v1.9.8).

Use it to run several different CDT sessions at the same time (enter a desired session name - a text string without spaces).

Syntax for the 'set' commands:

set cdt candidates
      candidates-list "<Path to Installation Candidates List File>.csv"
            disable-candidate <Name of Security Gateway or Cluster Member Object>
                  server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
                  [session <Name of Management Session without Spaces>]
            enable-candidate <Name of Security Gateway or Cluster Member Object>
                  server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
                  [session <Name of Management Session without Spaces>]

Note:

The parameter "session <Name of Management Session without Spaces>" is optional (available from CDT v1.9.8).

Use it to run several different CDT sessions at the same time (enter a desired session name - a text string without spaces).

Syntax for the 'start' commands:

start cdt
      execute
            deployment-plan "<Path to Deployment Plan File>"
                  candidates-list "<Path to Installation Candidates List File>.csv"
                        server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
                        [session <Name of Management Session without Spaces>]
                  filter <Path to Filter File>
                        server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
                        [session <Name of Management Session without Spaces>]
      generate-candidates
            deployment-plan "<Path to Deployment Plan File>"
                  candidates-list "<Path to Installation Candidates List File>.csv"
                        server <IP Address or Name of Domain Management Server>
                  filter <Path to Filter File>
                        candidates-list "<Path to Installation Candidates List File>.csv"
                              server <IP Address or Name of Domain Management Server> [session <Name of Management Session without Spaces>]
                              [session <Name of Management Session without Spaces>]

Notes:

  • The CDT automatically looks for the specified Installation Candidates List File in the /opt/CPcdt/CandidateListsRepository/ directory.

    Example file name: "Candidates.csv"

  • The CDT automatically looks for the specified Deployment Plan File in the /opt/CPcdt/DeploymentPlanRepository/ directory.

    Example file name: "DeploymentPlan.xml"

  • SNIPPET: This explanation is for Gaia ClishThe parameter "session <Name of Management Session without Spaces>" is optional (available from CDT v1.9.8).Use it to run several different CDT sessions at the same time (enter a desired session name - a text string without spaces).

Gaia Clish Permissions for CDT Commands

To run specific CDT commands in Gaia Clish, a Gaia administrator must configure the feature cdt in the applicable user role.

CDT Commands in Gaia Clish Gaia Clish Requirement

show cdt

There are no requirements.

set cdt

To run these commands, a Gaia administrator must configure the feature cdt (Central Deployment Tool) with the Read / Write permission in the applicable user role.

start cdt

To run these commands, a Gaia administrator must configure the feature cdt (Central Deployment Tool) with the Read / Write permission in the applicable user role.

For more information about Gaia roles, see the Gaia Administration Guide for your version of the Management Server (Chapter "User Management").

Examples