Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
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 Netdot-devel digest..."
Today's Topics:
1. [Netdot - Bug #1830] UI interface Backbone cable
([email protected])
2. [Netdot - Bug #1828] Topology ([email protected])
3. [Netdot - Feature #1780] Add Owner and Used by fields to
Asset ([email protected])
4. [Netdot - Bug #1828] Topology ([email protected])
5. [Netdot - Bug #1831] (New) Cisco-Dlink: unable to determine
topology using STP ([email protected])
6. [Netdot - Bug #1831] Cisco-Dlink: unable to determine
topology using STP ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Wed, 2 Jul 2014 02:29:33 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1830] UI interface Backbone
cable
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1830 has been updated by Marc CYPRIEN.
When a cable is created in the same site S1 they are not displayed. And when I
add the second cable in catX it looks like Netdot dislike it... It lets me
choose between S1 and S2 as ending site however there is no cable in S2.
----------------------------------------
Bug #1830: UI interface Backbone cable
https://osl.uoregon.edu/redmine/issues/1830#change-3225
Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Hello again,
I have two sites S1 and S2
I created two cable from S1 to S1 in different floor. One is fiber and the
other Cat6.
Now I try to see the backbone I have and Iselect S1 as beginning site and S1 as
ending site and i obtained the following error:
<pre>
System error
error: Can't call method "start_closet" on an undefined value at
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.
context:
...
143: . '&backbone_srch=' . $backbone_srch . '&cable_sort=owner&page_type=' .
$page_type . '">Owner</a>' );
144:
145: foreach my $cable (@sorted_cables) {
146:
147: my $start_site = $cable->start_closet->room->floor->site if
($cable->start_closet->room->floor);
148: my $end_site = $cable->end_closet->room->floor->site if
($cable->end_closet->room->floor);
149: my $start_site_id = $start_site->id if ($start_site);
150: my $end_site_id = $end_site->id if ($end_site);
151:
...
code stack:
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml:147
/usr/local/netdot/htdocs/cable_plant/cable_plant.html:115
/usr/local/netdot/htdocs/cable_plant/autohandler:353
/usr/share/perl5/HTML/Mason/Request.pm:936
/usr/local/netdot/htdocs/masondata/obj/991023240/cable_plant/autohandler.obj:21
/usr/local/netdot/htdocs/autohandler:76
raw error
Can't call method "start_closet" on an undefined value at
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.
Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "start_closet"
on an undefined value at
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.^J')
called at /usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line
147
HTML::Mason::Commands::__ANON__('o', undef, 'MAX_SELECTION', 500, 'start_id',
1, 'end_id', 3, 'page_type', 'BACKBONE', 'submit_site', 'Go!', 'backbone_srch',
undef, 'backbone_id_srch', undef, 'edit', undef, 'site_srch', undef,
'cable_sort', undef) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d95ff178)',
'o', undef, 'MAX_SELECTION', 500, 'start_id', 1, 'end_id', 3, 'page_type',
'BACKBONE', 'submit_site', 'Go!', 'backbone_srch', undef, 'backbone_id_srch',
undef, 'edit', undef, 'site_srch', undef, 'cable_sort', undef) called at
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'o', undef, 'MAX_SELECTION', 500,
'start_id', 1, 'end_id', 3, 'page_type', 'BACKBONE', 'submit_site', 'Go!',
'backbone_srch', undef, 'backbone_id_srch', undef, 'edit', undef, 'site_srch',
undef, 'cable_sort', undef) called at
/usr/local/netdot/htdocs/cable_plant/cable_plant.html line 115
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1,
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d6b8a158)',
'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3,
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!',
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
called at /usr/local/netdot/htdocs/cable_plant/autohandler line 353
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1,
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7fa3d9a32bc8)',
'main', 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE',
'end_id', 3, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm
line 936
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)',
'main', 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE',
'end_id', 3, 'showheader', 1) called at
/usr/local/netdot/htdocs/masondata/obj/991023240/cable_plant/autohandler.obj
line 21
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1,
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d9a32bc8)',
'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3,
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!',
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)',
'showheader', 1) called at /usr/local/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1,
'page_type', 'BACKBONE', 'end_id', 3) called at
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d9961848)',
'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!',
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3) called at
/usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fa3d9861030)',
'Apache2::RequestRec=SCALAR(0x7fa3da39be28)') called at
/usr/local/netdot/lib/Netdot/Mason.pm line 59
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7fa3da39be28)') called at
-e line 0
eval {...} at -e line 0
</pre>
And I get the same error when I select S2 as ending Site but there is no
backbone cable in S2.
I only have the two backbone cable I mentionned previously.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 2
Date: Wed, 2 Jul 2014 03:22:02 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1828] Topology
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1828 has been updated by Brian Candler.
RIght, so several things there.
(1) Lots of timeouts. Your devices aren't responding to SNMP queries properly.
You need to debug that. Look further into the debug bits that you didn't
include, see which device it was trying to talk to at the time, try using
snmpwalk to talk to it, generally sort it out.
(2) Netdot is falling back to doing topology discovery based on STP. This is
not as reliable as using LLDP. It'll be much more reliable if you turn on LLDP
everywhere.
On the Cisco: "lldp run"
See
http://www.cisco.com/c/en/us/td/docs/ios/cether/configuration/guide/ce_lldp-med.html#wp1092132
On the Dell: Looking at a 5524 here, I see
<pre>
interface gigabitethernet1/0/1
spanning-tree portfast auto
lldp optional-tlv port-desc sys-name sys-desc sys-cap 802.3-lag
lldp management-address automatic
</pre>
but I can't remember if those were set by default or I had to turn them on
manually across all interfaces.
(3) "Port 3/1 not found in Device: cisco"
That may be the problem I was telling you about interface names. Set
<code>IFNAME_SHORT=>1</code> in Site.conf
(Having said that, I found that problem in the LLDP MIB, not STP)
(4) Using SNMPv3 with that test script: go read the SNMP::Info documentation.
https://metacpan.org/release/SNMP-Info
Ask on the snmp-info list if you need help, or look in the Netdot code to see
how it invokes SNMP::Info with SNMPv3.
(5) In general, a bug tracker system is for tracking bugs, not user support. If
you're having problems using Netdot, please start with the netdot-users mailing
list.
https://osl.uoregon.edu/mailman/listinfo/netdot-users
When a bug has been identified (with details of how to reproduce it), then it
can be raised as an issue.
----------------------------------------
Bug #1828: Topology
https://osl.uoregon.edu/redmine/issues/1828#change-3226
Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Hello,
When i am discovering the topology using bin/updatedevices.pl -T or during cron
job the topology change every time the command is done, sometime with the good
topology sometimes not.
In my network I have snmpv2 and v3, could it be the problem?
I don't know how to help you to find what is the problem, and for that I'm
sorry.
Do you have any idea of what could it be and can you help me?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 3
Date: Wed, 2 Jul 2014 03:47:42 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1780] Add Owner and Used by
fields to Asset
To: [email protected], [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1780 has been updated by Matej Vadnjal.
I was thinking about this a bit more. I agree it would make sense to have a
hardware box owner and used by info only in one place.
But what should happen if GET_DEVICE_MODULE_INFO is set to 0 in the config? Or
if a user has a device that has no asset (virtual machines, some obscure
hardware)? What should happen to owner and used by info in that case? In this
case there would be no way to add this info. Which is fine in my use case, but
I'm afraid this would break other peoples installs.
Or maybe we could "force" the user to create an asset and assign it manually to
the device if he wants to have owner and used by info.
I will give a go at a proper patch in the next few weeks if we can come up with
a reasonable solution to these questions.
----------------------------------------
Feature #1780: Add Owner and Used by fields to Asset
https://osl.uoregon.edu/redmine/issues/1780#change-3227
Author: Matej Vadnjal
Status: In Progress
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.6
Resolution:
Attached is a patch that adds Owner and Used by fields to Assets.
Here is why we need this:
When a customer connects to our network, they need to provide their own SFP
module, that we plug into our backbone router. If a module happens to fail we
usually provide our own replacement since few customers are able to provide a
replacement quickly. After a while people forget that a module has been loaned,
tickets / emails get buried and nobody is sure anymore to who the module being
used belongs to.
With this patch I can make a script that will send reminders if an asset
plugged in a customer interface is not owned by that customer.
The patch was developed on top of current HEAD of master branch
(ecd83f76715...).
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 4
Date: Wed, 2 Jul 2014 04:24:29 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1828] Topology
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1828 has been updated by Marc CYPRIEN.
I will look at what you said. I am sorry for having posted my problem in the
wrong place. Thank you for your precious information.
----------------------------------------
Bug #1828: Topology
https://osl.uoregon.edu/redmine/issues/1828#change-3228
Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
Hello,
When i am discovering the topology using bin/updatedevices.pl -T or during cron
job the topology change every time the command is done, sometime with the good
topology sometimes not.
In my network I have snmpv2 and v3, could it be the problem?
I don't know how to help you to find what is the problem, and for that I'm
sorry.
Do you have any idea of what could it be and can you help me?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 5
Date: Wed, 2 Jul 2014 09:34:39 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1831] (New) Cisco-Dlink: unable
to determine topology using STP
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1831 has been reported by Brian Candler.
----------------------------------------
Bug #1831: Cisco-Dlink: unable to determine topology using STP
https://osl.uoregon.edu/redmine/issues/1831
Author: Brian Candler
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
A Cisco 3750 adjacent to a Dlink DES-1210-28. The latter is an SNMP and
web-managed switch. Unfortunately only the PoE version supports LLDP :-(
I expected that Netdot would infer the link between them using STP data, but it
doesn't.
Both devices exist as Netdot devices (Cisco is id=6, Dlink is id=16). Cisco is
running MSTP and Dlink is running RSTP - supposed to be backwards compatible?
<pre>
mysql> select * from stpinstance where device=6;
+-----------------+--------+----+--------+--------------+-----------+
| bridge_priority | device | id | number | root_bridge | root_port |
+-----------------+--------+----+--------+--------------+-----------+
| 32768 | 6 | 3 | 0 | 001B0DA10480 | 1 |
+-----------------+--------+----+--------+--------------+-----------+
1 row in set (0.00 sec)
mysql> select * from stpinstance where device=16;
+-----------------+--------+----+--------+--------------+-----------+
| bridge_priority | device | id | number | root_bridge | root_port |
+-----------------+--------+----+--------+--------------+-----------+
| 24576 | 16 | 9 | 0 | 001B0DA10480 | 25 |
+-----------------+--------+----+--------+--------------+-----------+
1 row in set (0.00 sec)
</pre>
Via STP, Netdot only finds a subset of the links:
<pre>
INFO - /usr/local/netdot/bin/updatedevices.pl started at Wed Jul 2 19:11:51
2014
INFO - Discovering Network Topology using sources: STP, P2P, FDB, DP. Min
score: 6
DEBUG - Device::get_base_macs_from_all: Retrieving all Device MACs...
DEBUG - Device::get_if_macs_from_all: Retrieving all Interface MACs...
DEBUG - Topology::get_tree_stp_links: Determining topology for STP tree with
root at 001B0DA10480
DEBUG - Topology::get_tree_stp_links: Found link: 186 -> 43
DEBUG - Topology::get_tree_stp_links: Found link: 244 -> 46
DEBUG - Topology::get_tree_stp_links: Found link: 423 -> 45
DEBUG - Topology::get_tree_stp_links: Found link: 302 -> 44
DEBUG - Topology::get_tree_stp_links: Found link: 51 -> 18
DEBUG - Topology::get_tree_stp_links: Found link: 129 -> 7
DEBUG - Topology::get_tree_stp_links: Found link: 360 -> 42
DEBUG - Topology::get_stp_links: 7 Links determined in 0 sec
...
DEBUG - Topology::get_fdb_links: 10 Links determined in 0 sec
...
DEBUG - Topology::get_dp_links: 26 Links determined in 0 sec
</pre>
(Aside: the numbers for get_fdb_links and get_dp_links are double the actual
number of links found, i.e. get_dp_links finds 13 links and get_fdb_links finds
5)
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
Message: 6
Date: Wed, 2 Jul 2014 10:05:13 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1831] Cisco-Dlink: unable to
determine topology using STP
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1831 has been updated by Brian Candler.
Problem is we are missing interfacevlan information for the Dlink.
<pre>
mysql> select * from interfacevlan where stp_instance=9;
Empty set (0.00 sec)
mysql> select count(*) from interface i where i.device=16;
+----------+
| count(*) |
+----------+
| 37 |
+----------+
1 row in set (0.00 sec)
mysql> select count(*) from interface i join interfacevlan iv on
i.id=iv.interface where i.device=16;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
</pre>
Now trying to work out how SNMP::Info returns this
----------------------------------------
Bug #1831: Cisco-Dlink: unable to determine topology using STP
https://osl.uoregon.edu/redmine/issues/1831#change-3229
Author: Brian Candler
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
A Cisco 3750 adjacent to a Dlink DES-1210-28. The latter is an SNMP and
web-managed switch. Unfortunately only the PoE version supports LLDP :-(
I expected that Netdot would infer the link between them using STP data, but it
doesn't.
Both devices exist as Netdot devices (Cisco is id=6, Dlink is id=16). Cisco is
running MSTP and Dlink is running RSTP - supposed to be backwards compatible?
<pre>
mysql> select * from stpinstance where device=6;
+-----------------+--------+----+--------+--------------+-----------+
| bridge_priority | device | id | number | root_bridge | root_port |
+-----------------+--------+----+--------+--------------+-----------+
| 32768 | 6 | 3 | 0 | 001B0DA10480 | 1 |
+-----------------+--------+----+--------+--------------+-----------+
1 row in set (0.00 sec)
mysql> select * from stpinstance where device=16;
+-----------------+--------+----+--------+--------------+-----------+
| bridge_priority | device | id | number | root_bridge | root_port |
+-----------------+--------+----+--------+--------------+-----------+
| 24576 | 16 | 9 | 0 | 001B0DA10480 | 25 |
+-----------------+--------+----+--------+--------------+-----------+
1 row in set (0.00 sec)
</pre>
Via STP, Netdot only finds a subset of the links:
<pre>
INFO - /usr/local/netdot/bin/updatedevices.pl started at Wed Jul 2 19:11:51
2014
INFO - Discovering Network Topology using sources: STP, P2P, FDB, DP. Min
score: 6
DEBUG - Device::get_base_macs_from_all: Retrieving all Device MACs...
DEBUG - Device::get_if_macs_from_all: Retrieving all Interface MACs...
DEBUG - Topology::get_tree_stp_links: Determining topology for STP tree with
root at 001B0DA10480
DEBUG - Topology::get_tree_stp_links: Found link: 186 -> 43
DEBUG - Topology::get_tree_stp_links: Found link: 244 -> 46
DEBUG - Topology::get_tree_stp_links: Found link: 423 -> 45
DEBUG - Topology::get_tree_stp_links: Found link: 302 -> 44
DEBUG - Topology::get_tree_stp_links: Found link: 51 -> 18
DEBUG - Topology::get_tree_stp_links: Found link: 129 -> 7
DEBUG - Topology::get_tree_stp_links: Found link: 360 -> 42
DEBUG - Topology::get_stp_links: 7 Links determined in 0 sec
...
DEBUG - Topology::get_fdb_links: 10 Links determined in 0 sec
...
DEBUG - Topology::get_dp_links: 26 Links determined in 0 sec
</pre>
(Aside: the numbers for get_fdb_links and get_dp_links are double the actual
number of links found, i.e. get_dp_links finds 13 links and get_fdb_links finds
5)
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 88, Issue 3
*******************************************