Built-in extended commands. These are mostly for configuration and troubleshooting of the Gaia OS and Check Point products.
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
Add the 'free' command:
HostName> add command free path /usr/bin/free description "Display amount of free and used memory in the system"
Save the configuration:
HostName> save config
Log out from Gaia OS and log in again.
Add the 'free' command to the systemDiagnosis role:
HostName> add rba role systemDiagnosis domain-type System readwritefeatures ext_free
Assign user 'john' with the 'systemDiagnosis' role:
HostName> add rba user john roles systemDiagnosis
Save the configuration:
HostName> save config
Limitations: It is not supported to add an extended command which is comprised of two different words. for example: add command "show ip" path PATH_VALUE description DESCRIPTION_VALUE
Give us Feedback
Thanks for your feedback!
Are you sure you want to rate this stars?