Ever find yourself wishing that you could save the configuration of a SPA phone, ATA, or IP PBX, and then restore it later?
[Edit October 2nd 2009: not supported by PAP2T, SPA2102, or SPA3102 devices]
Of course you can use the SPA9000 Setup Wizard to save and restore SPA9xx IP phone backups in a SPA9000 Voice System deployment.
But what if you just want to tweak a device's configuration and then restore it, and you don't want to use the Wizard?
You will need:
- a TFTP server [search for a free one on the Internet]
- a simple text editor that does not insert characters on its own [vim, for example]
Sometimes I find it very useful to extract the XML configuration from a device with the following command:
For example: http://192.168.0.45/admin/spacfg.xml [where the SPA device's IP address is 192.168.0.45]
I then copy and paste the output into a plain text file.
I like to name the file for the device I'm working with, for example: SPA962_feb172009.xml.
I edit the file with vi or vim, but not NotePad because it can insert unwanted characters.
Assume I called the file SPA962_feb172009.xml
I can now edit SPA962_feb172009.xml and then push the modified configuration back to the device with the following command:
Example: Assume IP address of the:
SPA device is 192.168.0.45
TFTP server is 192.168.0.200
The URL would be:
The device will request the file name that I specified, retrieve the file from the TFTP server, reboot, load, and run the new configuration.