SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

prtdiag is a little script that displays the hardware configuration and status of a running machine.

Its GPL.

It was tested and designed on Red Hat Linux 7.3, but it should work anywhere. If its missing an application it needs for information gathering, it will let you know.

It won't run on a default install of Red Hat Linux 7.1, because textutils is too old to use wc to count characters. Upgrade.

No llamas were harmed in the making of prtdiag.

To install prtdiag, run ./install.sh as root. Either that or just chmod +x prtdiag and then ./prtdiag. Seriously though. Not hard at all.

If you want more information, look at the manpage. Its far more official and in-depth.

If the manpage isn't enough, look at the code for prtdiag itself. Its a bash script. Open it in an editor.

If viewing the source isn't enough, email me. Prepare to be flamed if its something obvious.

If you have an improvement, send me a diff -u. If it does something bad, send me the output in an email.

Oh yeah. You shouldn't run lm_sensors on an IBM Thinkpad. It will eat the motherboard, or something equally nasty to the hardware. I don't know why this is, I just know that it is the truth. So don't. It might do this on other machines, but hey, I didn't lose any boxes to this. Use lm_sensors at your own risk. And one more thing. lm_sensors lies. Often. Don't rely on its data unless you can verify its information yourself. If you want sensor information you can trust, either buy hardware that has good sensors (usually, this means non x86), or buy a specialized sensors card/install your own sensors.

prtdiag lives at http://people.redhat.com/tcallawa/prtdiag/

-Wed Jun 26 2002 Tom "spot" Callaway <tcallawa@redhat.com>


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.