[racktables-users] Re: Locate LED

  • From: Bryan Taylor <BTaylor2032@xxxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Sat, 24 Apr 2010 06:43:42 -0400

Wow this is such a great idea! I never knew it existed. I have a
customer who constantly changes their IP addresses without telling me so
I have no idea what server their talking about when they have a problem.
I thought I could set the internal speaker to beep. I'm reading this
while leaving to school, so I hope I'm in the same library with this. :)

Bryan

On Fri, 2010-04-23 at 13:37 +0200, Simon Kainz wrote:

> Denis Ovsienko wrote:
> >> Yes, I use the ipmitool tool :-) to set led stati. My question was
> >> rather as how/where to include this in RT? I mean to get a
> >> button/checkbox/whaterver on the properties panel of my Server object.
> > 
> > The simplest way is to add a dedicated IPMI tab for that, for that you'd 
> > need to look into navigation.php and add a couple of functions there: one 
> > (look for samples in interface.php) to render a panel with a "fire" button 
> > (and with some radios or whatever is needed), and another (samples in 
> > ophandler.php) to handle the pressing of that button. The latter function 
> > would actually call the ipmitool to do something.
> > 
> > And, if you'd want it to look more consistently, you'd need to register a 
> > third function (trigger), which would tell, if your IPMI panel works with a 
> > particular object or not. Then the tab would be only displayed where it 
> > makes use (and not on every switch, patch panel and so).
> > 
> > Once you finish that, you can put all that into local.php and your addon 
> > will likely survive RackTables upgrades (and you can put it into contribs 
> > directory of RackTables, if you want).
> > 
> > --
> >     Denis Ovsienko
> > 
> Hmm, this sounds like te way to go! I will take a look in the files you
> mentioned.
> 
> Thank you very much!
> 


Other related posts: