How to import configuration to ePMP device via SNMP

  1. Start Export configuration process from device

    snmpset -v 2c -c private 169.254.1.1 .1.3.6.1.4.1.17713.21.6.4.10.0 i 1
    
  2. Check the export status

    snmpget -v 2c -c private 169.254.1.1 .1.3.6.1.4.1.17713.21.6.4.11.0
    

    4 means successful

  3. Get URL to the configuration file

    snmpget -v 2c -c private 169.254.1.1 .1.3.6.1.4.1.17713.21.6.4.13.0
    
  4. Uploading file from ePMP device to PC by the link.
    wget can be used on Linux machine:

    wget 'http://192.168.0.10/dl/4.6.041_3223c9e2-539c-4b6d-bb43-8c1f180fe685.json'
    
  5. Modify configuration in text format.

  6. Run HTTP server on PC
    Example for python2:

    python -m SimpleHTTPServer 8080
    
  7. Put edited configuration file to HTTP server.

  8. Import configuration to ePMP device providing URL to local config file on HTTP server:

    snmpset -v 2c -c private 169.254.1.1 .1.3.6.1.4.1.17713.21.6.4.1.0 s http://169.254.1.173:8080/4.6.041_3223c9e2-539c-4b6d-bb43-8c1f180fe685.json
    

Done!

2 Likes