Welcome, Guest. Please login or register.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - angrybutler

Pages: [1]
1
Discovery / Re: libmisc.pm uninitialized value
« on: November 08, 2018, 06:07:20 PM »
Same problem here.  Did you ever figure this out?

Use of uninitialized value in subtraction (-) at /opt/nedi/inc/libmisc.pm line 2932.
Use of uninitialized value in numeric gt (>) at /opt/nedi/inc/libmisc.pm line 2929.
Use of uninitialized value in numeric lt (<) at /opt/nedi/inc/libmisc.pm line 2929.
Use of uninitialized value in subtraction (-) at /opt/nedi/inc/libmisc.pm line 2932.
Use of uninitialized value in numeric gt (>) at /opt/nedi/inc/libmisc.pm line 2929.
Use of uninitialized value in numeric lt (<) at /opt/nedi/inc/libmisc.pm line 2929.
Use of uninitialized value in subtraction (-) at /opt/nedi/inc/libmisc.pm line 2932.
Use of uninitialized value in numeric gt (>) at /opt/nedi/inc/libmisc.pm line 2929.
Use of uninitialized value in numeric lt (<) at /opt/nedi/inc/libmisc.pm line 2929.
Use of uninitialized value in subtraction (-) at /opt/nedi/inc/libmisc.pm line 2932.

2
perfect!

Thank you sir!

3
I have roughly a dozen 3750-x/3850-x switch stacks with 3-4 switches in each stack.

Any idea how can I obtain a list of serial numbers for all *individual* switches?

Best regards,
Tom

4
Discovery / Nedi 1.6 device write problems
« on: May 11, 2016, 07:03:09 PM »
I can discover devices just fine - when I attempt to write a config to any device, it quickly returns an empty window for each device.  A packet capture shows no data to or from the device I'm trying to write to.

I'm now trying to use the command line to write a configuration, command results are below.  Any ideas what I'm doing wrong?

tsuther@AngryButler99:/opt/nedi/cli$ sudo -u www-data /opt/nedi/nedi.pl -a 10.104.1.50 -c cmd_admin

Network Discovery (1.6.100) /opt/nedi/nedi.pl -a 10.104.1.50 -c cmd_admin
Started with 1 seed at Wed May 11 13:00:05 2016
-------------------------------------------------------------------------------
Device                          Status                          Todo/Done-Time
===============================================================================
10.104.1.50     bc-mdf1-servers Sw v25 i131   Jc j13 Dlp0 b0 m10   Ac a2     f773Undefined subroutine &cli::DevDir called at /opt/nedi/inc/libcli.pm line 1154.
tsuther@AngryButler99:/opt/nedi/cli$ cat cmd_admin
show run

tsuther@AngryButler99:/opt/nedi/cli$ ls -lsaht cmd_admin
4.0K -rw-r--r-- 1 www-data www-data 11 May 11 12:25 cmd_admin


5
I just upgraded my Ubuntu install to 16.10 (xenial), and nedi 1.4 is now completely hosed.

It appears as if the new Ubuntu version strongly prefers php7.0 and mysql5.7.

Apparently Nedi 1.4 uses deprecated "mysql" functions in  libdb-mysql.php for mysql database access.

php7 appears to have completely abondoned mysql, and instead uses mysqli or mysqlnd functions instead.

I've spent many hours trying to figure out how to re-enable the "mysql" php functions with no joy.

Has anyone else run into this yet?   Is anyone aware of a fix?

Here's the complete error message from the Apache2 error.log:

[Mon Apr 18 17:02:12.461144 2016] [:error] [pid 27162] [client 127.0.0.1:44708] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /opt/nedi/html/inc/libdb-mysql.php:7\nStack trace:\n#0 /opt/nedi/html/index.php(61): DbConnect('localhost', 'nedi', <****>, 'nedi')\n#1 {main}\n  thrown in /opt/nedi/html/inc/libdb-mysql.php on line 7, referer: http://localhost/index.php?goto=Devices-List.php





6
Installation / Re: An SNMPv3 question.
« on: May 20, 2015, 08:58:04 PM »
A-Zed,

I know this thread is a bit dated, but for the possible benefit of others....

I think what you did to resolve the SNMPv3 problem was effectively disable SNMPv3 and go back to SNMPv2c.

The "snmp-server community <string> " command you entered on the switch is a 2c community, not v3.

I just finished struggling with this on 1.4, and it appears that you *need* to install the perl modules for the appropriate encryption/hash functions.  See the requirements section in this page:

