INSTALACJA MIB SNMP W SYSTEMIE CENTOS/RHEL 6

Zacznijmy od początku.
Co to jest MIB? Jest to skrót od Management Information Base, a sam MIB jest prostą bazą w której są zapisane informacje o obiektach, a każdy obiekt to jakaś informacja.
MIB są wykorzystywane przez SNMP, za pomocą którego można z urządzeń odczytywać i otrzymywać informacje, a także je konfigurować.

Za przykład instalacji nowego MIBa posłuży nam powernet412 umożliwiający obsługę urządzeń APC Symmetra z kartą ap9617/ap9618/ap9619.

Instalacja narzędzi SNMP i bibliotek

yum -y install net-snmp-libs net-snmp-utils

Pobranie pakietu MIB ze strony producenta i zapisanie go w odpowiedniej ścieżce

wget ftp://ftp.apc.com/apc/public/software/pnetmib/mib/412/powernet412.mib -O /usr/share/snmp/mibs/powernet412.mib.txt

Utworzenie konfiguracji MIB, lub dodanie tego pliku do istniejącej już konfiguracji

echo 'mibfile /usr/share/snmp/mibs/powernet412.mib.txt' >> /usr/share/snmp/snmp.conf

Warto przeglądnąć jakie identyfikatory obiektów istnieją w pliku, w tym jest ich dużo, nas interesuje coś, co obsługuje UPS-a:

grep 'OBJECT IDENTIFIER' /usr/share/snmp/mibs/powernet412.mib.txt

Na koniec komenda do snmpwalk, aby skorzystać z identyfikatora ups dla tej karty zarządzającej

snmpwalk -v 1 -c public 10.1.66.5 ups
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
RHEL : How to deal with “CLOSE_WAIT” and “TIME_WAIT” connection
Viewed 26571 times since Thu, Feb 14, 2019
RHEL: Create a local RPM repository
Viewed 11387 times since Sun, May 27, 2018
LVM: Extend SWAP size by growing existing Logical Volume
Viewed 2600 times since Sat, Jun 2, 2018
Transform XML to CSV Format | Unix String Pattern Manipulation The Ugly Way
Viewed 5921 times since Sun, Jan 9, 2022
Enabling automatic updates in Centos 7 and RHEL 7
Viewed 2624 times since Wed, Oct 17, 2018
Sample logrotate configuration and troubleshooting part 2
Viewed 9635 times since Fri, Nov 30, 2018
ZFS: Grow/Shrink an existing zfs filesystem
Viewed 6488 times since Sun, Jun 3, 2018
Install OpenVPN On CentOS / RHEL 7
Viewed 3164 times since Fri, May 15, 2020
How log rotation works with logrotate
Viewed 5040 times since Fri, Nov 30, 2018
RHEL: iSCSI target/initiator configuration on RHEL7
Viewed 11388 times since Sat, Jun 2, 2018