Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A csv file (eg. example123.csv) should be placed in the Exports folder. Then run ExportScript.py using python 3. In Windows, this can be done by entering cmd in the start menu, then using cd commands to navigate to the folder that holds the import script. From the command line, run:

Code Block
python ImportScript.py

It will connect to each device in order, export the current configuration, and write to individual json files with names specified in the csv.

For further details on running scripts in different environments, see Client Scripts

CSV Formatting

The CSV file’s top row must be the header:

...

If you experience a timeout durring the process, there are 3 variables at the top of ImportScript.py that can be adjusted. The script can be edited in any text editing software, eg. notepad or notepad++.

Code Block
#Shared timeout and retry parameters to tune if network is difficult
timeOut=40
exportTimeOut=1200
retries=Retry(
    total=3, 
    status_forcelist=[429, 500, 502, 503, 504], 
    method_whitelist=["HEAD", "GET", "POST"]
)

...