Name: ipmiutil Version: 2.6.0 Release: 1 Summary: A package that includes various IPMI server management utilities License: BSD Vendor: Kontron America, Inc. Group: Applications/System Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz URL: http://ipmiutil.sourceforge.net BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel %description The ipmiutil component package provides utilities to view the SEL, perform an IPMI chassis reset, set up the BMC LAN and Platform Event Filter entry to allow SNMP alerts, and other IPMI tasks. These can be invoked with the metacommand ipmiutil, or via subcommand shortcuts as well. Man pages are provided. An IPMI driver can be provided by either the Intel IPMI driver (/dev/imb) or the OpenIPMI driver (/dev/ipmi0), etc. If used locally and no driver is detected, ipmiutil will use user-space direct I/Os instead. %prep %setup -q %build sh configure make %install # %{buildroot} is set above in the header so it will never be "/" # if [ "%{buildroot}" != "/" ] rm -rf %{buildroot} export RPM_BUILD_DIR=`pwd` export RPM_BUILD_ROOT=%{buildroot} make install DESTDIR=%{buildroot} # AFTER_INSTALL %files %defattr(0755,root,root) %{_sbindir}/ipmiutil %{_sbindir}/idiscover %{_sbindir}/ievents %{_sbindir}/ipmi_port %{_sbindir}/ialarms %{_sbindir}/iconfig %{_sbindir}/icmd %{_sbindir}/ifru %{_sbindir}/igetevent %{_sbindir}/ihealth %{_sbindir}/ilan %{_sbindir}/ireset %{_sbindir}/isel %{_sbindir}/isensor %{_sbindir}/iserial %{_sbindir}/isol %{_sbindir}/iwdt %{_initrddir}/ipmiutil_wdt %{_initrddir}/ipmiutil_asy %{_initrddir}/ipmi_port /etc/cron.daily/checksel %{_datadir}/%{name}/ipmi_if.sh %{_datadir}/%{name}/evt.sh %defattr(0664,root,root) %{_datadir}/%{name}/README %{_datadir}/%{name}/COPYING %{_datadir}/%{name}/UserGuide %{_datadir}/%{name}/bmclanpet.mib %{_mandir}/man8/isel.8.gz %{_mandir}/man8/isensor.8.gz %{_mandir}/man8/ireset.8.gz %{_mandir}/man8/igetevent.8.gz %{_mandir}/man8/ihealth.8.gz %{_mandir}/man8/iconfig.8.gz %{_mandir}/man8/ialarms.8.gz %{_mandir}/man8/iwdt.8.gz %{_mandir}/man8/ilan.8.gz %{_mandir}/man8/iserial.8.gz %{_mandir}/man8/ifru.8.gz %{_mandir}/man8/icmd.8.gz %{_mandir}/man8/isol.8.gz %{_mandir}/man8/ipmiutil.8.gz %{_mandir}/man8/idiscover.8.gz %{_mandir}/man8/ievents.8.gz # %defattr(-,root,root) # %doc README TODO COPYING ChangeLog %clean # %{buildroot} is set above in the header so it will never be "/" rm -rf %{buildroot} %pre %post pdir=%{_sbindir} echo "Installing IPMI Management Utilities %{version} ..." # POST_INSTALL # check if chroot, which will not have /proc instances if [ -f /proc/devices ] then isroot=1 else isroot=0 fi if [ "$1" = "1" ] then # doing rpm -i, first time if [ $isroot -eq 1 ] then # detects IPMI interface type, output to %{_datadir}/%{name}/ipmi_if.txt %{_datadir}/%{name}/ipmi_if.sh # Run some ipmiutil command to see if any IPMI interface works. $pdir/ipmiutil wdt >/dev/null 2>&1 fIPMIret=$? else # else chroot, set as if IPMI is not supported fIPMIret=1 fi # If fIPMIret==0, the IPMI cmd was successful, and IPMI is enabled. if [ $fIPMIret -eq 0 ] then # IPMI_IS_ENABLED # Enable services: ipmi_port reserves the IPMI RMCP port from portmap if [ -x /sbin/chkconfig ]; then /sbin/chkconfig --add ipmi_port /sbin/chkconfig --add ipmiutil_wdt /sbin/chkconfig --add ipmiutil_asy fi # Capture a snapshot of IPMI sensor data for later reuse. sensorout=%{_datadir}/%{name}/sensor_out.txt if [ ! -f $sensorout ] then echo "Saving a sensor snapshot to $sensorout ..." $pdir/ipmiutil sensor >$sensorout fi fi fi echo "done `date`" %preun # before uninstall echo "Uninstalling ipmiutil-%{version} package ..." # arg1 = 1 if rpm -U, arg1 = 0 if rpm -e if [ "$1" = "0" ] then if [ -x %{_initrddir}/ipmi_port ] then %{_initrddir}/ipmi_port stop >/dev/null 2>&1 %{_initrddir}/ipmiutil_wdt stop >/dev/null 2>&1 %{_initrddir}/ipmiutil_asy stop >/dev/null 2>&1 if [ -x /sbin/chkconfig ]; then /sbin/chkconfig --del ipmi_port >/dev/null 2>&1 /sbin/chkconfig --del ipmiutil_wdt >/dev/null 2>&1 /sbin/chkconfig --del ipmiutil_asy >/dev/null 2>&1 fi fi fi %postun %changelog * Tue Feb 16 2010 Andrew Cress 2.6.0-1 cleaned up some script clutter, changed naming scheme for sub-commands * Tue Jan 26 2010 Andrew Cress 2.5.3-1 cleaned up some rpmlint issues, removed bmclanaol.mib * Mon Nov 9 2009 Andrew Cress 2.5.1-1 do not gzip man files, clean up scripts, move distro specifics to configure * Tue Jun 23 2009 Andrew Cress 2.4.0-1 moved all progs to sbin, install init/cron scripts via files not post * Wed Dec 10 2008 Andrew Cress 2.3.2-1 changes for Fedora with ipmiutil-2.3.2 * Fri Jun 08 2007 Andrew Cress rpmlint tweaks for ipmiutil-1.9.8 * Mon May 21 2007 Andrew Cress added isroot flag for chroot cases * Mon May 18 2007 Andrew Cress added ipmi_port init handling * Mon Jul 10 2006 Andrew Cress changed to libfreeipmi.so.2, include and run ipmi_if.sh * Tue Aug 02 2005 Andrew Cress changed not to run pefconfig if already configured * Wed Feb 03 2005 Andrew Cress changed /usr/man to /usr/share/man, fixed postun to recognize rpm -U via arg 1 * Mon Nov 1 2004 Andrew Cress added freeipmi install files and logic * Tue Aug 23 2004 Andrew Cress - added MIB links to /usr/share/snmp/mibs * Tue Aug 10 2004 Andrew Cress - added icmd utility to the rpm * Thu Aug 05 2004 Andrew Cress - added special logic for SuSE snmpd.conf * Fri Apr 02 2004 Andrew Cress - added checksel cron job * Tue Jan 28 2003 Andrew Cress - added sensor & fruconfig for ipmiutil 1.2.8 * Tue Aug 2 2002 Andrew Cress - fixed bug 793 (dont need Require:ipmidrvr) for ipmiutil 1.2.2 * Tue Jul 2 2002 Andrew Cress - fixed bug 555 in showsel for ipmiutil 1.2.1 * Fri May 10 2002 Andrew Cress - fixed bug 504 in pefconfig for ipmiutil 1.1.5 * Thu Apr 11 2002 Andrew Cress - updated pathnames for ipmiutil 1.1.4, some cleanup * Mon Mar 18 2002 Andrew Cress - updated for 1.1.3-2, added checking for grub vs. lilo to .spec * Tue Mar 12 2002 Andrew Cress - updated for 1.1.3, added source rpm, changed license, etc. * Thu Jan 31 2002 Andrew Cress - updated for 1.1.0-2, changed selpef to pefconfig * Thu Jan 25 2002 Andrew Cress - updated for 1.1.0, changed to ipmidrvr rather than isc dependency * Thu Jan 16 2002 Andrew Cress - updated for 1.1.0, added hwreset utility * Thu Dec 14 2001 Andrew Cress - updated for 1.0.0, man page updates * Thu Nov 19 2001 Andrew Cress - updated for 0.9.0, uses new OSS bmc_panic, so don't install module. * Thu Nov 13 2001 Andrew Cress - updated for 0.8.5, add "Requires: isc" (#32), hide selpef output (#38) * Thu Nov 8 2001 Andrew Cress - updated for 0.8.4, eliminate "file exists" messages by fixing removal * Thu Oct 25 2001 Andrew Cress - updated for 0.8.2, run selpef (objdump:applypatch gives bogus warning) * Thu Oct 25 2001 Andrew Cress - updated for 0.8.2, run selpef (objdump:applypatch gives bogus warning) * Wed Oct 24 2001 Andrew Cress - created ipmiutil package 0.8.1 without kbuild * Tue Oct 23 2001 Andrew Cress - created ipmiutil package 0.8.0