barrygordon Posted December 29, 2015 Share Posted December 29, 2015 unraid version 6.1.3 If I send the following from a browser: http://192.168.1.209/update.htm?cmdSpinupAll=true All my disks spin up and unraid returns a status of 200 and a text of 'All disks spinning up' or some thing close to it If I send using TCP/IP The following: GET /update.htm?cmdSpinupAll=true HTTP/1.1 Host: 192.168.1.209 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/47.0.2526.106 Safari/537.36 Accept-Encoding: gzip, deflate,sdch Accept-Language: en-US,en;q=0.8 (CRLF) (CRLF) unRaid returns a status of 200 with no payload The above TCP/IP message is exactly what I see in EtherDetect (similar to wireshark) as what my browser is sending for the http:// . . . Can someone spot what I am doing wrong? TIA, Barry Quote Link to comment
BRiT Posted December 29, 2015 Share Posted December 29, 2015 It works fine for me on 6.1.6. I send the following to my unraid server on ip: a.b.c.d : GET /update.htm?cmdSpinupAll=true HTTP/1.1 Host: a.b.c.d Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/47.0.2526.106 Safari/537.36 Accept-Encoding: gzip, deflate,sdch Accept-Language: en-US,en;q=0.8 I get back: HTTP/1.1 200 OK Server: emhttp Connection: close Content-Type: text/html; charset=utf-8 Cache-Control: no-cache <!DOCTYPE HTML> <html> <head> <style> @font-face{ font-family:'arimo';font-weight:normal;font-style:normal; src:url('/webGui/styles/arimo.eot');src:url('/webGui/styles/arimo.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/arimo.woff') format('woff'),url('/webGui/styles/arimo.ttf') format('truetype'),url('/webGui/styles/arimo.svg#arimo') format('svg'); } @font-face{ font-family:'arimo';font-weight:bold;font-style:normal; src:url('/webGui/styles/arimo-bold.eot');src:url('/webGui/styles/arimo-bold.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/arimo-bold.woff') format('woff'),url('/webGui/styles/arimo-bold.ttf') format('truetype'),url('/webGui/styles/arimo-bold.svg#arimo-bold') format('svg'); } @font-face{ font-family:'arimo';font-weight:normal;font-style:italic; src:url('/webGui/styles/arimo-italic.eot');src:url('/webGui/styles/arimo-italic.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/arimo-italic.woff') format('woff'),url('/webGui/styles/arimo-italic.ttf') format('truetype'),url('/webGui/styles/arimo-italic.svg#arimo-italic') format('svg'); } @font-face{ font-family:'arimo';font-weight:bold;font-style:italic; src:url('/webGui/styles/arimo-bold-italic.eot');src:url('/webGui/styles/arimo-bold-italic.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/arimo-bold-italic.woff') format('woff'),url('/webGui/styles/arimo-bold-italic.ttf') format('truetype'),url('/webGui/styles/arimo-bold-italic.svg#arimo-bold-italic') format('svg'); } @font-face{ font-family:'bitstream';font-weight:normal;font-style:normal; src:url('/webGui/styles/bitstream.eot');src:url('/webGui/styles/bitstream.eot?#iefix') format('embedded-opentype'),url('/webGui/styles/bitstream.woff') format('woff'),url('/webGui/styles/bitstream.ttf') format('truetype'),url('/webGui/styles/bitstream.svg#bitstream') format('svg'); } .logLine{font-family:bitstream;font-size:10px;color:#505050;margin:0 8px;padding:0;} .logLine.spacing{margin:10px;} </style> <script> parent.document.getElementById('progressFrame').style.zIndex = 10; var enablePage=parent.location; function replaceName(name) { var x = enablePage.href.indexOf("name="); if (x) enablePage.href = enablePage.href.substring(0,x+5) + name; } function addLog(logLine) { document.body.innerHTML += logLine; window.scrollTo(0,document.body.scrollHeight); } function disablePage() { for (var i=0,element; element=top.document.querySelectorAll('input,button,select')[i]; i++) element.disabled = true; for (var i=0,link; link=top.document.getElementsByTagName('a')[i]; i++) link.style.color = "gray"; //fake disable } disablePage(); </script> </head> <body class="logLine" onload="parent.location=enablePage;"></body> </html> <script>addLog("Spinning up all drives...");</script> Quote Link to comment
barrygordon Posted December 29, 2015 Author Share Posted December 29, 2015 Upgraded to 6.1.6. With all the new features that was really easy!! Kudos to all involved However, I am still having the same problem. The drives do not spin up and what I get back is: HTTP/1.1 200 OK Server: emhttp Connection: close Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Any help will be greatly appreciated. What I want to do is start all the drives spinning asynchronously so that I can do other things code wise while the drives are spinning up. TIA, Barry Quote Link to comment
bonienl Posted December 29, 2015 Share Posted December 29, 2015 You can do the following: [uP] http://192.168.1.209/update.htm?cmdSpinupAll=Spin%20Up [DOWN] http://192.168.1.209/update.htm?cmdSpindownAll=Spin%20Down Ps. For an individual disk use the following syntax http://192.168.1.209/update.htm?cmdSpinup=disk1 http://192.168.1.209/update.htm?cmdSpindown=disk1 Quote Link to comment
barrygordon Posted December 29, 2015 Author Share Posted December 29, 2015 I must be doing something wrong that I just can't see. I modified what I send based upon the above post. Here is what I send: GET /update.htm?cmdSpinUpAll=Spin%20Up HTTP/1.1 Host: 192.168.1.209 Connection: Keep-Alive Accept-Language: en-US Accept-Encoding: gzip, deflate To which I receive: HTTP/1.1 200 OK Server: emhttp Connection: close Content-Type: text/html; charset=utf-8 Cache-Control: no-cache However the state of the disks (up/down) does not change I am stumped. Quote Link to comment
bonienl Posted December 29, 2015 Share Posted December 29, 2015 Any adblocker or antivirus software running which may interfere? What also can happen, is that authentication is required if you are not already loggin in. Quote Link to comment
barrygordon Posted December 30, 2015 Author Share Posted December 30, 2015 I finally have it working. Here is the log of the communication from my program: NAS action: Spinning Up all disks Sent To NAS: GET /update.htm?cmdSpinupAll=Spin%20Up HTTP/1.1 Host: 192.168.1.209 Connection: Keep-Alive Accept-Language: en-US Accept-Encoding: gzip, deflate (blank Line) (blank Line) Received from NAS: HTTP/1.1 200 OK Server: emhttp Connection: close Content-Type: text/html; charset=utf-8 Cache-Control: no-cache (blank Line) (blank Line) The above happens asynchronously, i.e. control is returned to my program while the disks are spinning up which is just what I want. This takes between 9 and 10 seconds for my 9 drive configuration. Is there an HTTP command that I can send to the tower to see what disks are spun up i.e. get the current state of the drives; preferably asynchronously TIA, Barry Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.