I've just discovered ipmitool - very cool stuff - and an fact running it 
from a perl script from which I want to sample fans and temps.  I saw 
some earlier notes suggesting a more powerful perl interface to get 
better performance, but when I tried to download it I got stuck in 'rpm 
dependency hell' and decided I'd just stick to ipmitool as it feels like 
it's overhead is pretty low.  I fact, running it 10 time showed me:

[EMAIL PROTECTED] SPECS]# time for i in `seq 1 10`; do ipmitool sdr> 
/dev/null; done;

real    0m25.067s
user    0m0.010s
sys     0m0.080s

and at < .1 second of cpu time I'm more than pleased.  My thought was to 
take samples somewhere from every 1 to 5 minutes depending on how much 
accuracy I want, but I don't think I'd need more than that, so I can see 
running it anywhere from 300-1440 times a day.   However the part that 
gets my attention is the elapsed time!  I want to run this from a script 
that is doing other things as well, at a higher frequency and don't want 
to get bogged down with long delays and so that leads me to a couple of 
questions:

- is it possible for ipmitool to hang or will it eventually time out if 
it has problems?  if so, what if the timeout set to and is it possible 
to set your own?
- is there a 'reasonable' amount of time to give it and then just abort 
it if it doesn't return?   The reason I ask is if I run this from a perl 
script I could always set my own timer and just kill ipmitool it if it's 
taking too long
- is it possible to speed up ipmitool by asking for less data?  I saw an 
option to get by type, but only 1 type.  I don't suppose there's a way 
to specify a list of things to get is there - I didn't see any 
references to such a capability in the man page.  I don't think I'd want 
to call it more than once per monitoring cycle.

-mark



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to