Welcome, Guest. Please login or register.

Author Topic: Error in libsnmp.pm  (Read 2227 times)

X-Byte

  • Guest
Error in libsnmp.pm
« on: June 28, 2011, 03:54:09 PM »
I'm facing a problem which might be related to this thread but I don't have those ^M characters at the end of my lines in my def file.

It doesn't happen for all my device types.

I'm not sure if it's a mistake in my def file (I had to create some by myself) or if it's a nedi problem.

here is an excerpt:
./nedi.pl -vt 10.76.101.29

Discovery (1.0.6 rc1) with 1 seed at Tue Jun 28 15:30:27 2011
-------------------------------------------------------------------------------
Device                          Status                          Todo/Done-Time
===============================================================================

Discover     ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Identify     ------------------------------------------------------------------
SNMP:Connect 10.76.101.29 rcomdar v2 Tout:2s MaxMS:1472
IDNT:Name = wei0429
SOBJ:Reading 1.3.6.1.4.1.9.1.928.def
SYS :Con=xxx
SYS :OS=IOS SV=2 TY=WS-C2960-24TC-S

Enterprise   ------------------------------------------------------------------
SNMP:Connect 10.76.101.29 xxx v2 Tout:2s MaxMS:1472
SERN:Serial number = xxx
BOOT:Image =
VTP :Domain = xxx
VTP :Mode = 3
VLAN:1003 = token-ring-default
VLAN:1002 = fddi-default
VLAN:1004 = fddinet-default
VLAN:1005 = trnet-default
VLAN:   1 = default
CPU :Utilization = 12%
MEM :Free = 22423612 Bytes
CUS :MemIO = 2545284

Interfaces   ------------------------------------------------------------------
SNMP:Connect 10.76.101.29 xxx v2 Tout:7s MaxMS:2048
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.
IF  :    1:Vl1       1000Mb -  3  Vl0    Vlan1                           0W
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.
IF  :10001:Fa0/1      100Mb ?  3  Vl14   FastEthernet0/1                 0W
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.
IF  :10002:Fa0/2       10Mb ?  1  Vl14   FastEthernet0/2                 0W
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.
IF  :10003:Fa0/3       10Mb ?  1  Vl14   FastEthernet0/3                 0W
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.
IF  :10004:Fa0/4       10Mb ?  3  Vl14   FastEthernet0/4                 0W
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.
IF  :10005:Fa0/5      100Mb ?  3  Vl14   FastEthernet0/5                 0W
Use of uninitialized value $ifidiO in concatenation (.) or string at ./inc/libsnmp.pm line 957.
Use of uninitialized value $ifodiO in concatenation (.) or string at ./inc/libsnmp.pm line 958.


Def file for this type of device:
# Definition for 1.3.6.1.4.1.9.1.694 created by Defgen 1.1 on 16.Jul 06 22:26

# General
SNMPv   2HC
Type   WS-C2960-24TC-S
OS   IOS
Icon   w2bn
Bridge   VLX
Dispro   CDP
Serial   1.3.6.1.4.1.9.5.1.2.19.0
Bimage   1.3.6.1.2.1.16.19.6.0

# Vlan Specific
VLnams   1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VTPdom   1.3.6.1.4.1.9.9.46.1.2.1.1.2.1
VTPmod   1.3.6.1.4.1.9.9.46.1.2.1.1.3.1

# Interfaces
IFalia   1.3.6.1.4.1.9.5.1.4.1.1.4
IFalix   1.3.6.1.4.1.9.5.1.4.1.1.11
IFvlan   1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix   
IFdupl   1.3.6.1.4.1.9.5.1.4.1.1.10
IFduix   1.3.6.1.4.1.9.5.1.4.1.1.11
Halfdp   1
Fulldp   2

# Modules
Modesc   1.3.6.1.2.1.47.1.1.1.1.2
Moclas   1.3.6.1.2.1.47.1.1.1.1.5
Movalu   9
Moslot   1.3.6.1.2.1.47.1.1.1.1.7
Modhw   1.3.6.1.2.1.47.1.1.1.1.8
Modsw   1.3.6.1.2.1.47.1.1.1.1.9
Modfw   1.3.6.1.2.1.47.1.1.1.1.10
Modser   1.3.6.1.2.1.47.1.1.1.1.11
Momodl   1.3.6.1.2.1.47.1.1.1.1.13

# RRD Graphing
CPUutl   1.3.6.1.4.1.9.9.109.1.1.1.1.5.1
Temp   
MemCPU   1.3.6.1.4.1.9.9.48.1.1.1.6.1
MemIO   1.3.6.1.4.1.9.9.48.1.1.1.6.2


Any ideas on that??

Cheers!

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2680
    • View Profile
    • NeDi
Re: Error in libsnmp.pm
« Reply #1 on: June 28, 2011, 10:11:17 PM »
Have a look at a newer .def and you should se the OIDs for ifdiscards. But I shoud actually catch it to avoid them error nasty messages, tx for pointing it out...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo