Send netdisco-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:
1. Re: netdisco2 migration (Oliver Gorwits)
2. Re: netdisco2 JobQueue DBIx error (Oliver Gorwits)
3. Re: SSHCollector arpnip for IOS-XR (Cisco ASR9K, CRS)
(Oliver Gorwits)
4. Re: Wrong MAC Address (Oliver Gorwits)
5. Re: Problem with Cisco WS-C2960X-48TS-L (Oliver Gorwits)
6. Re: Export netmap (Oliver Gorwits)
7. Re: Problem with Cisco WS-C2960X-48TS-L (Kris Jacobs)
8. Netdisco 2 & Dell Switches (Keith Shannon)
--- Begin Message ---
Hi Marco,
The "netdisco-deploy" script will upgrade the ND1 database to support
ND2.
So you can either make your new Netdisco 2 system point at the old
database, or dump and restore it to a new database.
Then run the "netdisco-deploy" as shown in the installation
instructions.
regards,
oliver.
On 2014-10-30 15:28, [email protected] wrote:
hello
i'm looking for best practice to migrate version and host.
i have a running netdisco 1 on a Debian Squeeze (~3 years up &
running)
i wish to migrate to netdisco 2 on a Debian Wheezy virtual machine
a ND2 on a virtual Wheezy is now running for testing everything seems
to be fine.
i wish to have the old db (ND1) on a brand new ND2?
thank you
Marco
--- End Message ---
--- Begin Message ---
Thanks, I copied this to a bug report:
https://sourceforge.net/p/netdisco/netdisco2/160/
regards,
oliver.
On 2014-10-24 15:37, Claes Jansson wrote:
In response to..
DBIx::Class::Storage::DBI::_select_args(): The rows attribute must be
a positive integer if present at
/home/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
line 41
we made a small (and dirty?) fix. Downgrading DBIx did not work for
us...
It seems that the original code implicitly typecasts $num_slots to
something not an integer (a boolean?)
in the call to search(), the patch below prevents this typecast by
removing the logical OR operator from
the argument list of search() as well as the assignment in the
beginning
of the function.
We initially tried to keep the original return () if defined...
statement and checking $num_slots
for a non-integer value. And if that matched, set it to 1 (integer).
However this resulted in a new
error message.
[23257] 2014-10-24 14:51:47 error bless( {'msg' => '{UNKNOWN}: Can\'t
call method "update" on an undefined value at
/usr/local/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
line 97, <$__ANONIO__> line 380. at
/usr/local/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
line 110
'}, 'DBIx::Class::Exception' )
Running into this we changed the return () if defined... row to
return
if $num_slots is undefined or has an integer
value less than one. The statement ( $num_slots < 1 ) seems to catch
cases where $num_slot is not a
valid argument for the search function.
The patch below seems to be working for us running with Debian Wheezy
and App::Netdisco 2.029012.
Feedback on this would be very welcome.
Claes and Ferdinand
@Gastabudstaden
--- gbs_fixed/orig/PostgreSQL.pm 2014-10-24 16:06:05.000000000
+0200
+++
/usr/local/netdisco/perl5/lib/perl5/App/Netdisco/JobQueue/PostgreSQL.pm
2014-10-24 17:23:36.000000000 +0200
@@ -27,15 +27,14 @@
sub jq_getsome {
my ($num_slots, $prio) = @_;
- return () if defined $num_slots and $num_slots eq '0';
- $num_slots ||= 1;
+ return () if ! defined $num_slots || ( $num_slots < 1 );
$prio ||= 'normal';
my @returned = ();
my $rs = schema('netdisco')->resultset('Admin')
->search(
{status => 'queued', action => { -in =>
setting('job_prio')->{$prio} } },
- {order_by => 'random()', rows => ($num_slots || 1)},
+ {order_by => 'random()', rows => $num_slots },
);
while (my $job = $rs->next) {
------------------------------------------------------------------------------
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Many thanks, I copied this into a tracker ticket with the attachment:
https://sourceforge.net/p/netdisco/netdisco2/161/
regards,
oliver.
On 2014-10-24 14:42, Claes Jansson wrote:
Hi!
We have worked at an improved version of the IOS-XR arpnip script
with more exact checks on ip's and mac's.
It would be nice if this version could replace the one currently
being distributed.
Claes Jansson
On 2014-08-30 01:33, Christian Ramseyer wrote:
On 8/29/14 3:57 PM, Claes Jansson wrote:
Hi all,
my colleague made a SSHCollector script for arp records on IOS-XR.
I'm
attaching the file here, and hope that it can be included in the
next
release of ND2.
perl5/lib/perl5/App/Netdisco/SSHCollector/Platform/IOSXR.pm
Hi Claes
Thanks, I have also included this in the Netdisco 1.3 version I'm
maintaining at <https://github.com/rc9000/netdisco-sshcollector>.
Christian
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Hi Jonas,
If you want, you could patch your installed version of Netdisco.
Or else, I suggest you take a look at upgrading to Netdisco 2:
https://metacpan.org/pod/App::Netdisco
regards,
oliver.
On 2014-10-21 11:20, Rabe Jonas wrote:
Sorry, I am running Netdisco 1.3.3 on CentOS 5.7 and Postgresql
Version 8.1.23.
Mit freundlichen Grüßen / Kind regards
--
Jonas Rabe
IT-Operations
GILDEMEISTER Beteiligungen GmbH
Gildemeisterstr. 60
DE-33689 Bielefeld
Tel.: +49 5205 74 4466
[email protected] [1]
www.dmgmori.com
FROM: Rabe Jonas [mailto:[email protected]]
SENT: Tuesday, October 21, 2014 12:32 PM
TO: [email protected]
SUBJECT: [Netdisco] Wrong MAC Address
Good day,
I am having difficulties while getting the MAC Address of an ORing
Switch (IES-3162GC). The MAC Address is 00:1E:94:01:38:FE but the
SNMP
call only returns 0:1E:94:01:38:FE (First zero missing).
Netdisco is probably having troubles with this notation, here is the
error mail that I receive:
DBD::Pg::db do failed: FEHLER: ungültige Eingabesyntax für Typ
macaddr: »1e:94:01:38:fe«
Use of uninitialized value in numeric ne (!=) at
/usr/local/netdisco/netdisco.pm line 196.
DBD::Pg::db selectrow_hashref failed: FEHLER: aktuelle Transaktion
wurde abgebrochen, Befehle werden bis zum Ende der Transaktion
ignoriert
insert_or_update(SELECT * FROM node WHERE switch = '10.5.109.8' AND
vlan = '0' AND port = 'Port 5 on Unit 1' AND mac = '1e:94:01:38:fe'
FOR UPDATE) FEHLER: aktuelle Transaktion wurde abgebrochen, Befehle
werden bis zum Ende der Transaktion ignoriert
at /usr/local/netdisco/netdisco line 2315
DBD::Pg::st execute failed: FEHLER: aktuelle Transaktion wurde
abgebrochen, Befehle werden bis zum Ende der Transaktion ignoriert
insert_or_update(INSERT into node
(switch,time_last,active,mac,port,vlan,oui) VALUES
('10.5.109.8','now','1','1e:94:01:38:fe','Port 5 on Unit
1','0','1e:94:01');) FEHLER: aktuelle Transaktion wurde abgebrochen,
Befehle werden bis zum Ende der Transaktion ignoriert
Is there a quick way to fix this?
Mit freundlichen Grüßen / Kind regards
--
Jonas Rabe
IT-Operations
GILDEMEISTER Beteiligungen GmbH
Gildemeisterstr. 60
DE-33689 Bielefeld
Tel.: +49 5205 74 4466
[email protected] [2]
www.dmgmori.com [3]
GILDEMEISTER Beteiligungen GmbH
Sitz der Gesellschaft: Bielefeld - Amtsgericht Bielefeld, HRB 40806
Geschäftsführer: Dipl.-Kfm. André Danks; Dipl.-Kfm. Christian
Thönes
GILDEMEISTER Beteiligungen GmbH
Sitz der Gesellschaft: Bielefeld - Amtsgericht Bielefeld, HRB 40806
Geschäftsführer: Dipl.-Kfm. André Danks; Dipl.-Kfm. Christian
Thönes
Links:
------
[1] mailto:[email protected]
[2] mailto:[email protected]
[3] http://www.dmgmori.com
--- End Message ---
--- Begin Message ---
Hi Nicolas,
On 2014-10-20 08:36, Nicolas FERNANDES wrote:
I installed on my machine Netdisco and it can not be added in its
database the Cisco WS-C2960X-48TS-L.
Do you have any idea why ? Thank you !
You could try running a debug discover job, and looking for the
error(s):
~netdisco/bin/netdisco-do discover -d 1.2.3.4 -DI
regards,
oliver.
--- End Message ---
--- Begin Message ---
On 2014-10-17 08:32, Ankarloo, Gustaf wrote:
Is there a way to export the netmap into High Res picture.
Would be nice for management to be able to grasp the whole network.
And kind of cool to print it out and put it on the wall.
No, but there's a port of our PNG graph code from Netdisco 1 (the image
will look different to netmap, but should be OK).
$ brew install graphviz <-- install graphviz on your system
$ ~netdisco/bin/localenv cpanm --notest Graph GraphViz
$ mkdir ~netdisco/graph
Copy the sample "graph" config from here into your deployment.yml file:
https://metacpan.org/source/OLIVER/App-Netdisco-2.029012/share/config.yml#L222
Run:
~netdisco/bin/netdisco-do graph
Then take a look in the ~netdisco/graph directory.
Good luck.
regards,
oliver.
--- End Message ---
--- Begin Message ---
Hi Nicolas.
I am working with Cisco 2960Xs myself today; setting up their SNMP config and
adding them to Netdisco v2.
Have you verified your Cisco configuration?
Here is an example of what I put in my Cisco switches, I have changed things
that should remain confidential:
snmp-server community MySNMPCommunity RO
snmp-server location Road Department - Basement Closet
snmp-server contact Kris Jacobs, JC x6813 [email protected]
snmp-server chassis-id WS-C2960X-24TS-L - MySerial#
snmp-server enable traps
snmp-server host x.x.x.213 MySNMPCommunity
snmp-server host x.x.x.228 MySNMPCommunity
THEN, if I want to verify that the switch is seeing inbound SNMP packets, I do
this on the switch's console/telnet session:
Debug snmp packets
Debug snmp requests
Term mon <-- this shows me the output of the debug capture in my telnet
session
Now that the switch is ready, go over to your command line on your netdisco
server and do this:
Netdisco-do discover -d <switch IP address>
If things are working correctly, you should see lots of scrolling SNMP-related
text in your telnet/console session on the Cisco switch.
Once you're done, turn off debugging & terminal monitor output on the switch
like this:
No debug all
Term no mon
Hope this helps!
-KJ
-----Original Message-----
From: Oliver Gorwits [mailto:[email protected]]
Sent: Monday, November 03, 2014 15:16
To: [email protected]
Subject: Re: [Netdisco] Problem with Cisco WS-C2960X-48TS-L
Hi Nicolas,
On 2014-10-20 08:36, Nicolas FERNANDES wrote:
> I installed on my machine Netdisco and it can not be added in its
> database the Cisco WS-C2960X-48TS-L.
> Do you have any idea why ? Thank you !
You could try running a debug discover job, and looking for the
error(s):
~netdisco/bin/netdisco-do discover -d 1.2.3.4 -DI
regards,
oliver.
------------------------------------------------------------------------------
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users
--- End Message ---
--- Begin Message ---
Hello,
I just setup Netdisco 2 today using the install instructions located here:
https://metacpan.org/pod/App::Netdisco#Installation
Extremely easy to do & it looks amazing... So, well done there guys & thanks
for all your work.
Netdisco is seeing all the Cisco switches without any issues, however, it's not
even detecting the Dell switches. I did a manual discovery & it will show the
switch, but again won't show anything connected.
I did some reading before because I had the same issue with version 1.x & it
was really difficult to try & figure out a solution. Only fragments of answers
& one of the filesets uploaded that was supposed to patch the dell MIB wasn't
available.
I saw there are the following mibs in ~/netdisco-mibs/dell/:
apollo.mib rldhcp.mib rlmng.mib rlssh.mib
dell_ita.mib rldnscl.mib rlphy.mib rlssl.mib
env_mib.mib rlfft.mib rlphysdescription.mib rlsyslog.mib
macbaseprio.mib rlfile.mib rlqosserv.mib rltuning.mib
mnginf.mib rlinterfaces.mib rlrmon.mib rludp.mib
qosclimib.mib rlip.mib rl_sensor.mib rlvlan.mib
rlaaa.mib rlipmulticast.mib rlsnmp.mib
rlapplication.mib rliprouter.mib rlsnmpv2.mib
rlcopy.mib rllcli.mib rlsntp.mib
I honestly haven't used SNMP extensively I have usually used an agented
monitoring system as I normally do system monitoring. So I apologize for any
time I'm wasting here with missing info or improper use...
The troublesome switches are Dell Powerconnects with most or all of the models
being the PowerConnect 6248.
Oh also, I'm running it on a Centos 6.6 i386 in a VM.
Thank you,
Keith
________________________________
IMPORTANT: This email message is intended only for the use of the individual to
whom, or entity to which, it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable law. If
you are NOT the intended recipient, you are hereby notified that any use,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please reply to
the sender immediately and permanently delete this email. Thank you.
--- End Message ---
------------------------------------------------------------------------------
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users