Welcome, Guest. Please login or register.

Author Topic: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.  (Read 3219 times)

piet

  • Newbie
  • *
  • Posts: 31
    • View Profile
Hello Forum,

I run Nedi 1oh6 on NEDIO6 (OpenBSD)

Since a while, the hourly discovery process (nedi.pl -p) stops with the error

Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.

The device where Nedi stops is always a Cisco 1242 WLAN AP running IOS (NOT WLAN Controller based).


I tried already to reinitialize the Nedi database, but without success.

Nedi stops not always at the same device, but it is always a 1242 WLAN AP.

If I run Nedi with -vd option, I receive the following output:

Code: [Select]
Discover     ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Identify     ------------------------------------------------------------------
SNMP:Connect IPAddress ROCommunity v2 Tout:2s MaxMS:1472
IDNT:Name = Device
IDNT:New Device with ID seed120 and IP IPAddress found
IDNT:Testing write access with 1.3.6.1.2.1.11.30.0 set to 2
SNMP:Connect IPAddress ROCommunity v2 Tout:2s MaxMS:1472
ERR :Writetest, Received noAccess(6) error-status at error-index 1
SNMP:Connect IPAddress RWCommunity v2 Tout:2s MaxMS:1472
IDNT:Writetest set to 1 OK
IDNT:Writetest restore 2, using RWCommunity v2
SYS :Con=IT Loc=Germany
SYS :OS=IOS-wl SV=2 TY=AIR-AP1240

Enterprise   ------------------------------------------------------------------
SNMP:Connect IPAddress ROCommunity v2 Tout:2s MaxMS:1472
SERN:Serial number = FCZxyz
BOOT:Image = c1240-k9w7-mx.124-10b.JA3
CPU :Utilization = 0%
MEM :Available memory 6402272Bytes
TEMP:Environment = 0 Degrees Celcius

Interfaces   ------------------------------------------------------------------
SNMP:Connect IPAddress ROCommunity v2 Tout:7s MaxMS:2048
IF  :Getting HC counters
IF  :   ID:Name Spd Dup St Vl Description Alias PoE
IF  :    1:Do0         54Mb  ?  3  Vl0    Dot11Radio0                     0W
IF  :    2:Do1         54Mb  ?  0  Vl0    Dot11Radio1                     0W
IF  :    3:Fa0        100Mb  FD 3  Vl0    FastEthernet0                   0W
IF  :    4:Nu0      10000Mb  -  3  Vl0    Null0                           0W
IF  :    5:Do0.3       54Mb  -  3  Vl0    Dot11Radio0.3                   0W
IF  :    6:Do0.47      54Mb  -  0  Vl0    Dot11Radio0.47                  0W
IF  :    7:Fa0.3      100Mb  -  3  Vl0    FastEthernet0.3                 0W
IF  :    8:Fa0.47     100Mb  -  3  Vl0    FastEthernet0.4                 0W
IF  :    9:Fa0.52     100Mb  -  3  Vl0    FastEthernet0.5                 0W
IF  :   10:BV1         54Mb  -  3  Vl0    BVI1                            0W

IfAddresses  ------------------------------------------------------------------
IFIP:No useip policy set, always using discovered IPs
SNMP:Connect IPAddress ROCommunity v2 Tout:2s MaxMS:1472
IFIP:BV1      IPAddress    255.255.255.0   ok & unique

DisProtocol  ------------------------------------------------------------------
SNMP:Connect IPAddress ROCommunity v2 Tout:7s MaxMS:4095
CDP :Device2 Gi1/0/ on Fa0    IPAddress     cisco WS-C Cisco IOS Softw
CDP :Queueing Device3, already done

Modules      ------------------------------------------------------------------
SNMP:Connect IPAddress ROCommunity v2 Tout:2s MaxMS:4095
MOD :4 FastEthernet0 no class or no info
MOD :1 AP1240 class 3 no match with /10/ or no info
MODA:3-Dot11Radio1 802.11A Radio ALP122915TH
MODA:2-Dot11Radio0 802.11G Radio GAM122915TH

Prepare (CLI)  ----------------------------------------------------------------
SSH :admin;1:22 Tout:2s OS:IOS-wl EN:(.+?)#\s?$
PTY :Forking ssh -o 'StrictHostKeyChecking no' -l admin IPAddress
Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.

Does anyone have any idea?



piet

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.
« Reply #1 on: October 05, 2011, 09:24:42 AM »
Some additional information:
The error happens on different device types - not just on WLAN Access Points.

Whenever I run Nedi discovery, it stops at a different device with the reported error.

I created subsets of my seed file and run the discovery process with these different subsets of the seed file and at every run, it stops at a different device - sometimes the discovery process manages to run through the complete seed file...

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2780
    • View Profile
    • NeDi
Re: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.
« Reply #2 on: October 05, 2011, 09:24:14 PM »
Does backing up the configs work or are you not interested in it? You could set getfwd to snmp in nedi.conf to avoid ssh for getting the node information...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

piet

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.
« Reply #3 on: October 06, 2011, 09:34:01 AM »
Thx for the quick reply  :)

In general, backing up configs is working, but is also interrupted by the same error (Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871).

I would like to keep the backup function available.

