Welcome, Guest. Please login or register.

Author Topic: libmisc.pm line 1093 problems WS-C3560 PS  (Read 3782 times)

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
libmisc.pm line 1093 problems WS-C3560 PS
« on: April 27, 2011, 06:10:34 AM »
Hi all,
 I've been trying to get 1.0.6(beta2) working in my environment but having problems with one location.
All the switches are POE cisco WS-C3560-48PS-S or 24 port models running c3560-ipbasek9-mz.122-25.SEE2.bin and upgraded one to c3560-ipbasek9-mz.122-55.SE1.bin
They all come back with: Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
Code: [Select]
DevRRD       ------------------------------------------------------------------
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
DRRD:Updated ./rrd/AV1CAR2/system.rrd
WDEV:AV1CAR2 written to nedi.devices
WIF :0 interfaces written to nedi.interfaces
WMOD:0 modules written to nedi.modules
WVLN:0 vlans written to nedi.vlans
WNET:0 networks written to nedi.networks
WLNK:0 (ignoring 0 static) links written to nedi.links
DISC:ToDo/Done-Time =    0/1-9s
and they show up in the GUI as Avaya IP Phone, with no defgen link, only the summary pane shows of the whole page.

I've created new .def files for them 1.3.6.1.4.1.9.1.564.def but that makes no difference, also checked for ^M characters in file.
I've also run nedi with perl debug and only found this bit below
Code: [Select]
misc::DevRRD(./inc/libmisc.pm:1093):                                    RRDs::update "$nedipath/rrd/$dv/system.rrd","N:$main::dev{$na}{cpu}:$main::dev{$na}{mcp}:$main::dev{$na}{cuv}:$main::dev{$na}{tmp}";
  DB<22>
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
 at ./inc/libmisc.pm line 1093
        misc::DevRRD('AV1CAR2', '') called at ./inc/libmisc.pm line 707
        misc::Discover('manual') called at nedi.pl line 226
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
 at ./inc/libmisc.pm line 1093
        misc::DevRRD('AV1CAR2', '') called at ./inc/libmisc.pm line 707
        misc::Discover('manual') called at nedi.pl line 226
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
 at ./inc/libmisc.pm line 1093
        misc::DevRRD('AV1CAR2', '') called at ./inc/libmisc.pm line 707
        misc::Discover('manual') called at nedi.pl line 226
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1093.
 at ./inc/libmisc.pm line 1093
        misc::DevRRD('AV1CAR2', '') called at ./inc/libmisc.pm line 707
        misc::Discover('manual') called at nedi.pl line 226
misc::DevRRD(./inc/libmisc.pm:1094):                                    $err = RRDs::error;
  DB<22> print $nedipath
.
  DB<23> print $dv;
AV1CAR2

Have also checked each oid... maybe I'm missing some? Or got some wrong?
Code: [Select]
Definition for 1.3.6.1.4.1.9.1.6 created by Defgen 1.8 on 27.Apr 11 10:19 (admin)

# General
SNMPv   2HC
Type    WS-C3650-48PS
Typoid  1.3.6.1.2.1.47.1.1.1.1.13.1001
Sysdes
OS      IOS
Icon    w2bn
Bridge  qbri
Dispro  CDP
Serial  1.3.6.1.2.1.47.1.1.1.1.11.1001
Bimage  1.3.6.1.4.1.9.2.1.73.0

# Vlan Specific
VLnams  1.3.6.1.4.1.9.9.46.1.3.1.1.4.1
VLnamx
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.2.2.1.1.28
IFalix
InBcast 1.3.6.1.2.1.31.1.1.1.3
InDisc
OutDisc
IFvlan  1.3.6.1.4.1.9.9.68.1.2.2.1.2
IFvlix
IFpowr
IFpwix
IFdupl  1.3.6.1.2.1.10.7.2.1.19
IFduix  1.3.6.1.2.1.10.7.2.1.1
Halfdp  2
Fulldp  1

# Modules
Modesc
Moclas
Movalu
Moslot  1.3.6.1.4.1.9.5.1.3.1.1.1
Modhw   1.3.6.1.4.1.9.5.1.3.1.1.18
Modsw   1.3.6.1.4.1.9.5.1.3.1.1.20
Modfw   1.3.6.1.4.1.9.5.1.3.1.1.19
Modser  1.3.6.1.4.1.9.5.1.3.1.1.26
Momodl  1.3.6.1.4.1.9.5.1.3.1.1.17

