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. Catalyst 3850 neighbor discovery observations (Dan Augustine)
2. Netdisco on FreeBSD (Kurt Buff)
3. Re: Discover CLI vs Web Inconsistency (inetjunkmail)
4. Re: Netdisco on FreeBSD (Alan Buxey)
--- Begin Message ---
I did some digging today to see why NetDisco is not showing neighbors of
Catalyst 3850 switches.
1) The 3850 switches seem to respond to appropriately using the
CISCO-CDP-MIB. Here's an examples:
$ snmpget -v 2c -c xxx 10.98.10.13 CISCO-CDP-MIB::cdpGlobalRun.0
CISCO-CDP-MIB::cdpGlobalRun.0 = INTEGER: true(1)
$ snmpwalk -v 2c -c xxx 10.98.10.13 CISCO-CDP-MIB::cdpCacheAddressType
CISCO-CDP-MIB::cdpCacheAddressType.21.49 = INTEGER: ip(1)
CISCO-CDP-MIB::cdpCacheAddressType.23.27 = INTEGER: ip(1)
CISCO-CDP-MIB::cdpCacheAddressType.149.51 = INTEGER: ip(1)
CISCO-CDP-MIB::cdpCacheAddressType.167.50 = INTEGER: ip(1)
CISCO-CDP-MIB::cdpCacheAddressType.176.31 = INTEGER: ip(1)
$ snmpwalk -v 2c -c xxx 10.98.10.13 CISCO-CDP-MIB::cdpCacheAddress
CISCO-CDP-MIB::cdpCacheAddress.21.49 = Hex-STRING: 0A 0C 22 15
CISCO-CDP-MIB::cdpCacheAddress.23.27 = Hex-STRING: 0A 0C 22 04
CISCO-CDP-MIB::cdpCacheAddress.149.51 = STRING: "
b
"
CISCO-CDP-MIB::cdpCacheAddress.167.50 = Hex-STRING: 0A 62 0B 06
CISCO-CDP-MIB::cdpCacheAddress.176.31 = Hex-STRING: 0A 62 0A 03
$ snmpwalk -v 2c -c xxx 10.98.10.13 CISCO-CDP-MIB::cdpCacheDeviceId
CISCO-CDP-MIB::cdpCacheDeviceId.21.49 = STRING: CAR-IDF2-CAMERA.ousdnet
CISCO-CDP-MIB::cdpCacheDeviceId.23.27 = STRING: Int-3550-48-MDF-3.ousdnet
CISCO-CDP-MIB::cdpCacheDeviceId.149.51 = STRING: 00180a157780
CISCO-CDP-MIB::cdpCacheDeviceId.167.50 = STRING: 00180aac8330
CISCO-CDP-MIB::cdpCacheDeviceId.176.31 = STRING:
OakInternational-MDF-4500X.ousdnet
2) I compared packet traces of running "Discover" on NetDisco between a
3750 and 3850 as both devices use the same SNMP Class
(SNMP::Info::Layer3::C6500). The 3750 shows neighbors on NetDisco.
The packet trace on the 3750 had requests (and responses) in the
CISCO-CDP-MIB (1.3.6.1.4.1.9.9.23.*).
The packet trace for the 3850 did not show any requests in the
CISCO-CDP-MIB.
What would prevent NetDisco from requesting CDP info? What are it's
preconditions?
Regards,
Dan
--- End Message ---
--- Begin Message ---
All,
I'm having another go at NetDisco on FreeBSD (work had me shut down
the old one (we're a Windows shop, you must shut it down), but things
are different - again).
I've got FreeBSD 9.2-RELEASE, and have installed NetDisco 1.3.3_2, and
'netdisco -d myrouter.example.org' works, after tweaking netdisco.conf
to fully specify the path to the MIBs.
However, navigating to http://mymachine.example.org/netdisco gives the
following output, which after researching seems to be because of the
changes introduced by Apache 2.4. Specifically, I searched on "Can't
locate object method "remote_ip" via package "Apache2::Connection""
and got a fair number of hits that pointed in that direction.
FreeBSD doesn't support Apache 2.2 any more.
So, in light of the errors below, how might I fix this? This page
(http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html) suggests
that I need to change out remote_ip for remote_addr. If that's
correct, do I just need to do that in the html files under
/usr/local/www/netdisco, or do I need to do surgery on
/usr/loca/bin/netdisco, or both?
Alternatively, is there an ETA for a port of 2.0 for FreeBSD?
Kurt
----------Error output----------
System error
error: Can't locate object method "remote_ip" via package
"Apache2::Connection" at /usr/local/www/netdisco/login.html line 50.
context:
...
46: $pw => undef
47: $done => undef
48: </%args>
49: <%shared>
50: my $userip = $r->connection->remote_ip;
51: </%shared>
52: <%method login>
53: <%args>
54: $user => undef
...
code stack: /usr/local/www/netdisco/login.html:50
/usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm:947
/usr/local/www/netdisco/mason/obj/1784076917/login.html.obj:8
/usr/local/www/netdisco/autohandler:10
/usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm:951
/usr/local/www/netdisco/mason/obj/1784076917/autohandler.obj:31
raw error
Can't locate object method "remote_ip" via package
"Apache2::Connection" at /usr/local/www/netdisco/login.html line 50.
Trace begun at /usr/local/lib/perl5/site_perl/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object
method "remote_ip" via package "Apache2::Connection" at
/usr/local/www/netdisco/login.html line 50.^J') called at
/usr/local/www/netdisco/login.html line 50
HTML::Mason::Commands::__ANON__ at
/usr/local/lib/perl5/site_perl/HTML/Mason/Component.pm line 149
HTML::Mason::Component::dynamic_subs_init('HTML::Mason::Component::FileBased=HASH(0x80cc47ab0)')
called at /usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line
947
HTML::Mason::Request::call_dynamic('MasonX::Request::WithApacheSession=HASH(0x80bf68540)',
'method_title') called at
/usr/local/www/netdisco/mason/obj/1784076917/login.html.obj line 8
HTML::Mason::Commands::__ANON__ at
/usr/local/lib/perl5/site_perl/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0x80cc4b600)')
called at /usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line
1305
eval {...} at /usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef) called at
/usr/local/www/netdisco/autohandler line 10
HTML::Mason::Commands::__ANON__('done', '/netdisco/index.html') called
at /usr/local/lib/perl5/site_perl/HTML/Mason/Component.pm line 160
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x80cc45228)',
'main', 'done', '/netdisco/index.html') called at
/usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 951
HTML::Mason::Request::call_dynamic('MasonX::Request::WithApacheSession=HASH(0x80bf68540)',
'main', 'done', '/netdisco/index.html') called at
/usr/local/www/netdisco/mason/obj/1784076917/autohandler.obj line 31
HTML::Mason::Commands::__ANON__('done', '/netdisco/index.html') called
at /usr/local/lib/perl5/site_perl/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x80cc45228)',
'done', '/netdisco/index.html') called at
/usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 1300
eval {...} at /usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'done',
'/netdisco/index.html') called at
/usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 484
eval {...} at /usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 484
eval {...} at /usr/local/lib/perl5/site_perl/HTML/Mason/Request.pm line 436
HTML::Mason::Request::exec('MasonX::Request::WithApacheSession=HASH(0x80bf68540)')
called at /usr/local/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pm
line 168
HTML::Mason::Request::ApacheHandler::exec('MasonX::Request::WithApacheSession=HASH(0x80bf68540)')
called at /usr/local/lib/perl5/site_perl/MasonX/Request/WithApacheSession.pm
line 130
MasonX::Request::WithApacheSession::exec('MasonX::Request::WithApacheSession=HASH(0x80bf68540)')
called at /usr/local/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pm
line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x80bd603c0)',
'Apache2::RequestRec=SCALAR(0x8083149f0)') called at
/usr/local/etc/netdisco/netdisco_apache.conf line 56
netdisco::Mason::handler('Apache2::RequestRec=SCALAR(0x8083149f0)')
called at -e line 0
eval {...} at -e line 0
----------Error Output----------
--- End Message ---
--- Begin Message ---
Is there any other feedback on this? Can I crank up debugging or look at
any logs with regard to the discover process when launched by the daemon?
Thanks,
E
On Tue, Dec 9, 2014 at 8:51 AM, inetjunkmail <[email protected]> wrote:
>
> Hey:
>
> If I look in my job "Undiscovered Devices" report, I see devices that I
> think should be discovered. If I go the the CLI and launch a discovery
> with a ./bin/netdisco-do discover -D -d w.x.y.z, it completes seemingly
> successfully. If I then go launch a discovery via the web interface, the
> job reports failure in the job queue. The error is "could not SNMP connect
> to w.x.y.z". snmpwalks and CLI discoveries seem fine but the demonized
> discoveries and manually triggered web interface discoveries generate
> errors.
>
> Is there a difference between the two? Is there some log I can look at to
> get more insight into why the web is failing? The vast majority of
> discoveries to the same kinds of devices on the same network are successful
> either way.
>
> SoftwareVersion*App::Netdisco <http://netdisco.org/>*2.029012DB Schema
> <https://metacpan.org/module/netdisco-db-deploy>v39Dancer
> <http://http//perldancer.org/>1.3126Bootstrap <http://getbootstrap.com/>
> 2.3.1PostgreSQL <http://www.postgresql.org/>PostgreSQL 9.2.7 on
> x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.2 20140120 (Red Hat
> 4.8.2-16), 64-bit.
> DBI 1.631, DBD::Pg 2.19.3SNMP::Info <http://snmp-info.sourceforge.net/>
> 3.20Perl <http://www.perl.org/>5.016003
> Thanks for any help,
> E
>
--- End Message ---
--- Begin Message ---
Stop
Use netdisco2
alan
--- End Message ---
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users