156-915.80 · Question #71
Using mgmt_cli, what is the correct syntax to import a host object called Server_1 from the CLI?
The correct answer is B. mgmt_ cli add host name "Server_ 1" ip-address "10.15.123.10" ?format json. mgmt_cli add host name "New Host 1" ip-address "192.0.2.1" --format json ?;--format jso"; is optional. By default the output is presented in plain text. Reference: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add- host~v1.1%20
Question
Using mgmt_cli, what is the correct syntax to import a host object called Server_1 from the CLI?
Options
- Amgmt_cli add-host "Server_1" ip_ address "10.15.123.10" ?format txt
- Bmgmt_ cli add host name "Server_ 1" ip-address "10.15.123.10" ?format json
- Cmgmt_ cli add object-host "Server_ 1" ip-address "10.15.123.10" ?format json
- Dmgmt_cli add object "Server_ 1" ip-address "10.15.123.10" ?format json
How the community answered
(47 responses)- A4% (2)
- B72% (34)
- C9% (4)
- D15% (7)
Explanation
mgmt_cli add host name "New Host 1" ip-address "192.0.2.1" --format json ?;--format jso"; is optional. By default the output is presented in plain text. Reference: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/add- host~v1.1%20
Topics
Community Discussion
No community discussion yet for this question.