Print Download PDF Send Feedback

Previous

Next

User Defined (Extended) Commands

Description

Manage user defined (extended) commands in Gaia Clish. Extended commands include:

  1. Built in extended commands. These are mostly for configuration and troubleshooting of Gaia and Check Point products.
  2. User defined commands.

You can do role-based administration (RBA) with extended commands by assigning extended commands to roles and then assigning the roles to users or user groups.

Syntax

Parameters

Parameter

Description

<Command>

Name of the extended command

<Path>

Path of the extended command

"<Text>"

Description of the extended command (must enclose in double quotes)

See the List of available Extended Commands in roles.

Example

To add the free command to the systemDiagnosis role and assign that role to the user john::

Step

Description

1

To add the free command:

gaia> add command free path /usr/bin/free description "Display amount of free and used memory in the system"

2

Save the configuration:

gaia> save config

3

Log out of Gaia.

4

Log in to Gaia again.

5

To add the free command to the systemDiagnosis role:

gaia> add rba role systemDiagnosis domain-type System readwrite-features ext_free

6

To assign the systemDiagnosis role to the user john:

gaia> add rba user john roles systemDiagnosis

7

Save the configuration:

gaia> save config