Exam 156-31581 All QuestionsBrowse all questions from this exam
Question 195

The Firewall Administrator is required to create 100 new host objects with different IP addresses. What API command can he use in the script to achieve the requirement?

    Correct Answer: A

    The correct command to create new host objects with different IP addresses in Check Point's management API is to use the mgmt_cli tool. The syntax involves specifying the management server, the API command 'add host', and the relevant parameters for the hostname and IP address. The provided command in option A fits this format: 'mgmt_cli -m <mgmt ip> add host name <new hostname> ip-address <ip address>'. This ensures proper communication with the Check Point management server to add the new hosts.

Discussion
Netpro2000Option: A

I think its A. It cant be C as there is no space between host and name.

McBeanoOption: A

I would say A. Example syntax from the documentation: mgmt_cli add host name "New Host 1" ip-address "192.0.2.1" https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add-host~v1.1%20 Not sure what the -m parameter does though.

ShahrouzOption: C

I think correct answer is C

Shahrouz

Sorry correct answer is A