Answer D is correct.(I have checked on R80.10)
if you enter add host name emailserver1 ip-address 10.50.23.90(option c) it’s not valid because it should be add host name emailserver1 ipv4-address 10.50.23.90
If you enter mgmt add host name emailserver1 ip-address 10.50.23.90 you are getting following output MGMT9205 You are not logged in to management server, in order to log-in you will need to run "mgmt login user [user name]"
After logging to the management server you can enter mgmt add host name emailserver1 ip-address 10.50.23.90 (option 4)
For me answers D is correct, because if you add host using answer C, this sintaxis is
"add host name emailserver1 ipv4-address 10.50.23.90"
however using D, first you'r logon in SMS from CLI with
"mgmt login user"
once loggin you'r should type a next sintaxis is
"mgmt add host name emailserver1 ip-address 10.50.23.90"
I have tried on my lab. I think this all depends on r80.x version you are running.
Agreed with Kavi i cannot run the below command on r81.10 so i think answer is D
C is correct I have scripts that add large amount of objects
**Adding Hosts**
add host name WALTER ip-address 10.219.11.21 comments Sharepoint
**Adding Networks**
add network name "n..PI.172.31.100.0_27" color "red" subnet 172.31.100.0 subnet-mask 255.255.255.224 comments "Joe blogs"
Nope D is the correct answer :
this is from my SMS :
SMS> mgmt login
Enter password:
SMS> add host name emailserver1 ip-address 10.50.23.90
CLINFR0329 Invalid command:' add host name emailserver1 ip-address 10.50.23.90 '.
When i added mgmt : (he took the change :)
SMS> mgmt add host name emailserver1 ip-address 10.50.23.90
SMS>
D is correct syntax!
You need to log in to management server, after successful login you can use command below to add new host object.
#mgmt add host name emailserver1 ip-address 10.50.23.90
I think mgmt is shortcut key of mgmt_cli
In Gaia's shell, type
mgmt login
or
mgmt login user myname
After that you remain in the familiar Gaia shell, but now you can use the management APIs.
Example:
> mgmt login user <admin name>
Enter password: ******
> show interfaces
eth0
eth0.3
lo
> mgmt add host name myHost12 ip-address 3.3.3.3
> mgmt publish
message "OK"
number-of-published-changes 1
>
The syntax is identical to the commands that you run in the SmartConsole GUI.
All management commands start with the word "mgmt".
Please read the last 4 words of the question carefully.
- using GAiA management CLI! Not clish!
All management commands start with the word "mgmt".
https://sc1.checkpoint.com/documents/R80/APIs/#gaia_cli%20
The correct answer is D.
1. You are referring to the API documentation. The question is not about API commands.
2. The commands in this documentation are starting with "mgmt_cli" and not only "mgmt ". I can't find any command on this site which only begins with "mgmt "
Look for this exemple;
add host name myHost ip-address 192.0.2.100
This will create a new host object with the name myHost and the IP address 192.0.2.100 .
The answer is C.
https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.5
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.
Kavi
Highly Voted 4 years, 10 months agoWilliam_Garcia
Most Recent 9 months, 3 weeks agoRonak_CCSA
2 years, 9 months agojlucio
2 years, 9 months agoAcnaris
3 years, 8 months agoccsa_ccse
3 years, 9 months agoDanzaroonie
3 years, 12 months agoAychi
3 years, 12 months agoverona347
3 years, 10 months agojm31
4 years, 1 month agonariman93
4 years, 1 month agoDeepCyber
4 years, 5 months agolohitnadimpalli
4 years, 6 months agotemidayo
4 years, 5 months agoC4rlos
4 years, 7 months agosecadmin44
4 years, 7 months agomauchi
3 years, 9 months agoagentjoks
4 years, 7 months agojham
4 years, 8 months agoKaleba
4 years, 8 months agobeto_joe
4 years, 9 months agoAbdelilahkammache
4 years, 11 months ago