You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
OpCharts Export and Import
The purpose of this article is how to export and import dashboards, maps, and charts from an old server that had opCharts and migrate to a new server.
![](/download/attachments/90374355/image2022-9-21_12-8-3.png?version=1&modificationDate=1663783684000&api=v2&effects=border-simple,shadow-kn)
To check your dashboards, charts, or maps use these commands:
Tips: Use an SSH applicantion of your preference.
/usr/local/omk/bin/opcharts-cli.pl act=list-dashboards
/usr/local/omk/bin/opcharts-cli.pl act=list-charts
/usr/local/omk/bin/opcharts-cli.pl act=list-maps
or
cd /usr/local/omk/bin/
To check ./opcharts-cli.pl options
![](/download/attachments/90374355/image2022-9-21_11-19-55.png?version=1&modificationDate=1663780795000&api=v2&effects=border-simple,shadow-kn)
Export the dashboards, maps, and charts to a file
/usr/local/omk/bin/opcharts-cli.pl act=export-maps file=/tmp/mpas.json
/usr/local/omk/bin/opcharts-cli.pl act=export-dashboards file=/tmp/dashboards.json
/usr/local/omk/bin/opcharts-cli.pl act=export-charts file=/tmp/charts.json
![](/download/attachments/90374355/image2022-9-21_11-28-3.png?version=1&modificationDate=1663781283000&api=v2&effects=border-simple,shadow-kn)
Use an FTP application of your preference to copy the files
![](/download/attachments/90374355/image2022-9-21_11-35-12.png?version=1&modificationDate=1663781713000&api=v2&effects=border-simple,shadow-kn)
Import the dashboards, maps, and charts from a file
/usr/local/omk/bin/opcharts-cli.pl act=import-maps file=/tmp/mpas.json
/usr/local/omk/bin/opcharts-cli.pl act=import-dashboards file=/tmp/dashboards.json
/usr/local/omk/bin/opcharts-cli.pl act=import-charts file=/tmp/charts.json
![](/download/attachments/90374355/image2022-9-21_11-44-17.png?version=1&modificationDate=1663782258000&api=v2&effects=border-simple,shadow-kn)