"nasze" snmpd podaje dziwne nazwy interfejsów?

Jacek Konieczny jajcus at jajcus.net
Tue May 7 08:45:19 CEST 2013


On Mon, 6 May 2013 17:04:14 +0200 (CEST)
Jacek Osiecki <joshua w hybrid.pl> wrote:

> Witam,
> 
> Nie wiem w czym rzecz, ale mam spory problem z korzystaniem z snmpd
> na hostach z PLD.
> 
> Chodzi o to, że jak zrobię sobie snmpwalk to zamiast nazwy
> interfejsów ethernetowych dostaję... nazwy kart sieciowych. Np:
> 
> ifDescr.1 = STRING: lo
> ifDescr.2 = STRING: Intel Corporation 82545EM Gigabit Ethernet
> Controller (Copper) ifDescr.3 = STRING: Intel Corporation 82545EM
> Gigabit Ethernet Controller (Copper) ifDescr.4 = STRING: Intel
> Corporation 82545EM Gigabit Ethernet Controller (Copper) ifDescr.5 =
> STRING: tun0 ifDescr.6 = STRING: tun1
> ifDescr.7 = STRING: tun2
> ifDescr.8 = STRING: tun3
> 
> Tymczasem powinno być tam eth0, eth1, eth2.

Nie powinno. Z RFC i MIB:

          ifDescr OBJECT-TYPE
              SYNTAX  DisplayString (SIZE (0..255))
              ACCESS  read-only
              STATUS  mandatory
              DESCRIPTION
                      "A textual string containing information about the
                      interface.  This string should include the name of
                      the manufacturer, the product name and the version
                      of the hardware interface."
              ::= { ifEntry 2 }

Głupie to, ale tak dawno temu wymyślili spece od Internetu.

Zamiast ifDescr używaj ifName z ifXTable, albo ustawiaj własne ifAlias (też w
ifXTable).

> Debianowe snmpd w wersji 5.4.1 pokazuje wszystko ładnie.

Bo debianowcy popsuli najwyraźniej.

Pozdrowienia,
	Jacek


More information about the pld-devel-pl mailing list