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. Netdisco2 firewall_arp (Benjamin Ellenbeck)
   2. Re: Netdisco2 firewall_arp (Oliver Gorwits)
   3. Re: Netdisco2 firewall_arp (Benjamin Ellenbeck)
   4. Re: Netdisco2 firewall_arp (Oliver Gorwits)
   5. Re: Problem after upgrading to 2.029002 - Jobs not running
      (Richard Silver)
--- Begin Message ---
Is it right, that the firewall_arp script is not ported to V2,yet?

I guess, I have to write a Script with the help of store_arp( $mac, $ip, $name, $now? ) or is there any solution?


best regards,
benjamin e.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


--- End Message ---
--- Begin Message ---
On 2014-08-13 10:57, Benjamin Ellenbeck wrote:
Is it right, that the firewall_arp script is not ported to V2,yet?

I guess, I have to write a Script with the help of store_arp( $mac,
$ip, $name, $now? ) or is there any solution?

That's correct. We don't have any other way, right now.

Also note! that the docs are out of date :(

The store_arp sub now takes a hashref, like this:

store_arp({ ip => '1.2.3.4', mac => '00:11:22:33:44:55' }, $now?);

The dns key is optional; add it to the Hash if you have it.

regards,
oliver.



--- End Message ---
--- Begin Message ---
thanks for your reply.

Okay I'll write a script on my own but there are some problems:

1. DBI Connection failed: DBI connect('dbname=netdisco',..

this was because the modul refers to
/home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml

and not to

/home/netdisco/./environments/deployment.yml

but now it's solved

2.
after running:
App::Netdisco::Core::Arpnip::store_arp({ ip => '192.168.0.1',mac => '00:1a:a0:9a:f9:86'});
=>
Ix::Class::ResultSet::_build_unique_cond(): NULL/undef values supplied for requested unique constraint 'primary' (NULL values in column(s): 'mac'). This is almost certainly not what you wanted, though you can set DBIC_NULLABLE_KEY_NOWARN to disable this warning. at /home/netdisco/perl5/lib/perl5/App/Netdisco/Core/Arpnip.pm line 124 Wide character in die at /home/netdisco/perl5/lib/perl5/DBIx/Class/Exception.pm line 55. DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Pg::st execute failed: FEHLER: NULL-Wert in Spalte „mac“ verletzt Not-Null-Constraint DETAIL: Fehlgeschlagene Zeile enthält (null, 192.168.0.1, t, 2014-08-13 14:48:00.78267, 2014-08-13 14:48:00.78267, null). [for Statement "INSERT INTO node_ip ( active, dns, ip, mac, time_last) VALUES ( true, ?, ?, ?, now() ) RETURNING mac" with ParamValues: 1=undef, 2='192.168.0.1', 3=undef] at /home/netdisco/perl5/lib/perl5/App/Netdisco/Core/Arpnip.pm line 124


Did I forget something?


best regards,
benjamin e.



On 2014-08-13 10:57, Benjamin Ellenbeck wrote:
> Is it right, that the firewall_arp script is not ported to V2,yet?
>
> I guess, I have to write a Script with the help of store_arp( $mac,
> $ip, $name, $now? ) or is there any solution?

That's correct. We don't have any other way, right now.

Also note! that the docs are out of date :(

The store_arp sub now takes a hashref, like this:

store_arp({ ip => '1.2.3.4', mac => '00:11:22:33:44:55' }, $now?);

The dns key is optional; add it to the Hash if you have it.

regards,
oliver.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


--- End Message ---
--- Begin Message ---
On 2014-08-13 14:13, Benjamin Ellenbeck wrote:
1. DBI Connection failed: DBI connect('dbname=netdisco',..

this was because the modul refers to

/home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml

This is because the Netdisco environment isn't set up. If you:

use App::Netdisco;
use App::Netdisco::Core::Arpnip 'store_arp';

It should work.

2.
after running:
App::Netdisco::Core::Arpnip::store_arp({ ip => '192.168.0.1',mac =>
'00:1a:a0:9a:f9:86'});
=>
 Ix::Class::ResultSet::_build_unique_cond(): NULL/undef values
supplied for requested unique constraint 'primary'

Did I forget something?

My bad, sorry. The "mac" key in the hash should be "node".

regards,
oliver.




best regards,
benjamin e.



On 2014-08-13 10:57, Benjamin Ellenbeck wrote:
Is it right, that the firewall_arp script is not ported to V2,yet?

I guess, I have to write a Script with the help of store_arp( $mac,
$ip, $name, $now? ) or is there any solution?

That's correct. We don't have any other way, right now.

Also note! that the docs are out of date :(

The store_arp sub now takes a hashref, like this:

store_arp({ ip => '1.2.3.4', mac => '00:11:22:33:44:55' }, $now?);

The dns key is optional; add it to the Hash if you have it.

regards,
oliver.




--- End Message ---
--- Begin Message ---
Applied the update. Environment variable is set

declare -x NETDISCO_HOME="/usr/local/netdisco²

I still get

~/bin/netdisco-daemon-fg start
Can't locate Path/Class.pm in @INC (@INC contains: /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
/usr/local/netdisco//bin/netdisco-dae.
BEGIN failed--compilation aborted at
/usr/local/netdisco//bin/netdisco-daemon-fg line 8.


Any ideas? Jobs haven¹t run in two weeks now.



Richard Silver
Senior Network Engineer
East Alabama Medical Center
334-528-6866
"Have you tried turning it off and back on again?"






On 8/11/14, 10:20 AM, "Oliver Gorwits" <[email protected]> wrote:

>On 2014-08-11 16:07, Nikolaos Milas wrote:
>> I also upgraded today to v2.029002 and since then jobs are not
>> running
>> at all (not being queued either).
>>
>> Please advise! What should I do?
>
>OK I've released a new version which reverts some possibly related
>changes. You can install this until we get to the bottom of the problem.
>
>~/bin/localenv cpanm --notest
>http://cpan.metacpan.org/authors/id/O/OL/OLIVER/App-Netdisco-2.029003.tar.
>gz
>~/bin/netdisco-web restart
>~/bin/netdisco-daemon restart
>
>I was a little confused by Tobias's installation, but here is the
>correct command to run the daemon in the foreground, in case you want to
>try to see any error:
>
>~/bin/localenv ~/bin/netdisco-daemon-fg
>
>regards,
>oliver.
>
>--------------------------------------------------------------------------
>----
>_______________________________________________
>Netdisco mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/netdisco-users

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.



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

Reply via email to