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
How to create a Systemd service in Linux
Viewed 3219 times since Mon, Dec 7, 2020
Check a Website Availability from the Linux Command Line
Viewed 6889 times since Mon, Feb 18, 2019
LVM: Mount LVM Partition(s) in Rescue Mode
Viewed 5126 times since Sat, Jun 2, 2018
Using IOzone for Linux disk performance analysis
Viewed 8522 times since Wed, Jul 25, 2018
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 2682 times since Sat, Jun 2, 2018
Migrate a Linux System from Red Hat Enterprise to CentOS
Viewed 10554 times since Fri, May 15, 2020
RHEL: Extending a multipath LUN
Viewed 5365 times since Sun, May 27, 2018
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 3468 times since Tue, Aug 6, 2019
A Simple Guide to Oracle Cluster File System (OCFS2) using iSCSI on Oracle Cloud Infrastructure
Viewed 8741 times since Sat, Jun 2, 2018
Installing and Configuring stunnel on CentOS 6
Viewed 4286 times since Fri, Sep 28, 2018