Contents
The main scope of this document is to teach you how to back-up the configurations for the equipment inside your network and for database of MMI.
Back-up configurations
There are two ways for this process:
Download configuration from MMI
First method is using the “Download config” button and then you will receive a .tar archive with a standard name like “equipment_core_conf-20210518_161649.tar”.
Inside the tar archive you will find the configuration for the network’s equipment and database of MMI, as in the example below:
Download using API request
The second method is to download the equipment configuration using in API request.
- Request format
- GET to mmi/api/v1/all_equipment_conf
- POST to mmi/api/v1 with JSON content { “request”:”get_all_equipment_conf”, “params”:{}
- Response format
- in case of error: { “code”: !0, “message”: …, “extra”:”” }
- in case of success: the tar archive will be download on your PC.
Commands:
curl http://192.168.168.117/mmi/api/v1/all_equipment_conf > download_config_equipment
or
curl http://192.168.168.117/mmi/api/v1/all_equipment_conf – – output download_config_equipment
Below there are two examples of the curl’s command.
Or:
But be careful, if your network has an invalid equipment you’ll receive a message error as below: