Script for unRaid status and (partial) management from the telnet prompt


Recommended Posts

Just started using unRaid. A lot of these scripts are very nice.

 

Question about this one. I've added the code to see the disks spinning, added my own ncurses, etc.

 

When you go to start the array, it prints the message that rebooting is safer.

I'm curious, couldn't the start array be set to this and thus it would call exactly what the unRaid menu calls?  I would think that would be perfectly safe:

 

                "STOPPED")

                        case "$a" in

                        "S") # start the array

                        # Start the unRaid array

        echo "$clearscreen"

        /usr/bin/wget -q -O - localhost/blank.htm >/dev/null

        /usr/bin/wget -q -O - localhost/blank.htm?cmdStart=apply >/dev/null

        echo

        echo "Restarting Array..."

        echo

                sleep 10

 

 

All the wget would do is call the blank in case the menu has not been accessed, and then hit the menu's Start button.

 

Or is there some reason why you would not want to do this?

Link to comment

Just started using unRaid. A lot of these scripts are very nice.

 

Question about this one. I've added the code to see the disks spinning, added my own ncurses, etc.

 

When you go to start the array, it prints the message that rebooting is safer.

I'm curious, couldn't the start array be set to this and thus it would call exactly what the unRaid menu calls?  I would think that would be perfectly safe:

 

                "STOPPED")

                        case "$a" in

                        "S") # start the array

                        # Start the unRaid array

        echo "$clearscreen"

        /usr/bin/wget -q -O - localhost/blank.htm >/dev/null

        /usr/bin/wget -q -O - localhost/blank.htm?cmdStart=apply >/dev/null

        echo

        echo "Restarting Array..."

        echo

                sleep 10

 

 

All the wget would do is call the blank in case the menu has not been accessed, and then hit the menu's Start button.

 

Or is there some reason why you would not want to do this?

At the time the original "unmenu" shell script was written, the "wget" command did not exist on the unRAID distribution, there was no obvious way to click on the localhost button.  (and the array was limited to 11 data disks + parity, did not support SATA disks, or multi-core CPUs at all.  It was all IDE disks, and a PCI bus.) 

 

unRAID has come a long way.  Yes, you could do what you described to re-start the arrray.

 

Joe L.

Link to comment
  • 9 months later...

I recently had a problem where the web management didn't work. So I was glad I came across this topic since I'm not yet that experienced with unraid. Thumbs up Joe. To spare people the work that also come across this topic I've updated the code on the wiki page to contain all changes mentioned in this topic. I hope you don't mind. It also may be advised to change the OP text with some red bold text mentioning to get the code from the wiki page. Thanks again for the hard work on the script.

Link to comment
  • 3 years later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.