Home Page | Skip to Navigation | Skip to Content | Skip to Search | Skip to Footer
 Support Center > Search Results > SecureKnowledge Details
Support Center
 Print    Email
Gaia CLISH CLI Commands including User Defined (Extended) Commands

Solution ID: sk86583
Product: All
Version: R75.40, R75.40VS, R75.45, R75.46, R75.47, R76, R77, R77.10
OS: Gaia
Platform / Model: All
Date Created: 21-Oct-2012
Last Modified: 08-Mar-2014
Rate this document
[1=Worst,5=Best]
Solution

The following Gaia CLISH references are available:

  • The "show commands" CLI command in Gaia OS will display a complete list of commands that you can access (if you are Admin).

  • At the CLISH command line, hit ESC ESC to see a list of the available CLISH commands.

  • Most of the Gaia feature commands are documented in the Gaia Administration Guide (R75.40, R75.40VS, R76, R77).

  • This document that explains how to perform routine 'sysconfig'-configuration in Gaia OS: Sysconfig to Gaia CLI Technical Reference Guide.

  • User Defined (Extended) Commands:

     

    Extended commands include:

    1. Built-in extended commands. These are mostly for configuration and troubleshooting of the Gaia OS and Check Point products.

    2. User defined commands. You can perform Role Based Administration (RBA) with extended commands, by assigning extended commands to roles, and then assigning the roles to users or user groups.

     

    Syntax:

    • To show all extended commands: show extended commands

    • To add an extended command: add command NAME_VALUE path PATH_VALUE description DESCRIPTION_VALUE

      where:
      • command - requires the name of the extended command
      • path - requires the path of the relevant executable/binary file
      • description - requires the description string of the extended command


    • To show the path and description of a specified extended command: show command NAME_VALUE

    • To delete an extended command: delete command NAME_VALUE

     

    Example: add the 'free' command to the 'systemDiagnosis' role and assign a user 'john' with that role

    1. Add the 'free' command:

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

    2. Save the configuration:

      HostName> save config

    3. Log out from Gaia OS and log in again.

    4. Add the 'free' command to the systemDiagnosis role:

      HostName> add rba role systemDiagnosis domain-type System readwritefeatures ext_free

    5. Assign user 'john' with the 'systemDiagnosis' role:

      HostName> add rba user john roles systemDiagnosis

    6. Save the configuration:

      HostName> save config

Give us Feedback
Rate this document
[1=Worst,5=Best]
Additional comments...(Max 2000 characters allowed)
Characters left: 2000