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: UnVersioned database issue (Daniel Bird)
   2. Re: Antw: Re: Getting IPv6 neighbors cache via sshcollector
      from Cisco ASA (Oliver Gorwits)
--- Begin Message ---


>Do you mean they appear then disappear, or that they have never appeared in 
>the first place?

They disappear, but it seems if I run a mac suck, they re-appear. 

> [netdisco2@netmanage ~]$ bin/netdisco-do macsuck -d <device> -DISQ
> 
> DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently 
> unversioned. Please call upgrade on your schema to sync the DB. at 
> /home/netdisco2/perl5/lib/perl5/DBICx/Sugar.pm line 85

>This can happen if the Netdisco environment is not correctly bootstrapping, so 
>your configuration is not found, and Netdisco isn't connecting to the correct 
>database. I'm not sure whether it has anything to do with your missing > >MAC 
>addresses.

>If you have this error all the time when running bin/netdisco*, and can live 
>with a few minutes of downtime, then a clean reinstall can be achieved as 
>follows (will not change database or config, only the app software itself):
It seems constant if I add -DISQ to bin/netdisco* 

>1. stop all Netdisco processes (double check the process table, kill daemons 
>and delete PID files) 2. move the ~netdisco/perl5 directory out of the way 3. 
>follow the install instructions online ("curl ....") 4. follow the upgrade 
>instructions online

> Do let us know how you get on,


Thanks Oliver, I will do that this evening and let you know the end result. 
Dan

>regards,
>oliver.



