NAS Herder

Ver 1.2.5

2016/5/14

1. Overview

NAS Herder is a small Windows app for Netgear ReadyNAS series of NAS. It lets user to start, monitor and shutdown ReadyNAS system easily from notification area (task tray). It also can make power on/off of the system synchronized with client PC.

2. Requirements

3. Install

No installation is required.

The folder where executable file (NasHerder.exe) exists will be used as a working folder to store settings file and log files (if enabled). If writing files is not allowed in that folder, like folders in "Program Files", an alternate folder will be created in the following path.
[system drive]\Users\[user name]\AppData\Local\NasHerder

4. Getting Started

  1. Start NasHerder.exe. If initial run, [Scan] Dialog will pop up. Press [Scan ReadyNAS in LAN] and wait a few seconds until ReadyNAS systems currently online in LAN will appear. Select one to be monitored by this app and press [OK].
    Note: In most cases, you need to set Windows Firewall or other firewall software to allow this app to use network.
  2. Then [Settings] Dialog will pop up. Make settings as you wish and press [OK].
  3. This app will automatically check assigned ReadyNAS system at regular intervals. The status is indicated in color (Unknown, Offline, Online) and reflected to notification area (task tray) icon. Most functions and information is accessible at a menu opened by right clicking the icon. So, usually you don't need to make the window stayed on the desktop.
  4. To add another ReadyNAS system for monitoring, copy NasHerder.exe to another folder and do the same. Multiple instances of this app work fine as long as working folders are separated.

5. Functions

Start NAS

This function tries to start assigned ReadyNAS system by sending a magic packet for Wake-On-LAN (WOL). It can be done automatically when PC boots up or resumes.

Note: To use WOL, the system has to be x86 (or arm) based and WOL is enabled in FrontView. In some models that have multiple LAN ports, WOL is supported only one of the ports.

Ping NAS

This function checks if assigned ReadyNAS system is online. It is automatic but you can do it manually by pressing [Ping Now]. You can select from following 2 methods:

The result will be shown in [Status] box in the following manner.

In addition, some featured items will appear underneath depending on models and configuration.

Note: Your need to select SSL for OS6 models and RAIDar Protocol for the older models.

Shutdown NAS

This function tries to shutdown assigned ReadyNAS system by sending a power off command through SSL. It can be done automatically when client PC on which this app is running powers off or suspends so as to synchronize power off of the system with that PC.

Note: If you use this function immediately after the system starts, it may not work because the system is still in starting process and so not ready for commands.

Reboot NAS

This function tries to reboot assigned ReadyNAS system by sending reboot command through SSL. To use this function, you need to enable it in [Synchro] tab.

Scan

This function shows all ReadyNAS systems in LAN using RAIDar Protocol. You can open [Scan] Dialog from [Tool]. This is mainly for settings.

Chart

This function shows line charts of temperature data during given period utilizing log files on NAS status. You can open [Chart] Dialog from [Tool]. The shown temperatures are the highest ones on an hourly basis.

Note: When a disk temperature indicates 0C/32F or -1C/30F, it actually means that the disk is in spin-down mode in some models.

This Dialog is freely expandable. You can change the length of period (ending on current date) by setting [Period]. The maximum period is 30 days.

6. Tweet

Utilizing Twitter, you can monitor ReadyNAS system remotely without hassle settings of network (as long as client PC on which this app is running is on). This app can tweet the system's latest status periodically and perform some commands sent by direct message (DM).

For this function, this app uses Twitterizer libraries to communicate with Twitter server.

Set up

To set up Tweet function, follow the steps below.

  1. Prepare a Twitter account which this app will use. It is recommended to create a new account rather than use your ordinary account because this app will receive commands by DM from commanding account (typically your ordinary account). It is not the case, however, if you only want this app tweet the system's status using your ordinary account.
  2. Follow your ordinary account and the account for this app each other.
  3. Development of original Twitterizer ended and it no longer works with current Twitter API (API 1.1). Instead, the forked version "Twitterizer-Remaked For API 1.1" works fine with API 1.1. So get it and copy "Twitterizer2.dll" and "Newtonsoft.Json.dll" to this app's working folder.
  4. Make sure your PC has .NET Framework 4.0 Extended (Full) installed.
    Note: It is likely that your PC has only .NET Framework 4.0 Client Profile, a subset of Extended (Full) version, unless you installed it. If so, you need to get it from Microsoft.
  5. If above conditions are met, [Proceed to authorization] in [Tweet] tab will be enabled. Press it to open [Authorization] Dialog. Then press [Open authorization page] and wait until your browser opens Twitter's authorization page.
  6. In that page, authorize "NAS Herder" to use the account for this app prepared above. After that, the page will show a PIN code. So type it in [Authorization] Dialog and press [OK].
    Note: The access token which is used by this app to access Twitter server will be encrypted with a key managed by Windows OS. So its data saved in settings file is unusable on other PC.
  7. If everything done well, returning to [Settings] Dialog, items below [Proceed to authorization] will become usable. Make settings as you wish. After pressing [OK], Tweet function will be enabled.

To stop Tweet function, close this app and delete Twitterizer libraries. You may revoke this app in Twitter's settings page (Only revoking will not stop this app from trying to access Twitter server).

Command

You can send a command by DM from commanding account (your ordinary account) to the account for this app. The following commands are available:

The command format is:

_COMMAND_NAME_

For example, if command is [Status] and name of the system is "My Precious", it will be:

" Status My Precious "

If you want to cancel a command in DM sent already, send another DM immediately. Since this app evaluates only the latest DM from commanding account at the time of checking, if you are fast and lucky enough, it will prevent the older DM from being read.

7. Settings

Details of items in [Settings] Dialog.

[NAS] Tab

[Notification] Tab

[Synchro] Tab

[Other] Tab

[Tweet] Tab

[Proceed to authorization] will be enabled if Twitterizer libraries exist in working folder and .NET Framework 4.0 Extended (Full) is installed. In addition, items below [Proceed to authorization] will not become usable until authorization is done.

8. Other

This app is tested on:

with:

This app is an open source software. See License.txt for details.

I thank various people who gave me idea to develop this software, especially by showing one can utilize RAIDar Protocol to get information directly from ReadyNAS system. Also I thank author of original Twitterizer and author of the forked version for very useful libraries.

"ReadyNAS" is registered trademark of Netgear Inc.

Project Site (at SourceForge.net)

EMO emotom(atmark)pobox.com