# RRD Graphing
CPUutl  1.3.6.1.4.1.9.2.1.58.0
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

Please Obi-wan Kenobi you're my only hope.

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #1 on: April 27, 2011, 06:31:07 AM »
I was just speaking to a colleague and he noticed that all the switches start with AV1.. that have the problem.
Is there any chance that they are being matched to Avaya IP phones just because of the switch names?

rufer

  • Guest
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #2 on: April 27, 2011, 09:14:34 AM »
The only thing I can add is that all my Cat 3560 (also WS-C3560-48PS) run IOS 12.2(55)SE1 and no problems with Nedi.

Greetings
Rufer

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #3 on: April 27, 2011, 09:34:42 AM »
Oh and its doing the same thing to two 6504 chassis that have hostnames that start with AV.....

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2786
    • View Profile
    • NeDi
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #4 on: April 27, 2011, 11:01:47 PM »
Yes I put a quick hack in libsnmp, because all Avaya phones tell on certain switches is a name starting with AV...

Search for this text in libsnmp.pm and remove it: "or $neb{$i}{$n}{'na'} =~ /^AV\w/"

I'll come up with a proper  solution in the next version.
« Last Edit: April 27, 2011, 11:04:36 PM by rickli »
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #5 on: April 27, 2011, 11:23:22 PM »
That has fixed the icons in the GUI showing phones, but still when you look at each of the AV devices it only has a summary pane.

This is still in the logs for each device that starts with AV1.
172.19.201.31   AV1CAR2        f0Use of uninitialized value in concatenation (.) or string at /usr/local/nedi/inc/libmisc.pm line 1093.
Use of uninitialized value in concatenation (.) or string at /usr/local/nedi/inc/libmisc.pm line 1093.
Use of uninitialized value in concatenation (.) or string at /usr/local/nedi/inc/libmisc.pm line 1093.
Use of uninitialized value in concatenation (.) or string at /usr/local/nedi/inc/libmisc.pm line 1093.
  39/34-0s


I'll wait for the next version and have a play.
Thanks for the response.
Mark.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2786
    • View Profile
    • NeDi
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #6 on: April 28, 2011, 12:01:35 AM »
AVnames at a TV station, it all makes sense ;)

Can you post the output of nedi.pl -vt 172.19.201.31
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Re: libmisc.pm line 1093 problems WS-C3560 PS
« Reply #7 on: April 28, 2011, 12:04:02 AM »
Its actually a location Avalon :)
Attached below.
Thanks.

Code: [Select]
[root@jericho nedi]# ./nedi.pl -vt 172.19.201.31
Started with relative path!
LWP :Not available
OUI :17516 NIC vendor entries read
RDEV:211 devices read () from nedi.devices
RIF :8805 IF read () from nedi.interfaces
RLNK:0 links (WHERE type = "STAT") read from nedi.links
SEED:172.19.201.31 added for testing
MAIN:Ignoring 13 threads for testing

Discovery (1.0.6 rc1) with 1 seed at Thu Apr 28 10:00:21 2011
-------------------------------------------------------------------------------
Device                          Status                          Todo/Done-Time
===============================================================================

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

Identify     ------------------------------------------------------------------
SNMP:Connect 172.19.201.31 public v2 Tout:2s MaxMS:1472
IDNT:Name = AV1CAR2
SOBJ:Reading 1.3.6.1.4.1.9.1.564.def
SYS :Con=110780 Loc=-;-;-
SYS :OS=IOS SV=6 TY=WS-C3650-48PS

Enterprise   ------------------------------------------------------------------
SNMP:Connect 172.19.201.31 public v0 Tout:2s MaxMS:1472

Interfaces   ------------------------------------------------------------------
SNMP:Connect 172.19.201.31 public v0 Tout:7s MaxMS:2048

IfAddresses  ------------------------------------------------------------------
IFIP:No useip policy set, always using discovered IPs
SNMP:Connect 172.19.201.31 public v0 Tout:2s MaxMS:1472

DisProtocol  ------------------------------------------------------------------
SNMP:Connect 172.19.201.31 public v0 Tout:7s MaxMS:4095

