phpSysInfo 2.0 - OS/2 Patch
phpSysInfo is a PHP script that displays information about the host being accessed.
This is a patch to make it work with OS/2.
Contents
Description
phpSysInfo is a PHP script that displays information about the host being accessed.
It will displays things like Uptime, CPU, Memory, SCSI, IDE, PCI, Ethernet, Floppy, and Video Information.
- You can grab the latest version of it here
- Click here to view phpsysinfo's SourceForge Project Page
This is a quick and dirty update to allow phpSysInfo to display information about an OS/2 system.
It only includes changed files and any extra files required for use in OS/2.
The data displayed by phpSysInfo in each section:
- Hostname and IP address are displayed as part of the heading of the page.
- System Vital:
- Cannonical Hostname - retrieved from Apache SERVER_NAME variable
- Listening IP - retrieved from Apache SERVER_ADDR variable
- Kernal Version - result of OS/2 "ver" command
- Uptime - result of running uptime
- Current Usage - "N.A"
- Load Average - "N.A"
- Hardware Information
- Processors - I don't know how to determine the number of processors, so I put: "At Least One"
- Model - determined using cpuid3b.exe
- Chip MHz - I don't know how to determine this, so I'm putting: "N.A."
- Cache Size - determined using cpuid3b.exe
- PCI Devices - again from cpuid3b.exe
- IDE Devices - from "RMVIEW"
- SCSI Devices - from "RMVIEW"
- Network Usage
This displays each network device in the system.
The amount of data sent and received on the device is displayed, along with a count of the errors.
- Memory Usage
- Physical Memory is the amount of memory physically in the PC (using countmem) and the used/free memory as determined using Theseus
- Disk Swap in an analysis of the swapper file. It displays how much of the allocated SWAPPER.DAT is used.
The memory used, free and swapped memory figures are calculated using a supplied Rexx script and Theseus.
- Mounted Filesystems is the result of running df.
It will display:
- All local fixed drives
- Mapped network drives
- Any CD drive with a CD in it.
Other empty removable drives will probably not be listed either (I can't test).
Package Contents
The package only contains file created for the OS/2 patch, or modified in some way from the original version.
The following are the files included in this package:
Readme.OS2
| That file you didn't read
|
COPYING
| Licence file (standard GNU license) - the second file you didn't read
|
cpuid.dat
| Modified cpuid.dat file from cpuident.zip
|
phpSysInfo.cmd
| Wrapper for Rexx utilities and other programs that need some sort of manipulation that I can't do with PHP.
determine the used, free and swapped memory details
|
phpSysInfo2.html
| This file
|
index.php
| Modified version of the index.php from phpSysInfo.
|
common_functions.php
| Modified version of the common_functions.php from phpSysInfo.
|
class.OS2.inc.php
| Class file definition for all the OS/2 specific things.
|
The following other packages are required to get this working:
Many thanks to the authors or porters of these packages.
Installation
Installation is reasonably easy, especially if all the requirements are already installed.
Here's the steps:
- Install Apache/2 or other OS/2 web server that will do PHP.
- Install PHP for you web server
- Install the standard phpSysInfo package
- Replace the following phpSysInfo files with the ones supplied in this package:
- index.php
- include\common_functions.php
- Put class.OS2.inc.php into the include\os directory
- Put the rest of the contents of this package into the same directory as the phpSysInfo package
- Make sure that the following DLLs and executables are available.
The DLLs should either be in the phpSysinfo directory or a directory on the LIBPATH.
Similarly, the executables should be in the phpSysinfo directory or a directory on the PATH.
- Make sure the following files are available. It is probably simplest if you put these in the phpSysInfo directory.
- Start a browser, and point it at
http://your_hostname/your_phpSysInfo_directory/index.php
.
- Boast to the world about your system!
The following are problems that I know of:
- If the CD drive is empty, the info displayed is the same as for the previous drive.
- SCSI devices aren't listed.
I don't have any, so I haven't done this.
If someone sends me the output, of RMVIEW, I can try and add it.
Or, tell me of a better way to get it, and, sample output of whatever tool
-
The list of CPUs in cpuident.zip is out of date.
I have added a couple of newer CPUs, but, it's a pain to get the details from the Intel documentation.
I'll add more as I have time.
If you want your CPU listed, either add it yourself and send me the update, or, tell me what it is and I'll add it.
Version History
- 0.1.0 - 10/03/2002 - Initial release
- 0.2.0 - 13/03/2002
- Replaced RxNetstat.cmd and GetMemory.cmd with phpSysInfo.cmd.
- Changed version of df being used. Mounted network drives and file system types are now displayed.
- Displaying SCSI details.
If you find any bugs, please tell me at the contact address below. Tell me:
- version of phpSysInfo and the OS/2 patches
- OS/2 Version and fixpack level
- Details of what is displayed incorrectly, and, if possible, output of the program used to display this.
- anything else you think is important
Here are some links that you might find useful:
See the original phpSysInfo package for the licence.
This software is provided as is. No warranty is given by the author,
expressed or implied. Use this software at your own risk. The author
assumes no responsibility for any damage from the use of this software.
Contacts
If you find any bugs, have any suggestions or simply want to say how wonderful
or terrible this is, drop me an e-mail