Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Greg_Harewood
Contributor

Re: Python tool for exporting/importing a policy package or parts of it

Hi.  Trying to extract from R80.10, and running the scripts on macOS...

grat:import_export_package gjh$ python export_package.py -m 10.0.41.253 -u lgjh Standard

Trying to get login credentials...

Trying to login via `mgmt_cli login -r true`.

Trying to get username and password.

Enter password: 

Got the following login credentials:

    Username: lgjh

    Password: ********

    Session ID: None

Login failed: APIResponse received a response which is not valid JSON.

Help please!

Also, yeah... how can you possibly re-import when you're supposed to do it locally on the mgmt server and the version of Python is wrong....

Thx-Greg

2 Replies
Moti
Admin
Admin

0 Kudos
Greg_Harewood
Contributor

Found the problem - --port is not honoured, and neither is the related env variable.  This is relevant because we are using SmartEndpoint, and so port=4434.  I hope someone will fix the code and keep this script supported!

Thx

Greg

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events