Announcement

Collapse
No announcement yet.

XPort Edge: Web API for Factory Reset

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • XPort Edge: Web API for Factory Reset

    The Edge UG section on Factory Reset shown below seems to indicate that I can send the following for a factory reset:

    $ curl --digest -u admin:PASSWORD http://192.168.1.100/action/status -X POST -d "group=Device&action=Factory Defaults"

    This does not cause a factory reset and returns: "curl: (52) Empty reply from server"

    Does anybody have any idea as to what the correct syntax is to force a factory reset of the Edge?

  • #2
    That is the correct syntax. I just verified this on my XPort EDGE:

    Code:
    $ curl --anyauth -u admin:PASSWORD http://169.254.0.1/action/status -X POST -d "group=Device&action=Factory Defaults"
    <?xml version="1.0" standalone="yes"?>
    <!-- Automatically generated XML -->
    <!DOCTYPE function [
       <!ELEMENT function (return)>
       <!ELEMENT return (result,message+)>
       <!ELEMENT result (#PCDATA)>
       <!ELEMENT message (#PCDATA)>
       <!ATTLIST function version CDATA #IMPLIED>
    ]>
    <function version = "0.1.0.0">
       <return>
          <message>WARNING: Rebooting for factory defaults...</message>
          <result>Succeeded</result>
       </return>
    </function>
    Are you using curl in a Linux shell (either Linux host, or cygwin/mingw in Windows)? Sometimes when using it from the Command Prompt in Windows it can cause trouble as the Command Prompt will process certain things before sending to curl.

    Mariano

    Comment

    Working...
    X