Koozali.org: home of the SME Server

[ANNOUNCE] smeserver-hwinfo-1.0 : Adds hardware info panel to server-manager

Offline jpl

  • *
  • 112
  • +0/-0
New contrib smeserver-hwinfo

Purpose :

This contrib adds a new Hardware Info panel in the server-manager to launch and display a detailed report about your server's hardware using lshw.

Downloads :

[RPMS]
http://mirror.contribs.org/contribs/jpl/smecontribs/smeserver-hwinfo/smeserver-hwinfo-1.0-1.el4.eos.noarch.rpm
http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/lshw-2.11.1-1.el4.rf.i386.rpm

[SRPMS]
http://mirror.contribs.org/contribs/jpl/smecontribs/smeserver-hwinfo/smeserver-hwinfo-1.0-1.el4.eos.src.rpm
http://apt.sw.be/redhat/el4/en/i386/SRPMS.dag/lshw-2.11.1-1.rf.src.rpm

Installation :

yum localinstall lshw-2.11.1-1.el4.rf.i386.rpm smeserver-hwinfo-1.0-1.el4.eos.noarch.rpm
/sbin/e-smith/expand-template /etc/e-smith/web/common/css/hwinfo.css
/sbin/e-smith/expand-template /etc/e-smith/web/common/head.tmpl
/etc/e-smith/events/actions/navigation-conf
« Last Edit: September 01, 2007, 09:36:29 PM by jpl »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Nice I will have a look at it. A few remarks though...
Installation :

rpm -i lshw-2.11.1-1.el4.rf.i386.rpm smeserver-hwinfo-1.0-1.el4.eos.noarch.rpm
Please use 'yum localinstall' instead of 'rpm -i' as this is the preferred installation method on SME Server as of release 7, as a bonus it will also try to resolve the necessary dependencies against the enabled repositories.
/sbin/e-smith/expand-template /etc/e-smith/web/common/css/hwinfo.css
/sbin/e-smith/expand-template /etc/e-smith/web/common/head.tmpl
/etc/e-smith/events/actions/navigation-conf
Perhaps you can integrate this in to the smeserver-hwinfo RPM (preferably in the %post section of your spec file) that way users will not have to worry about manually expanding templates. and regenerating the navigation panel of the server-manager.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline jpl

  • *
  • 112
  • +0/-0
Nice I will have a look at it. A few remarks though...Please use 'yum localinstall' instead of 'rpm -i' as this is the preferred installation method on SME Server as of release 7
You are right. Corrected...

Perhaps you can integrate this in to the smeserver-hwinfo RPM (preferably in the %post section of your spec file) that way users will not have to worry about manually expanding templates. and regenerating the navigation panel of the server-manager.
Considered, but generates some errors if the package is included in a customized iso. Have not found the way to do it without errors on iso install when including them in %post section (and all the nescessary is done by iso post-intall/upgrade scripts in this case)

Offline jumba

  • ****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Just tried, - works like a charm!

Thanks for your good work :-P

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com

Offline jpl

  • *
  • 112
  • +0/-0
Darrell,

Pertinent suggestion. I have thought about smeserver-lswh but in my mind I think about a contrib which provides hardware information, and not only provides lswh integration in SME.
lshw is presently the only way used to do it, but perhaps will not be the only one (I have looked at libhd from OpenSuse hwinfo, but port to SME7 seems difficult. Perhaps more easy with SME8)

If I decide to restrict it to lshw, name of the contrib should become smeserver-lshw as you suggest.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
If I decide to restrict it to lshw, name of the contrib should become smeserver-lshw as you suggest.
Perhaps it would be better to package all different packages with an implementation for SME Server and make one general package that draws everything in, e.g.:

smeserver-hwinfo
+-smeserver-lshw
|   +-lshw
+-smeserver-package2
|   +-original CentOS/RHEL4 packages
|      +-it's dependencies
+an so on...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Per

  • *
  • 63
  • +0/-0
    • Bends - better on the internet than in reality
Wiki HowTo added
« Reply #7 on: December 26, 2007, 07:27:48 AM »
I have translated this to a HowTo in the Wiki:
http://wiki.contribs.org/Hwinfo

Please edit, correct and improve!
/Per

PS. I read about lshw command in a magazine, tried it in SME -Not there, searched this forum -BAM, ended up here instantly. Thanks for your contrib. DS
NO! I refuse to put some clever latin sentence here!

Offline Per

  • *
  • 63
  • +0/-0
    • Bends - better on the internet than in reality
Problem
« Reply #8 on: December 26, 2007, 10:46:25 AM »
I followed (my own) HowTo, but it don't work :oops:
I go to server-manager and hardware info.
But it's empty!
Where did I go wrong? Or is it possibly something about the fact that I have a IBM machine?

On my other test-machine (also IBM) I got this in server-manager menu:
82baf74da9c73b8e52d91da2d19924f5
fa5668feef78a9d2bffb27005596ee3e
8db6639bb041fac6f9a0e7d420304679
d3baaf8ef9f14dbf9069845698eb48da
ac300845fc754ab874257ab0d6afff19
9af3fa082156e05df9a3123f2a592abe

eh-uh? /Per
NO! I refuse to put some clever latin sentence here!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Problem
« Reply #9 on: December 26, 2007, 11:13:06 AM »
On my other test-machine (also IBM) I got this in server-manager menu:
82baf74da9c73b8e52d91da2d19924f5
fa5668feef78a9d2bffb27005596ee3e
8db6639bb041fac6f9a0e7d420304679
d3baaf8ef9f14dbf9069845698eb48da
ac300845fc754ab874257ab0d6afff19
9af3fa082156e05df9a3123f2a592abe
.
eh-uh? /Per
This is a known issue and the solution is described in bug 3586, comment 5.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Per

  • *
  • 63
  • +0/-0
    • Bends - better on the internet than in reality
Thanks, that fixed those unknown lines...
NO! I refuse to put some clever latin sentence here!

Offline landymas

  • 13
  • +0/-0
I installed the rpm onto my Dell Poweredge Server and it seemed to install properly. I get the Hardware information link in Server-Manager but the only info I get is:

"SME Server 7.2
Copyright 1999-2006 Mitel Corporation
All rights reserved.
Copyright 2006 SME Server, Inc."

I don't get any of the extraneous lines like the previous post. What do I do to get the detailed reports?

Offline Per

  • *
  • 63
  • +0/-0
    • Bends - better on the internet than in reality
That's just as far as I have come too....
The page shows but no hardware info. :-(
I will test on a third (non IBM) server tonight or tomorrow.

EDIT: Tested and failed, same result again; page shows but no info...... Somebody Help!
Or should I file a bug? I wait a little in case some wise guys are popping by. It's most likely something wrong about the HowTo I did.
« Last Edit: December 26, 2007, 05:18:40 PM by per »
NO! I refuse to put some clever latin sentence here!

Offline sognenovski

  • **
  • 64
  • +0/-0
Works fine here - PowerEdge SC430

Nice contrib - thx  8-)

Offline fpausp

  • *
  • 728
  • +0/-0
Hi all,

Same result only:

 SME Server 7.2
Copyright 1999-2006 Mitel Corporation
Alle Rechte vorbehalten.
Copyright 2006 SME Server, Inc.


regards
fpausp
Viribus unitis