11-04-2010 12:55 PM
Hello all,
Does anyone have a recommnedation for creating a configuration template for the SRP521W? I can use the Admin-->Backup Config to get a xxx.cfg file, but I cannot edit it with notepad++.
Also, i know the config can be view via view-source:http://ipaddr/admin/config.xml, but how would I load a modified copy of this back to the router?
Thanks in advance for your time!
Philip
Solved! Go to Solution.
11-05-2010 01:54 PM
Hi Philip,
You can load XML configurations on to the SRP using a number of different methods.
Firstly, make sure that your XML is properly formatted as follows. Configuration files can include as much or as little configuration as you need.
...
Add your configuration here
...
1. Resync URL
You can use the resync URL to command the SRP to collect a new configuration from a specified location. The SRP can use TFTP, HTTP or HTTPS to collect the defined configuration. Once you have created your configuration file and loaded it to a TFTP or web server, construct a URL as follows and paste it in to your browser.
http://
For example:
http://192.168.15.1/admin/resync?tftp://192.168.15.100/myconfig.xml&xuser=admin&xpassword=admin
2. Provisioning URL configuration
As an alternative to the above, it is also possible to configure the SRP500 with a provisioning URL via the web GUI. In this case, take the configuration file URL and use it configure the "Profile Rule" configuration field, which may be found on the Voice > Provisioning page.
3. Push URL
Use an application like curl to post the XML file directly to the SRP IP address. For example:
curl -k -d @myconfig.xml http://192.168.15.1/admin/config.xml&xuser=admin&xpassword=admin
11-05-2010 01:54 PM
Hi Philip,
You can load XML configurations on to the SRP using a number of different methods.
Firstly, make sure that your XML is properly formatted as follows. Configuration files can include as much or as little configuration as you need.
...
Add your configuration here
...
1. Resync URL
You can use the resync URL to command the SRP to collect a new configuration from a specified location. The SRP can use TFTP, HTTP or HTTPS to collect the defined configuration. Once you have created your configuration file and loaded it to a TFTP or web server, construct a URL as follows and paste it in to your browser.
http://
For example:
http://192.168.15.1/admin/resync?tftp://192.168.15.100/myconfig.xml&xuser=admin&xpassword=admin
2. Provisioning URL configuration
As an alternative to the above, it is also possible to configure the SRP500 with a provisioning URL via the web GUI. In this case, take the configuration file URL and use it configure the "Profile Rule" configuration field, which may be found on the Voice > Provisioning page.
3. Push URL
Use an application like curl to post the XML file directly to the SRP IP address. For example:
curl -k -d @myconfig.xml http://192.168.15.1/admin/config.xml&xuser=admin&xpassword=admin
11-05-2010 02:13 PM
Andrew, thanks for the reply. That was exactly what I was looking for. Tested with the resync option, and it worked.
09-14-2012 07:28 PM
hi Phil , I'm tring to do the same thing as you described your original post , ie. ""
creating a configuration template for the SRP521W? I can use the Admin-->Backup Config to get a xxx.cfg file, but I cannot edit it with notepad++.""".............. phil were you able to find a way of doing this ,, as i'am still trying
thanks trevor
09-17-2012 04:07 AM
Hi Trevor,
You can use the current running configuration as a template:
http://
When this loads in your browser, right click and view source - use this file as your template - or at least to select the parameters you wish to change.
As the provisioning via the XML interface is incremental, I would recommend that you only include the tags you wish to change in the file you send. All other tags will remain unchanged.
Regards,
Andy.
09-17-2012 01:52 PM
Hi Andy ,
thanks for that info , that greatly helps.
I've downloaded cURL and I'm trying to reprovision , but I'm having having problems.
i'm using
curl –d @my_config.xml “http://192.168.15.1/admin/config.xml&xuser=admin&xpassword=admin”
but keep getting file not found.....
the @my_config.xml , is confusing me ,
i'm assume i name my file from the template my_config.xml -- but where do I store that file on m y pc
and how do i reference it , ---
curl –d @c:\temp\my_config.xml “http://19.......... ???
thanks & regards
Trevor
09-18-2012 03:25 AM
Hi Trevor,
The name of the local file can be whatever you like, my_config.xml is just an example. When I have used this before, I just save the config file to the same directory as curl so I don't have to mess around with paths. Are you running curl from the directory you have installed it in?
I noticed that when trying to curl a non-existant file, the application throws "Warning: Couldn't read data from file..." - was this the error you are seeing?
Certainly the syntax you are using is correct - i.e. curl -d @filename "URL".
As the URL includes authentication information, the quotes are required.
Regards,
Andy
09-18-2012 03:28 AM
....of course, if you have a tftp server application on your PC, then you can also try using the resync URL as described in the XML document referred above.
Regards,
Andy
09-18-2012 08:59 AM
thanks Andy,
I followed your suggestion and put the config file in same dir as curl and it works fine,
cheers,
Trevor
05-11-2015 07:10 AM
Hi Andrew,
How are you?
Can you advise how to reset the SRP547W config.xml back to factory default?
I got a unit of SRP547W that is locked to SP default.
Many Thanks,
Yeo
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide