You plan to automate creating new objects using new R80 Management API. You decide to use GAIA CLI for this task. What is the first step to run management API commands on GAIA's shell?
A.
mgmt_admin@teabag > id.txt
B.
mgmt_login
C.
login user admin password teabag
D.
mgmt_cli login user ג€adminג€ password ג€teabagג€ > id.txt
Answer is B!
It mentioned via GAIA's cli not on mgmt_cli tool.
In Gaia's shell, type
mgmt login
or
mgmt login user myname
Ref: https://sc1.checkpoint.com/documents/latest/APIs/#introduction~v1.8%20
for mgmt_cli tool:
mgmt_cli login
for Gaia cli:
mgmt login
for Web services:
POST https://<mgmt-server>:<port>/web_api/login
https://sc1.checkpoint.com/documents/latest/APIs/#cli/login~v1.6.1%20
wrong, answer is D
CCSE:
The mgmt_cli tool can be run on any Linux or Windows machine. A Linux version of the
command line tool is included in all R80.10 Gaia installations. The executable mgmt_cli is
included in the R80.10 SmartConsole installation. The mgmt_cli.exe does not require a
GUI installation. It can be copied to run on most Windows-based computers.
The following API script example uses the mgmt_cli tool to log in and create a new host:
mgmt_cli login user “AdminUser1” password “teabag” > id.txt
mgmt_cli add host name “New_Host_1” ip-address “1.1.1.1 -s
id.txt
mgmt_cli publish -s id.txt
mgmt_cli logout -s id.txt
This will only apply in a script where you store the session id for the succeeding commands. However on clish, you will need to start with "mgmt login" first.
upvoted 4 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.
thehill
1 year, 10 months agoAmathai1803
2 years, 8 months agojm31
2 years, 9 months agolordlich
2 years, 9 months agoKiki123
2 years, 10 months agoCC_prep1
3 years, 2 months agobabochnik
2 years, 4 months agoPrathamesh2589
3 years, 3 months agoutrapepega
3 years, 5 months agoCC_prep1
3 years, 2 months ago