Modules      ------------------------------------------------------------------
SNMP:Connect 172.19.201.31 public v0 Tout:2s MaxMS:5500

Prepare (CLI)  ----------------------------------------------------------------
DISC:Cli arp = not implemented

Arp (SNMP)   ------------------------------------------------------------------
SNMP:Connect 172.19.201.31 public v0 Tout:2s MaxMS:1472

Prepare (CLI)  ----------------------------------------------------------------
PREP:fwd supported and user ciscoworks exists

BridgeFwd (CLI)   -------------------------------------------------------------
TEL :ciscoworks:23 Tout:2s OS:IOS EN:(.+?)#\s?$
CLI2:Matched Username: , sending username
CLI :Username ciscoworks sent
CLI3:Matched Password:, sending password
CLI :Password sent
CLI :Matched AV1CAR2>, enabling
CLI6:Matched Password:, sending password
CLI9:Matched enable prompt, OK
CMD :terminal length 0:
CMD :show mac address-table dynamic
FWDC:00000c07ac28 vl40, no IF Gi0/1
FWDC:0002c5feda00 vl40, no IF Gi0/1
FWDC:0002c5feda01 vl40, no IF Gi0/1
FWDC:0015c72024c0 vl40, no IF Gi0/1
FWDC:402010026d09 vl40, no IF Gi0/1
FWDC:402010026d0a vl40, no IF Gi0/1
FWDC:402010026d10 vl40, no IF Gi0/1
FWDC:402010026d4d vl40, no IF Gi0/1
FWDC:402010026e25 vl40, no IF Gi0/1
FWDC:90e6bacdd006 vl40, no IF Gi0/1
FWDC:00000c07ac29 vl41, no IF Gi0/1
FWDC:0014221fbad1 vl41, no IF Fa0/1
FWDC:0014221fbad2 vl41, no IF Fa0/1
FWDC:0014222344fc vl41, no IF Fa0/1
FWDC:0014222344fd vl41, no IF Fa0/1
FWDC:001560f99d20 vl41, no IF Fa0/1
FWDC:0015c72024c0 vl41, no IF Gi0/1
FWDC:0015c7206ec0 vl41, no IF Gi0/1
FWDC:001635b2bd80 vl41, no IF Fa0/1
FWDC:001a4bb68ec8 vl41, no IF Fa0/1
FWDC:001a4bb69130 vl41, no IF Fa0/1
FWDC:002264a9ab60 vl41, no IF Fa0/1
FWDC:00237d479e92 vl41, no IF Fa0/1
FWDC:00301384ac8d vl41, no IF Fa0/1
FWDC:0030482fbafe vl41, no IF Fa0/1
FWDC:00304830afc6 vl41, no IF Fa0/1
FWDC:00304830c594 vl41, no IF Fa0/1
FWDC:003048c38a94 vl41, no IF Fa0/1
FWDC:003048c38a95 vl41, no IF Fa0/1
FWDC:00000c07ac2a vl42, no IF Gi0/1
FWDC:0015c72024c0 vl42, no IF Gi0/1
FWDC:00000c07acc9 vl201, no IF Gi0/1
FWDC:0015c72024c0 vl201, no IF Gi0/1
FWDC:0015c7206ec0 vl201, no IF Gi0/1
FWDS:0 bridge forwarding entries found
DISC:Cli bridge fwd = OK-Bridge

FloodFind    ------------------------------------------------------------------
FLOD:0 IFs learned more than 50 MACs

DevRRD       ------------------------------------------------------------------
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1075.
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1075.
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1075.
Use of uninitialized value in concatenation (.) or string at ./inc/libmisc.pm line 1075.
DRRD:Testing ./rrd/AV1CAR2/system.rrd CPU: MEM: CUS: TEMP:
DRRD:IFName   Inoct    Outoct   Inerr  Outerr Indis  Outdis Inbcst
DISC:ToDo/Done-Time =    0/1-0s
===============================================================================
MAIN:1 devices discovered
RNOD:3274 nodes read () from nedi.nodes

BuildNod     ------------------------------------------------------------------

RetireNod    ------------------------------------------------------------------
END :Took 0 minutes

Edit: added screen shots of GUI.
« Last Edit: April 28, 2011, 12:14:58 AM by ntmark »