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
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"
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
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"
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Karrol
Highly Voted 3 years, 12 months agoAlonb
Most Recent 1 year, 9 months agoJNyquist
2 years, 2 months ago[Removed]
2 years, 9 months agobabochnik
2 years, 4 months agoHernan_Mella
2 years, 3 months agodguskov
3 years, 2 months agobabochnik
2 years, 4 months agocertcert1
3 years, 2 months agotruthteller
4 years, 5 months agorahav
4 years, 4 months agoDocHoliday
4 years, 2 months agobobby14
4 years, 3 months ago