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
rabbitmq Troubleshooting TLS-enabled Connections
Viewed 3137 times since Sun, Dec 6, 2020
Linux – delete the LUN and remove traces from OS
Viewed 4349 times since Tue, May 22, 2018
Linux nslookup Command Examples for DNS Lookup
Viewed 9526 times since Sat, Sep 29, 2018
How to retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 3647 times since Tue, Jul 17, 2018
ZPOOL: Detach a submirror from a mirrored zpool
Viewed 3218 times since Sun, Jun 3, 2018
Monitoring bezpieczeństwa Linux: integracja auditd + OSSEC cz. I
Viewed 2956 times since Fri, Apr 5, 2019
RHEL: How to change a USER/GROUP UID/GID and all owned files
Viewed 26106 times since Sat, Jun 2, 2018
linux unix aix banner /etc/issue
Viewed 2459 times since Fri, Aug 3, 2018
Linux – Securing your important files with XFS extendend attributes
Viewed 8015 times since Wed, Jul 25, 2018
RHEL: Crash kernel dumps configuration and analysis on RHEL 5
Viewed 7955 times since Sat, Jun 2, 2018