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

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
Highlighted
Admin
Admin

0 Kudos
Highlighted

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