Exam 156-315.80 All QuestionsBrowse all questions from this exam
Question 146

Please choose correct command to add an `emailserver1` host with IP address 10.50.23.90 using GAiA management CLI?

    Correct Answer: D

    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.

Discussion
KarrolOption: D

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

dguskovOption: C

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

babochnik

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

AlonbOption: C

Well, even thogh D is possible, the ":" after the word "mgmt" is wrong.

truthtellerOption: C

I disagree, C should be the correct answer since you are already con mgmt cli, you don´t need to add the prefix mgmt:

rahav

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"

DocHoliday

The link says so but trying this doesn't work. From Gaia I still need to use mgmt_cli. Tested on R80.30

bobby14

I'm agree with you. No need mgmt in the command

JNyquistOption: D

Yep, D is correct!

ErfanOption: C

Correct Answer : C . No need to add mgmt in command

babochnik

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"

Hernan_Mella

C is correct just for Smartconsole CLI, not Gaia CLI

certcert1Option: D

Tested in R80.40 Mgmt server D is correct but no colon following "mgmt" cmd