Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-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 Netdot-users digest..."


Today's Topics:

   1. Error updating devices FWT (Blakkheim.GW)
   2. Error after restarting Apache using netdot 1.0.1| HELP!!!
      (Akinsola Akinwale)
   3. Re: Error updating devices FWT (Carlos Vicente)
   4. Re : Re:  Error updating devices FWT (Blakkheim.GW)
   5. Using DeviceAttributes in code (Matej Vadnjal)


----------------------------------------------------------------------

Message: 1
Date: Mon, 24 Sep 2012 12:32:50 +0200
From: "Blakkheim.GW" <[email protected]>
Subject: [Netdot-users] Error updating devices FWT
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hello list,

I run latest Netdot version (1.0.1) and I've problem updating forwarding tables 
on my Cisco Catalyst 2960 switches but no problem with my Catalyst 3750 routers.

I discovered the error trying to update from CLI :

# ./updatedevices.pl -H <hostname> -F -c <community>
ERROR: Device::CLI::_get_arp_from_cli: <hostname>: read timed-out at 
/usr/share/perl5/Net/CLI/Interact/Transport/Base/Unix.pm line 41

I can update switch info with the -I flag without problem though. But FW and 
ARP tables won't update.

I run Net:CLI:Interact version 1.121640-1

Any ideas ?


--
Blakkheim.GW
Last.fm profile : http://www.lastfm.fr/user/BlakkheimGW


------------------------------

Message: 2
Date: Mon, 24 Sep 2012 12:10:00 +0100
From: Akinsola Akinwale <[email protected]>
Subject: [Netdot-users] Error after restarting Apache using netdot
        1.0.1|  HELP!!!
To: [email protected]
Message-ID:
        <CAHgUDMk6R_pD5ZirvK+Yfadrx3Lz=mjo_roaw9fhjufpoos...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

This is the error I got while tring to install netdot I followed the manual
I did the following
cd /etc/apache2
~# ln -s /usr/local/netdot/etc/netdot_apache2_local.conf sites-available/netdot
~# ln -s ../sites-available/netdot sites-enabled/netdot

and restarted apache2 as followed

testserver@testingserver:/etc/apache2$ sudo service apache2 graceful

Use of uninitialized value in lc at /usr/share/perl5/Class/DBI.pm line 196.
Syntax error on line 31 of /etc/apache2/sites-enabled/netdot:
DBI connect('database=netdot;host=localhost;port=','netdot_user',...)
failed: Access denied for user 'netdot_user'@'localhost' (using
password: YES) at /usr/share/perl5/Ima/DBI.pm line 328\nBEGIN
failed--compilation aborted at /usr/local/netdot/lib/Netdot/Model.pm
line 416.\nCompilation failed in require at
/usr/local/netdot/lib/Netdot/UI.pm line 22.\nBEGIN failed--compilation
aborted at /usr/local/netdot/lib/Netdot/UI.pm line 22.\nCompilation
failed in require at /usr/local/netdot/lib/Netdot/Mason.pm line
9.\nBEGIN failed--compilation aborted at
/usr/local/netdot/lib/Netdot/Mason.pm line 9.\nCompilation failed in
require at /etc/apache2/sites-enabled/netdot line 32.\nBEGIN
failed--compilation aborted
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!


-- 
A.S


------------------------------

Message: 3
Date: Mon, 24 Sep 2012 08:50:26 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] Error updating devices FWT
To: "Blakkheim.GW" <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

You can disable use of the CLI (SSH/Telnet) for collecting information
on devices that support SNMP (like yours). The option is there for
device that don't provide the full information via SNMP, and because in
some cases, CLI is faster than SNMP. The configuration section is:

FETCH_DEVICE_INFO_VIA_CLI => {
    '^ciscoASA'             => 'CiscoFW',
    '^ciscoPIXFirewall'     => 'CiscoFW',
    '^cat65\d{2}'           => 'CiscoIOS',
    '^cisco76\d{2}'         => 'CiscoIOS',
    '^catalyst2960'         => 'CiscoCat',
    '^cat(:?alist)?3560'    => 'CiscoCat',
    '^sqnNetIronMLX\d{1,2}' => 'FoundryIW',

},


Just comment out the models that don't really need CLI connections.

cv

