diff --git a/ipmitool.spec b/ipmitool.spec index fc93475bdb197ad79262a33271045aff19c6afcf..54c474ba7fe48a1bbb8809cc26004f246c25939d 100644 --- a/ipmitool.spec +++ b/ipmitool.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %global dir_name IPMITOOL %global dir_version 1_8_18 @@ -30,34 +30,39 @@ Patch11: 0011-expand-sensor-name-column.patch Patch12: 0012-CVE-2020-5208.patch Patch13: 0013-fru-Fix-crashes-on-6-bit-ASCII-strings.patch +BuildRequires: libtool +BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: readline-devel -BuildRequires: ncurses-devel +BuildRequires: automake autoconf %{?systemd_requires} BuildRequires: systemd # bootstrap -BuildRequires: automake -BuildRequires: autoconf -BuildRequires: libtool Obsoletes: OpenIPMI-tools < 2.0.14-3 Provides: OpenIPMI-tools = 2.0.14-3 %description -This package contains a utility for interfacing with devices that support -the Intelligent Platform Management Interface specification. IPMI is -an open standard for machine health, inventory, and remote power control. - -This utility can communicate with IPMI-enabled devices through either a -kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in -the IPMI specification. IPMIv2 adds support for encrypted LAN -communications and remote Serial-over-LAN functionality. - -It provides commands for reading the Sensor Data Repository (SDR) and -displaying sensor values, displaying the contents of the System Event -Log (SEL), printing Field Replaceable Unit (FRU) information, reading and -setting LAN configuration, and chassis power control. - +IPMITool is a command line utility that allows users to interface with IPMI-enabled +systems. IPMI (Intelligent Platform Management Interface) is a standardized interface +for managing and monitoring servers and other computing systems. With IPMITool, system +administrators can remotely monitor server health, manage firmware updates, and +configure system settings. + +IPMITool supports various IPMI implementations, including those from major vendors such +as Dell, HP, and IBM. It can be used to retrieve sensor data (such as temperature, +voltage, and fan speed), reset or power off/on a system, and view event logs. IPMITool +can also be used to manage firmware updates, configure the BMC (Baseboard Management +Controller), and perform other administrative tasks related to IPMI-enabled systems. + +One of the key benefits of IPMITool is its flexibility. It supports a wide range of +options and commands, allowing administrators to customize their monitoring and +management workflows. IPMITool can be used on Linux, Windows, and other operating +systems, and it can also be integrated with other monitoring and management tools. + +Overall, IPMITool is a powerful and versatile tool for managing and monitoring IPMI- +enabled systems. It provides system administrators with granular control over their +systems and enables them to quickly diagnose and resolve issues. %package -n ipmievd Summary: IPMI event daemon for sending events to syslog @@ -77,9 +82,32 @@ Requires: exchange-bmc-os-info BuildArch: noarch %description -n bmc-snmp-proxy -Given a host with BMC, this package would extend system configuration -of net-snmp to include redirections to BMC based SNMP. - +IPMITool BMC-SNMP-Proxy is a feature in IPMITool that allows SNMP-based +monitoring tools to access IPMI sensor data through a proxy. This feature +provides a way to integrate IPMI-enabled hardware into SNMP-based management +systems, such as Nagios or Icinga. + +The BMC-SNMP-Proxy works by translating SNMP requests into IPMI requests, +which are then sent to the target system's Baseboard Management Controller +(BMC). The BMC responds with the requested sensor data, which is then +translated back into SNMP format and returned to the monitoring tool. + +This feature is useful for organizations that want to use SNMP-based +monitoring tools to manage their IPMI-enabled hardware. SNMP is a widely-used +protocol for network management, and many organizations already have existing +SNMP monitoring systems in place. By using the BMC-SNMP-Proxy, organizations +can leverage their existing monitoring infrastructure to monitor their +IPMI-enabled hardware. + +It is important to note that the BMC-SNMP-Proxy requires that the target +system's BMC is configured with SNMP support. Additionally, the proxy must be +configured with the appropriate credentials to access the target system's +BMC. + +Overall, IPMITool BMC-SNMP-Proxy is a powerful feature that enables +organizations to integrate IPMI-enabled hardware into their existing network +management infrastructure. It provides a simple and efficient way to monitor +hardware health and quickly detect and resolve issues. %package -n exchange-bmc-os-info Summary: Let OS and BMC exchange info @@ -91,9 +119,28 @@ BuildRequires: make BuildArch: noarch %description -n exchange-bmc-os-info -Given a host with BMC, this package would pass the hostname & -OS information to the BMC and also capture the BMC ip info -for the host OS to use. +IPMITool exchange-bmc-os-info is a feature that allows the Baseboard Management +Controller (BMC) to exchange information with the operating system running on +the host system. This feature can be used to facilitate health monitoring and +management of the host system. + +When the exchange-bmc-os-info command is executed, the BMC requests information +about the operating system running on the host system. The operating system +responds with information about its status, including its health, power status, +and other relevant information. + +The BMC can use this information to detect and respond to issues with the host +system. For example, if the operating system reports that it is experiencing +high CPU usage, the BMC can adjust fan speeds to increase cooling and prevent +overheating. Similarly, if the operating system reports that it is running low +on disk space, the BMC can send alerts to administrators so that they can take +action to resolve the issue. + +Overall, the exchange-bmc-os-info feature provides a powerful mechanism for +monitoring and managing the health of the host system. When used in conjunction +with other IPMI features, such as sensor data recording and event logging, it +can help ensure that the host system remains available and responsive to user +needs. %package doc Summary: Documentation files for %{name} @@ -112,13 +159,6 @@ for f in AUTHORS ChangeLog; do done %build -# --disable-dependency-tracking speeds up the build -# --enable-file-security adds some security checks -# --disable-intf-free disables FreeIPMI support - we don't want to depend on -# FreeIPMI libraries, FreeIPMI has its own ipmitoool-like utility. - -# begin: release auto-tools -# Used to be needed by aarch64 support, now only cxoem patch makefiles are left. aclocal libtoolize --automake --copy autoheader @@ -126,7 +166,6 @@ automake --foreign --add-missing --copy aclocal autoconf automake --foreign -# end: release auto-tools %configure --disable-dependency-tracking --enable-file-security --disable-intf-free make %{?_smp_mflags} @@ -134,17 +173,17 @@ make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install -install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service -install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd -install -Dm 644 %{SOURCE3} %{buildroot}%{_unitdir}/exchange-bmc-os-info.service -install -Dm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/exchange-bmc-os-info -install -Dm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/set-bmc-url.sh -install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info +install -D -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service +install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd +install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/exchange-bmc-os-info.service +install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/exchange-bmc-os-info +install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/set-bmc-url.sh +install -D -m 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info -install -Dm 644 contrib/bmc-snmp-proxy.sysconf %{buildroot}%{_sysconfdir}/sysconfig/bmc-snmp-proxy -install -Dm 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service -install -Dm 755 contrib/bmc-snmp-proxy %{buildroot}%{_libexecdir}/bmc-snmp-proxy +install -D -m 644 contrib/bmc-snmp-proxy.sysconf %{buildroot}%{_sysconfdir}/sysconfig/bmc-snmp-proxy +install -D -m 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service +install -D -m 755 contrib/bmc-snmp-proxy %{buildroot}%{_libexecdir}/bmc-snmp-proxy rm -rf %{buildroot}/%{_datadir}/doc/ipmitool @@ -182,33 +221,36 @@ rm -rf %{buildroot}/%{_datadir}/doc/ipmitool %files %dir %{abidir} %{_bindir}/ipmitool -%{abidir}/ipmitool-option.list -%{_mandir}/man1/ipmitool.1* %{_datadir}/ipmitool +%{_mandir}/man1/ipmitool.1* +%{abidir}/ipmitool-option.list %license COPYING %files -n ipmievd %config(noreplace) %{_sysconfdir}/sysconfig/ipmievd -%{_unitdir}/ipmievd.service %{_sbindir}/ipmievd -%{abidir}/ipmievd-option.list %{_mandir}/man8/ipmievd.8* +%{_unitdir}/ipmievd.service +%{abidir}/ipmievd-option.list %files -n exchange-bmc-os-info %config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info +%{_libexecdir}/exchange-bmc-os-info %{_sysconfdir}/profile.d/set-bmc-url.sh %{_unitdir}/exchange-bmc-os-info.service -%{_libexecdir}/exchange-bmc-os-info %files -n bmc-snmp-proxy %config(noreplace) %{_sysconfdir}/sysconfig/bmc-snmp-proxy -%{_unitdir}/bmc-snmp-proxy.service %{_libexecdir}/bmc-snmp-proxy +%{_unitdir}/bmc-snmp-proxy.service %files doc %doc AUTHORS ChangeLog README %changelog +* Thu Apr 13 2023 Xuchun Shang - 1.8.18-3 +- Update some description + * Fri Dec 02 2022 Xuchun Shang - 1.8.18-2 - Add a patch and doc package