I changed the getfwd option from 'dyn' to 'snmp' and now it seems to work. I will monitor the hourly discovery scans and will report, whether it keeps running.






piet

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.
« Reply #4 on: October 06, 2011, 04:30:12 PM »
Some additional information...

I run the discovery process (nedi.pl -p) several times today - withou interruptions yet - so I assume, that the problem is fixed now.

Unfortunately, the backing up configs (nedi.pl -vA "login != ''" -bB -SsmgrfpitedobwaOA) is still interrupted by the "Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871" problem.

Would it be possible to just ignore that error and continue with the next device? Or does anyone have any idea regarding the real cause of that problem?

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2780
    • View Profile
    • NeDi
Re: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.
« Reply #5 on: October 06, 2011, 05:48:04 PM »
Can you do a netstat -ln when this happens? Just curious to see how many open connections you end up with...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

piet

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Resource temporarily unavailable at ./inc/libcli-iopty.pm line 871.
« Reply #6 on: October 07, 2011, 08:55:46 AM »
Hi Remo,

thank you very much again for your support  :)

Here is the output of the netstat-ln command when the error occur

Code: [Select]
Active Internet connections
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp          0      0  x.y.16.155.25643     x.y.38.31.22         TIME_WAIT
tcp          0      0  x.y.16.155.14633     x.y.38.57.22         FIN_WAIT_2
tcp          0      0  x.y.16.155.34809     x.y.52.92.22         TIME_WAIT
tcp          0      0  x.y.16.155.8080      x.y.52.116.22        TIME_WAIT
tcp          0      0  x.y.16.155.33195     x.y.53.18.22         TIME_WAIT
tcp          0      0  x.y.16.155.28432     x.y.17.253.23        TIME_WAIT
tcp          0      0  x.y.16.155.46029     x.y.53.11.22         TIME_WAIT
tcp          0      0  x.y.16.155.30300     x.y.38.18.22         TIME_WAIT
tcp          0      0  x.y.16.155.15770     x.y.45.20.22         TIME_WAIT
tcp          0      0  x.y.16.155.29137     x.y.53.72.22         TIME_WAIT
tcp          0      0  x.y.16.155.1117      x.y.52.104.22        TIME_WAIT
tcp          0      0  x.y.16.155.15295     x.y.38.51.22         TIME_WAIT
tcp          0      0  x.y.16.155.38578     x.y.52.93.22         TIME_WAIT
tcp          0      0  x.y.16.155.3882      x.y.52.89.22         TIME_WAIT
tcp          0      0  x.y.16.155.7526      x.y.45.26.22         TIME_WAIT
tcp          0      0  x.y.16.155.41831     x.y.45.5.22          TIME_WAIT
tcp          0      0  x.y.16.155.22622     x.y.38.68.22         TIME_WAIT
tcp          0      0  x.y.16.155.27635     x.y.52.83.22         TIME_WAIT
tcp          0      0  x.y.16.155.12779     x.y.90.192.22        TIME_WAIT
tcp          0      0  x.y.16.155.20443     x.y.26.66.22         TIME_WAIT
tcp          0      0  x.y.16.155.29346     x.y.38.64.22         FIN_WAIT_2
tcp          0      0  x.y.16.155.2346      x.y.52.118.22        FIN_WAIT_2
tcp          0      0  x.y.16.155.22        x.y.31.109.61085     ESTABLISHED
tcp          0     52  x.y.16.155.22        x.y.31.109.61068     ESTABLISHED
Active Internet connections
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp          0      0  x.y.16.155.31070     x.y.250.114.123   
Active UNIX domain sockets
Address    Type   Recv-Q Send-Q      Inode       Conn       Refs    Nextref Addr
0xd8dd9b98 dgram       0      0        0x0 0xd2efb7c0        0x0 0xd2efb080
0xd8cbfd44 stream      0      0 0xd8b1db10        0x0        0x0        0x0 tabs/.sock
0xd8cbfb9c dgram       0      0        0x0 0xd2efb7c0        0x0 0xd2f6ffc0
0xd8cbf9f4 dgram       0      0        0x0 0xd2efb7c0        0x0 0xd2f1d9c0
0xd8cbf84c stream      0      0 0xd8c4b87c        0x0        0x0        0x0 /var/run/mysql/mysql.sock
0xd8dd9848 stream      0      0        0x0 0xd2efbc40        0x0        0x0
0xd8dd9774 stream      0      0        0x0 0xd2efbc80        0x0        0x0
0xd8dd96a0 stream      0      0        0x0 0xd2efbec0        0x0        0x0
0xd8dd95cc stream      0      0        0x0 0xd2efbe80        0x0        0x0
0xd8dd94f8 dgram       0      0        0x0 0xd2efb7c0        0x0        0x0
0xd8dd9424 stream      0      0        0x0 0xd2efb600        0x0        0x0
0xd8dd9350 stream      0      0        0x0 0xd2efb5c0        0x0        0x0
0xd8dd927c dgram       0      0 0xd8dc43c4        0x0        0x0        0x0 /var/empty/dev/log
0xd8dd91a8 dgram       0      0 0xd8dc4328        0x0        0x0        0x0 /var/www/dev/log
0xd8dd90d4 dgram       0      0 0xd8dc428c        0x0 0xd2f88e40        0x0 /dev/log

These are not too many connections I think.