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

    CheckMates Events