IMPORTANT NOTICE
During the next period of time, the Thecus Wiki will migrate to a new site - the NAS Website. The migration is part of an improvement initiative, which includes giving the site a new look and making it more user friendly.
During the migration information may exist both at the old and new site, however slowly pages should start to be located mainly at the new site. Please see the NAS Website for details.
N5200 Module: INFO
From Thecus Wiki
Contents |
Facts
Name: INFO (Show Device Information)
Maintainer(s): Andreas Vogel (omega), Peter Futterknecht (peterfu)
Target: N5200
Latest version: 2.00.04
Depends on module(s): none
Description
General Overview and Installation
This module comes as a ZIP compressed file with the name N5200_<modname>_<version>.zip, where <modname> is the module name and <version> is the version number of the module. While unpacking the ZIP file, a new directory N5200_<modname>_<version> containing the module and its source code is created.
The module file is called <modname>.mod and the source code is located in the directory <modname>. The source code is included for interested people and is not needed for module installation. The file Makefile can be used to rebuild the module on Linux systems.
The module is installed using the "System"->"Module Mgmt" menu in the Thecus Web Server Administration. Specify the file <modname>.mod as the module file and press "Install".
The whole installation process is logged and sent as an E-Mail if you're configured in the E-Mail notification configuration. After successful installation enable the module in order to run the module.
After uninstallation of the module, a log of the uninstall process will be send to the user(s) configured in the E-mail notification configuration. Prior uninstallation of the module, the actual configuration data is backed up to the place "/data/raid/module/backup/<modname>". When the module is installed again, the module configuration is restored from that place if available.
Accessing INFO page
With firmware 1.00.07 and earlier you cannot enter the INFO page through the Module Mgmt page due to an error by Thecus. There are two workarounds for this till Thecus fix it in future firmware updates.
Option 1: Manually enter the INFO Module page Simply enter the INFO Page URl which is http://192.168.1.100//adm/getform.html?name=../modules/INFO/www/index assuming you are using the default N5200 IP address.
Option 2: Modify the getform.html file If you're talented and if you have installed and enabled the IMGDUP module, edit the file /img/www/htdocs/adm/getform.html:
Change the lines
$htm=$_REQUEST['name'];
if (!$htm){
print 'no name given';
exit;
}
to
$htm=$_REQUEST['name'];
$module=$_REQUEST['Module'];
if (!$htm && !$module){
print 'no module or name given';
exit;
}
and the line
include("$htm.htm");
to
if ($module) {
include("../modules/$module/www/index.htm");
} else {
include("$htm.htm");
}
Module version 2.00.00
This module currently doesn't do much: it shows all information it can get on in the module property page (just as a plain list).
Currently the network configuration (including the speed and the duplex mode of the interface) and some general information like uptime, firmware version etc. is shown. SMART temperatures readings are also shown for installed drives.
There is one central script, infotool, which does the job of getting all information.
I created this module as an example and to be continued in order to provide even more information and to enhance the HTML code.
On the module property page, you can do this:
- See a short module description.
- See all information we can get for the N5200 device.
Module version 2.00.01
The infotool script was enhanced so it can get more information. The internal design of the script was changed too. The module property page does show almost all the information the script is able to get now.
Module version 2.00.02
This version now supports FW 2.00.01 and should still be compatible with previous version. I've added some more infos: model name and FW version for the hard disks, information for all network interfaces and information for the filesystems /tmp and /raid/data.
But I'm still searching for a volunteer for doing the presentation of all hat information in HTML.
Module version 2.00.03
Works now also on the N7700.
Module version 2.00.04
Some modifications to be compatible with FW 3.x of N5200 and N7700
News
- <2007-01-22>: First public release.
- <2007-01-28>: Version 2.00.01: More information is shown for the N5200.
- <2007-09-14>: Version 2.00.02: Works now for FW 2.00.01, added some more infos
- <2009-04-13>: Version 2.00.03: Works now also on the N7700
- <2009-10-15>: version 2.00.04: for 3.x FW versions
Versions
- Version 2.00.04
- Release date: 2009-10-15
- Works on firmware: >= 1.00.06.5
- Does not work on firmware: <= 1.00.05
- Download: N5200_INFO_2.00.04.zip (approx. 140 KB)
- Major changes: some changes to be compatible with 3.x FW
- Version 2.00.03
- Release date: 2009-04-13
- Works on firmware: >= 1.00.06.5
- Does not work on firmware: <= 1.00.05
- Download: N5200_INFO_2.00.03.zip (approx. 140 KB)
- Major changes: Works now also on N7700
- Version 2.00.02
- Release date: 2007-09-14
- Works on firmware: >= 1.00.06.5
- Does not work on firmware: <= 1.00.05
- Download: N5200_INFO_2.00.02.zip (approx. 140 KB)
- Major changes: Works now for FW 2.00.01, added more infos.
- Version 2.00.01
- Release date: 2007-01-28
- Works on firmware: 1.00.06.5
- Does not work on firmware: <= 1.00.05
- Download: N5200_INFO_2.00.01.zip
- Major changes: More information is shown for the N5200.
- Version 2.00.00
- Release date: 2007-01-22
- Works on firmware: 1.00.06.5
- Does not work on firmware: <= 1.00.05
- Download: N5200_INFO_2.00.00.zip
- Major changes: First public release.
Example output of what this module shows
System Info Firmware Version: 2.00.01 Product: n5200 Producer: THECUS CPU: Intel(R) Celeron(R) M processor 600MHz Uptime: 2 days 0:44 LoadAvg: 0.08 0.03 0.01 Fan 1 speed: 0 Fan 2 speed: 2522 Switch Board: Yes Filesystem Info: /raid/data Size 1456634992 KB Used 331874700 KB Available 1050767488 KB Percent used 24 % Filesystem Info: /tmpfs Size 131072 KB Used 916 KB Available 130156 KB Percent used 1 % Network Interface Info: lo Link Status: RUNNING Speed: Unknown Duplex: Unknown Addr: 127.0.0.1 BroadCast: 255.0.0.0 NetMask: Unknown TxBytes: Unknown bytes TxPackets: Unknown packets RxBytes: Unknown bytes RxPackets: Unknown packets Network Interface Info: eth0 Link Status: RUNNING Speed: 1000Mb/s Duplex: Full Addr: 193.141.8.5 BroadCast: 193.141.8.255 NetMask: 255.255.255.0 TxBytes: 534819323 bytes TxPackets: 914906 packets RxBytes: 360233194 bytes RxPackets: 776968 packets Network Interface Info: eth1 Link Status: RUNNING Speed: 1000Mb/s Duplex: Full Addr: 192.168.20.1 BroadCast: 192.168.20.255 NetMask: 255.255.255.0 TxBytes: 253200 bytes TxPackets: 1168 packets RxBytes: 0 bytes RxPackets: 0 packets Network Interface Info: lt0 Link Status: DOWN Speed: Unknown Duplex: Unknown Addr: Unknown BroadCast: Unknown NetMask: Unknown TxBytes: Unknown bytes TxPackets: Unknown packets RxBytes: Unknown bytes RxPackets: Unknown packets Network Interface Info: ipddp0 Link Status: DOWN Speed: Unknown Duplex: Unknown Addr: Unknown BroadCast: Unknown NetMask: Unknown TxBytes: Unknown bytes TxPackets: Unknown packets RxBytes: Unknown bytes RxPackets: Unknown packets RAID Info: /dev/md0 Level: raid1 State: clean Array Size: 987840 bytes Device Size: 987840 bytes Chunk Size: ERROR Raid Devices: 5 Total Devices: 5 Active Devices: 5 Working Devices: 5 Failed Devices: 0 Spare Devices: 0 RAID Info: /dev/md1 Level: raid5 State: clean Array Size: 1558883072 bytes Device Size: 389720768 bytes Chunk Size: 64K Raid Devices: 5 Total Devices: 5 Active Devices: 5 Working Devices: 5 Failed Devices: 0 Spare Devices: 0 Disk Info: /dev/sda Vendor: SAMSUNG Model: HD400LJ Revision: ZZ10 Smart State: ENABLED Smart Error Count: 0 Raw Read Error Rate: 0 Start/Stop Count: 27 Realloc Sector Count: 0 Power On Hours: 7480 hours Power Cycle Count: 27 cycles Temperature: 29 celsius Disk Info: /dev/sdb Vendor: SAMSUNG Model: HD400LJ Revision: ZZ10 Smart State: ENABLED Smart Error Count: 0 Raw Read Error Rate: 0 Start/Stop Count: 27 Realloc Sector Count: 0 Power On Hours: 7480 hours Power Cycle Count: 27 cycles Temperature: 32 celsius Disk Info: /dev/sdc Vendor: SAMSUNG Model: HD400LJ Revision: ZZ10 Smart State: ENABLED Smart Error Count: 0 Raw Read Error Rate: 9 Start/Stop Count: 27 Realloc Sector Count: 0 Power On Hours: 7480 hours Power Cycle Count: 27 cycles Temperature: 33 celsius Disk Info: /dev/sdd Vendor: SAMSUNG Model: HD400LJ Revision: ZZ10 Smart State: ENABLED Smart Error Count: 0 Raw Read Error Rate: 0 Start/Stop Count: 27 Realloc Sector Count: 0 Power On Hours: 7480 hours Power Cycle Count: 27 cycles Temperature: 32 celsius Disk Info: /dev/sde Vendor: SAMSUNG Model: HD400LJ Revision: ZZ10 Smart State: ENABLED Smart Error Count: 0 Raw Read Error Rate: 0 Start/Stop Count: 27 Realloc Sector Count: 0 Power On Hours: 7479 hours Power Cycle Count: 27 cycles Temperature: 30 celsius