http://search.cpan.org/~dtown/Net-SNMP-v6.0.1/lib/Net/SNMP.pm

"The non-core modules Crypt::DES, Digest::MD5, Digest::SHA1, and Digest::HMAC are required to support SNMPv3."

To fix this on my debian/ubuntu install, I did the following:

Code: [Select]
sudo apt-get install libcrypt-cbc-perl libcrypt-des-per libdigest-perl-md5-perl libdigest-sha-perl
The way I discovered this, was to do a packet capture of snmp traffic to my device using wireshark.  Until I installed these packages, I was seeing *no* attempt by nedi/snmpnet to send the credentials to the test device.

Best regards,
Tom Sutherland



7
Discovery / Re: Config backup error: connection error on port 23
« on: January 23, 2014, 03:37:55 PM »
Ah, *now* you have the same problem as me.  :-X

8
Discovery / Re: Config backup error: connection error on port 23
« on: January 23, 2014, 04:19:37 AM »
Alexander,

I think your problem is slightly different than mine.  I think you need to go to Devices > Status.  From there, you need to click the little key icon that says "Reset CLI Access"  then rerun whatever discovery your trying to do.

I've needed to do this each time the CLI connection fails for any reason.

9
Discovery / Re: Config backup error: connection error on port 23
« on: January 17, 2014, 07:58:00 PM »
Not totally fixed though - when I try the "-d" option with discovery, it seems to revert back to "connection error on port 23"

10
Discovery / Re: Config backup error: connection error on port 23
« on: January 16, 2014, 10:10:18 PM »
ok, more info:

the "-d" option appears to make it work -

sudo -u www-data /var/www/nedi/nedi.pl -va 10.100.1.90 -b

<snip>
Prepare (CLI)  ----------------------------------------------------------------
PREP:fwd supported and user dummy exists

BridgeFwd (CLI)   -------------------------------------------------------------
TEL :dummy@10.100.1.90:23 Tout:2s OS:IOS EN:[\w+().-]+#\s?$
DISC:Cli bridge fwd = connection error on port 23
EVNT:CL=nede EL=1 TGT=art-idf2-Clientstack-3750x MSG=CLI Bridge Fwd error: connection error on port 23
<snip>


sudo -u www-data /var/www/nedi/nedi.pl -vda 10.100.1.90 -b

<snip>
Prepare (CLI)  ----------------------------------------------------------------
PREP:fwd supported and user dummy exists

BridgeFwd (CLI)   -------------------------------------------------------------
TEL :dummy@10.100.1.90:23 Tout:2s OS:IOS EN:[\w+().-]+#\s?$
CLI2:Matched 'Password:' sending password
CLI3:Password sent
CLI4:Matched art-idf2-Clientstack-3750x> (or gen. prompt with enpass & enable cmd), enabling
CLI7:Matched 'Password:' sending password
CLI8:Matched enable prompt, OK
CMD :terminal length 0 OK
CMD :show mac address-table | e CPU|Switch|Router|/.*, OK
<snip>



I reset the CLI status before trying - if it's not reset I get a message that says "no working user"

Thanks again for all the help!    :)

11
Discovery / Re: Config backup error: connection error on port 23
« on: January 16, 2014, 02:32:40 AM »
I ran as requested (after commenting line 267) - resulting output is attached.

$sudo -u www-data /var/www/nedi/nedi.pl -vda 10.104.1.50 -b > runtest.txt

I was not able to find input.log and output.log.  I searched the typical places and wasn't able to find them.

Best regards,
Tom Sutherland

[attachment deleted by admin]

12
Discovery / Re: Config backup error: connection error on port 23
« on: January 15, 2014, 03:54:19 PM »
I had run the command with "sudo" and it apparently changed permissions on all the rrd's to root.  Fixed that and vowed to not do it again.

IO-Pty is loaded:


CLI :IO-Pty loaded
DB  :Socket6 loaded
WEB :LWP-UserAgent loaded
OUI :22911 NIC vendor entries read
RDEV:59 devices read from nedi.devices
RADDR:2847 MAC, 0 IP and 84 IPv6 addresses read.
RLNK:0 links (WHERE linktype = 'STAT') read from nedi.links
RMON:0 entries (dev) read from nedi.monitoring
RMON:0 entries (node) read from nedi.monitoring
RUSR:0 entries (groups & 8 = 8 AND (phone != '' OR email != '')) read from nedi.users
SEED:Using /var/www/nedi/seedlist
SEED:10.104.1.50 seedl0 added for discovery
SEED:10.105.1.50 seedl1 added for discovery
SEED:10.100.1.150 seedl2 added for discovery
MAIN:No threads, set 1st at Tue Jan 14 18:44:24 2014

