Please choose correct command to add an `emailserver1` host with IP address 10.50.23.90 using GAiA management CLI?
Please choose correct command to add an `emailserver1` host with IP address 10.50.23.90 using GAiA management CLI?
The correct command to add an `emailserver1` host with IP address 10.50.23.90 using GAiA management CLI is `mgmt: add host name emailserver1 ip-address 10.50.23.90`. In GAiA management CLI, all management commands need to be prefixed with 'mgmt:' to indicate they are management-related commands. Thus, using the 'mgmt:' prefix is necessary for the correct command syntax.
D is correct. Even after logging in as a management user, all management commands still start with mgmt. https://sc1.checkpoint.com/documents/R80/APIs/#gaia_cli%20
I see no about API here. So I think correct is "C". CHKP-MGMT-01> add host name XXXX ipv4-address 1.1.1.1 ipv4: the IPv4 address to be associated with a static hostname Range: Dotted-quad ([0-255].[0-255].[0-255].[0-255]). Default: No Default. CHKP-MGMT-01> But, if we use GAIA CLI by API, yes, we need prefix "mgmt": https://sc1.checkpoint.com/documents/R80/APIs/#gaia_cli%20
It is used for adding one host record to /etc/hosts add host name "New Host 1" ip-address "192.0.2.1" before use add host name "New Host 1" ip-address "192.0.2.1" you need to login in mgmt https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-host~v1.6.1%20
Well, even thogh D is possible, the ":" after the word "mgmt" is wrong.
I disagree, C should be the correct answer since you are already con mgmt cli, you don´t need to add the prefix mgmt:
D is correct. https://sc1.checkpoint.com/documents/latest/APIs/index.html#clish/add-host~v1.6%20 Look at Gaia CLI section and see add host syntax- you need to add mgmt- the full command is: mgmt add host name "New Host 1" ip-address "192.0.2.1"
The link says so but trying this doesn't work. From Gaia I still need to use mgmt_cli. Tested on R80.30
I'm agree with you. No need mgmt in the command
Yep, D is correct!
Correct Answer : C . No need to add mgmt in command
first you need to log in mgmt, try to test in your lab without mgmt It is used for adding one host record to /etc/hosts add host name "New Host 1" ip-address "192.0.2.1"
C is correct just for Smartconsole CLI, not Gaia CLI
Tested in R80.40 Mgmt server D is correct but no colon following "mgmt" cmd