cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4543
Views
0
Helpful
9
Replies

Configuration Template for SRP 521W

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

1 Accepted Solution

Accepted Solutions

Andrew Hickman
Cisco Employee
Cisco Employee

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

  ...

Provisioning Methods

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://:/admin/resync?&xuser=admin&xpassword=

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

View solution in original post

9 Replies 9

Andrew Hickman
Cisco Employee
Cisco Employee

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

  ...

Provisioning Methods

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://:/admin/resync?&xuser=admin&xpassword=

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

Andrew, thanks for the reply.  That was exactly what I was looking for.  Tested with the resync option, and it worked. 

tjmorris111
Level 1
Level 1

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

Hi Trevor,

You can use the current running configuration as a template:

http:///admin/config.xml&xuser=&xpassword=

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.

Also refer to the following .

Regards,

Andy.

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

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

....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

thanks Andy,

      I followed your suggestion and put the config file in same dir as curl and it works fine,

cheers,

  Trevor

kengyongyeo
Level 1
Level 1

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