> Can't locate object method "autoflush" via package "FileHandle" at 
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/Statistics.pm line 
> 80. at /home/netdisco2/perl5/lib/perl5/DBIx/Class/Schema.pm line 1077.
> 
> 
>  
> DBIx::Class::Schema::throw_exception(App::Netdisco::DB=HASH(0x11fbf80)
> , "Can't locate object method "autoflush" via package "FileHandl"...) 
> called at /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage.pm line
> 112
> 
> 
> DBIx::Class::Storage::throw_exception(DBIx::Class::Storage::DBI::Pg=HA
> SH(0x36912c8), "Can't locate object method "autoflush" via package 
> "FileHandl"...) called at 
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/BlockRunner.pm line
> 184
> 
>  DBIx::Class::Storage::BlockRunner::__ANON__() called at 
> /home/netdisco2/perl5/lib/perl5/Context/Preserve.pm line 37
> 
>  Context::Preserve::preserve_context(CODE(0x47fb188), "replace",
> CODE(0x47f8a10)) called at
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/BlockRunner.pm line
> 213
> 
> 
> DBIx::Class::Storage::BlockRunner::_run(DBIx::Class::Storage::BlockRun
> ner=HASH(0x47fb338),
> CODE(0x47fb1a0)) called at
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/BlockRunner.pm line
> 105
> 
> 
> DBIx::Class::Storage::BlockRunner::run(DBIx::Class::Storage::BlockRunn
> er=HASH(0x47fb338),
> CODE(0x47fb1a0)) called at
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 857
> 
>  DBIx::Class::Storage::DBI::dbh_do(undef, undef, "SELECT me.ip, 
> me.alias, me.subnet, me.port, me.dns, me.creati"..., ARRAY(0x47380a0),
> ARRAY(0x4728840)) called at
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1815
> 
> 
> DBIx::Class::Storage::DBI::_execute(DBIx::Class::Storage::DBI::Pg=HASH
> (0x36912c8), "select", ARRAY(0x48050f8), ARRAY(0x48051e8), 
> HASH(0x392be28),
> HASH(0x4728ab0)) called at
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 2389
> 
> 
> DBIx::Class::Storage::DBI::_select(DBIx::Class::Storage::DBI::Pg=HASH(
> 0x36912c8), ARRAY(0x48050f8), ARRAY(0x48051e8), HASH(0x392be28), 
> HASH(0x4724df8)) called at 
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm
> line 2566
> 
> 
> DBIx::Class::Storage::DBI::select_single(DBIx::Class::Storage::DBI::Pg
> =HASH(0x36912c8), ARRAY(0x48050f8), ARRAY(0x48051e8), HASH(0x392be28), 
> HASH(0x4724df8)) called at 
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/ResultSet.pm line
> 1099
> 
>  
> DBIx::Class::ResultSet::single(App::Netdisco::DB::ResultSet=HASH(0x472
> 4e40)) called at 
> /home/netdisco2/perl5/lib/perl5/DBIx/Class/ResultSet.pm line
> 910
> 
>  
> DBIx::Class::ResultSet::find(App::Netdisco::DB::ResultSet=HASH(0x43c80
> 68), "172.16.254.239", "172.16.254.239") called at 
> /home/netdisco2/perl5/lib/perl5/App/Netdisco/Util/Device.pm line 56
> 
>  App::Netdisco::Util::Device::get_device("172.16.254.239") called at 
> bin/netdisco-do line 229
> 
> Ugrading to the latest using :
> 
> # upgrade Netdisco
> 
> ~/bin/localenv cpanm --notest App::Netdisco
> 
> ln -sf ~/perl5/bin/{localenv,netdisco-*} ~/bin/
> 
> # apply database schema updates, update MIBs and Vendor MACs
> 
> ~/bin/netdisco-deploy
> 
> # restart web service (if you run it)
> 
> ~/bin/netdisco-web restart
> 
> # stop old daemon and start new backend worker (wherever you run them)
> 
> 
> ~/bin/netdisco-daemon stop
> 
> ~/bin/netdisco-backend restart
> 
> Completed without errors, and the web interface seems to be working 
> fine.
> 
> Any pointers if this is actually an issue to correct, and on where to 
> start looking?
> 
> All the best
> 
> Dan
> 
> 
> ----------------------------------------------------------------------
> -------- Check out the vibrant tech community on one of the world's 
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netdisco-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech 
sites, Slashdot.org! http://sdm.link/slashdot 
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users



--- End Message ---
--- Begin Message ---
Hi Gerhard

Many thanks for this! It is now in version 2.036005 of Netdisco, just released to CPAN.

regards,
oliver.

On 2017-06-09 14:15, Gerhard Rappenecker wrote:
Hi Oliver,

I edited the the 2.035006 source ASA.pm to get the IPv6 neighbors
subsequent to the IPv4 ARP cache and it works fine.

Because of my insufficient perl knowledge I'm not sure that the added
code is perfect. So I'd appreciate if some checks it and do all
further steps for the community.

diff ASA.pm.org ASA.pm
94a95,112
    # start ipv6
    $expect->send("show ipv6 neighbor\n");
($pos, $error, $match, $before, $after) = $expect->expect(60, -re, $prompt);

    @lines = split(m/\n/, $before);

    # IPv6 age MAC state ifname
    $linereg = qr/([0-9a-fA-F\:]+)\s+[0-9]+\s
([0-9a-fA-F]{4}\.[0-9a-fA-F]{4}\.[0-9a-fA-F]{4})/x;

    foreach my $line (@lines) {
        if ($line =~ $linereg) {
            my ($ip, $mac) = ($1, $2);
            push @arpentries, { mac => $mac, ip => $ip };
        }
    }
    # end ipv6


regards,
Gerhard




Oliver Gorwits <[email protected]> schrieb am Dienstag, 6. Juni 2017 um 12:35 in
Nachricht <59369FAB.756 : 85 : 22358>:

If someone wants to grab the source and edit this file:

https://github.com/netdisco/netdisco/blob/2.035006/lib/App/Netdisco/SSHColle
ctor/Platform/ASA.pm

It could be patched and tested, to issue the v6 command (and cope if the
command is missing).

Pull requests and/or commit bits are welcome to all :-)

p.s. I suggest working from the latest stable tag '2.035006'.

regards,
oliver.

On 2017-06-06 11:22, Gerhard Rappenecker wrote:
Hi all,

I am using Nedisco2 and netdisco-sshcollector to get the IPv4 ARP
cache from an ASA5585X device.

Now I want to get IPv6 neighbors from the same device. I read the
documentation in
https://metacpan.org/pod/distribution/App-Netdisco/bin/netdisco-sshcollector
[1] to add a new device class executing the IOS command "show ipv6
neighbors" on the device. But because of my insufficient perl
knowledge I am not able to do that.

Can anyone show me more detailed what to do or have implemented this
allready?

PS: I extracted this issue from my former one with the subject
"Getting IPv6 neighbors cache form Cisco Cat6500 and ASA5585X" because
the solution for Cat6500 seems not to be same as for ASA5585X.

Thanks for any help.
Gerhard Rappenecker


Links:
------
[1]
https://metacpan.org/pod/distribution/App-Netdisco/bin/netdisco-sshcollector


-----------------------------------------------------------------------------
-
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users



--- End Message ---
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to