Discovery (1.0.9-010) /var/www/nedi/nedi.pl -l100 -vWpronNF -B0 -SOAPjedibatflow  at Tue Jan 14 18:44:24 2014
-------------------------------------------------------------------------------
Device            Status            Todo/Done-Time
===============================================================================

Identify seedl0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SNMP:Connect 10.104.1.50 tsuther v2 Tout:2s MaxMS:1472
IDNT:Name = bc-mdf1-serverstack-3750x
SOBJ:Reading 1.3.6.1.4.1.9.1.516.def
IDNT:Testing write access with 1.3.6.1.2.1.11.30.0 set to 2
SNMP:Connect 10.104.1.50 tsuther v2 Tout:2s MaxMS:1472
IDNT:Writetest set to 1 OK
IDNT:Writetest restore 2, using tsuther v2
IDNT:Con=
IDNT:Loc=
IDNT:OS=IOS SV=6 TY=WS-C3750
DISC:no skip policy using -S OAPjedibatflow
<snip>

13
Discovery / Re: Config backup error: connection error on port 23
« on: January 15, 2014, 12:15:25 AM »
OK, fresh install to 1.0.9

Same problem, not even a syn - I *do* see all kinds of SNMP traffic first though.

/var/www/nedi/nedi.pl -l100 -v -B0 -SOAPjedibatflow -a 10.100.1.98

<snip>
MOD :2038-GigabitEthernet2/0/31 no class  GigabitEthernet2/0/31
MOD :1054-GigabitEthernet1/0/47 no class  GigabitEthernet1/0/47
MOD :1023-GigabitEthernet1/0/16 no class  GigabitEthernet1/0/16
MOD :1010-GigabitEthernet1/0/3 no class  GigabitEthernet1/0/3

Configbackup   ----------------------------------------------------------------

Prepare (CLI)  ----------------------------------------------------------------
TEL :tsuther;1@10.100.1.98:23 Tout:2s OS:IOS EN:[\w+().-]+#\s?$
DISC:Cli config = connection error on port 23
EVNT:CL=cfge EL=3 TGT=art-idf1-Clientstack-3750x MSG=Config backup error: connection error on port 23
EFWD:0 Mail and 0 SMS queued

DevRRD       ------------------------------------------------------------------
DRRD:Can't update /var/www/nedi/rrd/art-idf1-Clientstack-3750x/system.rrd
DRRD:CPU=32 MEM=140895172 TEMP=32 CUS=6056772

Any other ideas?

14
Discovery / Re: Config backup error: connection error on port 23
« on: January 10, 2014, 07:49:49 PM »
Prepare (CLI)  ----------------------------------------------------------------
TEL :tsuther;1:23 Tout:2s OS:IOS EN:(.+?)#\s?$
DISC:Cli config = connection error on port 23
EVNT:CL=cfge EL=3 TGT=bc-mdf1-clientstack-3750x MSG=Config backup error: connection error on port 23
MLQ :admin bc-mdf1-clientstack-3750x Config backup error: connection error on port 23
EFWD:1 Mail and 0 SMS queued

Wireshark still shows no connection attempt, just some SNMP traffic.  So it doesn't appear the command is even trying to connect to the device.

15
Discovery / Config backup error: connection error on port 23
« on: January 09, 2014, 09:22:40 PM »
Hello all!

New install of NEDI 1.0.8

Trying to connect to a switch via telnet using the following command: 

  /var/nedi/nedi.pl -l100 -v -B0 -SafsgmijtedbpowAO -a 1.1.1.1

I get the following:

Prepare (CLI)  ----------------------------------------------------------------
SSH :adminuser;1:22 Tout:2s OS:IOS EN:(.+?)#\s?$
PTY :Forking ssh -o 'StrictHostKeyChecking no' -l adminuser 1.1.1.1
TEL :adminuser;1:23 Tout:2s OS:IOS EN:(.+?)#\s?$
DISC:Cli config = connection error on port 23
EVNT:CL=cfge EL=3 TGT=switch1 MSG=Config backup error: connection error on port 23
EFWD:0 Mail and 0 SMS queued

I'm running on kubuntu/debian.
Manual telnet works.
Wireshark capture does *not* show tcp/telnet traffic when command is executed.
SNMP stuff seems to work just fine.
I can make telnet connections using Net::Telnet

I fear I'm missing a perl module,  or library, but no idea how to find out which one.

Pages: [1]