Hi:
I am trying to use mgmt_cli on Windows to connect to Smart1 Cloud
I am trying to use
mgmt_cli -m mydomain.maas.checkpoint.com --context <context-id>/web_api login api-key <my_api_key> > id.txt
this generate the id.txt like
uid: "my_uid"
sid: "my_sid"
url: "https://127.0.0.1:443/web_api"
session-timeout: 600
last-login-was-at:
posix: 1732049229199
iso-8601: "2024-11-19T20:47+0000"
api-server-version: "1.9.1"
user-name: "admin-api"
user-uid: "my_user-uid"
next, I try
mgmt_cli -m mydomain.maas.checkpoint.com --context <context-id>/web_api show networks --session-file id.txt
and get the following error:
Couldn't connect to server
If you need to use a proxy server, add the '--proxy' parameter
But if I execute
mgmt_cli -m mydomain.maas.checkpoint.com --context <context-id>/web_api show networks --session-id "my_sid"
this works fine.
All examples I found on the web are done like the first option.
What am I doing wrong?
Regards,
Pablo