On 9/24/12 6:32 AM, Blakkheim.GW wrote:
> Hello list,
> 
> I run latest Netdot version (1.0.1) and I've problem updating forwarding 
> tables on my Cisco Catalyst 2960 switches but no problem with my Catalyst 
> 3750 routers.
> 
> I discovered the error trying to update from CLI :
> 
> # ./updatedevices.pl -H <hostname> -F -c <community>
> ERROR: Device::CLI::_get_arp_from_cli: <hostname>: read timed-out at 
> /usr/share/perl5/Net/CLI/Interact/Transport/Base/Unix.pm line 41
> 
> I can update switch info with the -I flag without problem though. But FW and 
> ARP tables won't update.
> 
> I run Net:CLI:Interact version 1.121640-1
> 
> Any ideas ?
> 
> 
> --
> Blakkheim.GW
> Last.fm profile : http://www.lastfm.fr/user/BlakkheimGW
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
> 


-- 
cv


------------------------------

Message: 4
Date: Mon, 24 Sep 2012 15:01:49 +0200
From: "Blakkheim.GW" <[email protected]>
Subject: [Netdot-users] Re : Re:  Error updating devices FWT
To: "Carlos Vicente" <[email protected]>,
        [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

You got it ! Thanks for the quick reply.

Is it normal behaviour that this option cause a failure ? Maybe the script 
should try CLI and then try SNMP if the first case fails ?

Regards.


> ----- Message d'origine -----
> De : Carlos Vicente
> Envoy?s : 24.09.12 14:50
> ? : Blakkheim.GW
> Objet : Re: [Netdot-users] Error updating devices FWT
> 
> Hi,
> 
> You can disable use of the CLI (SSH/Telnet) for collecting information
> on devices that support SNMP (like yours). The option is there for
> device that don't provide the full information via SNMP, and because in
> some cases, CLI is faster than SNMP. The configuration section is:
> 
> FETCH_DEVICE_INFO_VIA_CLI => {
> ?'^ciscoASA' => 'CiscoFW',
> ?'^ciscoPIXFirewall' => 'CiscoFW',
> ?'^cat65\d{2}' => 'CiscoIOS',
> ?'^cisco76\d{2}' => 'CiscoIOS',
> ?'^catalyst2960' => 'CiscoCat',
> ?'^cat(:?alist)?3560' => 'CiscoCat',
> ?'^sqnNetIronMLX\d{1,2}' => 'FoundryIW',
> 
> },
> 
> 
> Just comment out the models that don't really need CLI connections.
> 
> cv
> 
> On 9/24/12 6:32 AM, Blakkheim.GW wrote:
> > Hello list,
> > 
> > I run latest Netdot version (1.0.1) and I've problem updating forwarding 
> > tables on my Cisco Catalyst 2960 switches but no problem with my Catalyst 
> > 3750 routers.
> > 
> > I discovered the error trying to update from CLI :
> > 
> > # ./updatedevices.pl -H <hostname> -F -c <community>
> > ERROR: Device::CLI::_get_arp_from_cli: <hostname>: read timed-out at 
> > /usr/share/perl5/Net/CLI/Interact/Transport/Base/Unix.pm line 41
> > 
> > I can update switch info with the -I flag without problem though. But FW 
> > and ARP tables won't update.
> > 
> > I run Net:CLI:Interact version 1.121640-1
> > 
> > Any ideas ?
> > 
> > 
> > --
> > Blakkheim.GW
> > Last.fm profile : http://www.lastfm.fr/user/BlakkheimGW
> > _______________________________________________
> > Netdot-users mailing list
> > [email protected]
> > https://osl.uoregon.edu/mailman/listinfo/netdot-users
> > 
> 
> 
> -- 
> cv


--
Blakkheim.GW
Last.fm profile : http://www.lastfm.fr/user/BlakkheimGW


------------------------------

Message: 5
Date: Mon, 24 Sep 2012 16:50:43 +0200
From: Matej Vadnjal <[email protected]>
Subject: [Netdot-users] Using DeviceAttributes in code
To: [email protected]
Message-ID: <4054391.N4J7TQM4js@dobrca>
Content-Type: text/plain; charset="us-ascii"

Hi all.

Is there a method to search for custom device attributes by attribute name?

I discovered I can loop all attributes and check the name:

foreach my $attr ($device->attributes()) {
    if ($attr->{name}->name eq 'my attribute') {
        ...
    }
}

I'm hoping there is a method like this:

my $attr = $device->getAttribute('my attribute');

I've not found anything like this by greping the code.

Kind regards
Matej Vadnjal
Arnes



------------------------------

_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users


End of Netdot-users Digest, Vol 46, Issue 17
********************************************

Reply via email to