NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

7 Replies

Replies have been turned off for this discussion
  • Thank you very much chirpa, I was able to find the Chrome way by myself but I was missing the right CURL syntax.

    My Readynas is a NV+ V2 so I suppose is OS5. Anyway xml syntax is almost identical. This is my working CURL command (xml captured with chrome dev tools):

    curl -s -v -u admin:password -k "https://IP_OF_NAS/dbbroker" -H "Content-Type: application/x-www-form-urlencoded;" -H "X-Requested-With: XMLHttpRequest" --data "<?xml version=\"1.0\" encoding=\"UTF-8\"?>             <xs:nml xmlns:xs=\"http://www.netgear.com/protocol/transaction/NMLSchema-0.9\" xmlns=\"urn:netgear:nas:readynasd\" src=\"dpv_1389313459000\" dst=\"nas\">                <xs:transaction id=\"njl_id_725\">                    <xs:custom id=\"njl_id_724\" name=\"Halt\" resource-id=\"Shutdown\" resource-type=\"System\">                    <Shutdown halt=\"true\" fsck=\"false\"/>                </xs:custom>                </xs:transaction>            </xs:nml>"
    • Shri-Ganesh's avatar
      Shri-Ganesh
      Tutor

      For the 6.4.0 OS:

       

      curl -u admin: password -k "https://IP_OF_NAS/dbbroker" -H "Content-Type: application/x-www-form-urlencoded;" -H "X-Requested-With: XMLHttpRequest" --data "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xs:nml xmlns:xs=\"http://www.netgear.com/protocol/transaction/NMLSchema-0.9\" xmlns=\"urn:netgear:nas:readynasd\" src=\"dpv_1445852944000\" dst=\"nas\"><xs:transaction id=\"njl_id_2269\"><xs:custom id=\"njl_id_2268\" name=\"Halt\" resource-id=\"Shutdown\" resource-type=\"System\"><Shutdown halt=\"true\" fsck=\"false\"/></xs:custom></xs:transaction></xs:nml>"
      • Sandshark's avatar
        Sandshark
        Sensei - Experienced User

        How about directly from PowerShell instead of having to install cURL?    How would one convert all of those cURL options into a PowerShell Invoke-RestMethod CmdLet?

  • Works perfectly. Thank you!

    Great tip about the network inspector in Chrome, too. Very convenient. And here I was looking for the call in javascript.

    Thanks again!
  • Easy way to sniff XML for ReadyNAS via Google Chrome browser...

    Open Dashboard, then in Chrome choose Tools>Developer Tools. Click on the Network tab in that Inspector. It will show you all network calls. Run the command you want, and find the related dbbroker call for it. You can then 'Copy to curl' in the right-click menu to get a working curl call for it.
  • They switched to XML.

    This should work:

    curl -u admin:password -k "https://IP_OF_NAS/dbbroker" -H "Content-Type: application/x-www-form-urlencoded;" -H "X-Requested-With: XMLHttpRequest" --data "<?xml version=\"1.0\" encoding=\"UTF-8\"?>             <xs:nml xmlns:xs=\"http://www.netgear.com/protocol/transaction/NMLSchema-0.9\" xmlns=\"urn:netgear:nas:readynasd\" src=\"dpv_1368497621000\" dst=\"nas\">                <xs:transaction id=\"njl_id_1278\">                    <xs:custom id=\"njl_id_1277\" name=\"Halt\" resource-id=\"Shutdown\" resource-type=\"System\">                    <Shutdown halt=\"true\" fsck=\"false\"/>                </xs:custom>                </xs:transaction>            </xs:nml>"

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More