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. Fiber Ring Maps (Jeff Gibson)
   2. Re: SSHCollector Issues (Christian Ramseyer)
   3. Re: Port Report Help (Tobias Gerlach)
   4. Fwd: ND2 Worker configuration and Server Performance      problems
      (Tobias Gerlach)
   5. Re: SSHCollector Issues (Graybeal, Andrew C.)
--- Begin Message ---
Hello all,

I've just started playing/integrating netdisco with our fiber ring switches and 
I'm trying to find out if I've got something mis-configured or not.  I've got 
the stock ovf deployed and scanning about a dozen hirschmann rs2 switches.  I 
have 2 issues that I'd like some pointers on.
First is that netdisco is able to see the neighbors, but does not automatically 
interrogate them like other switches.
Second, when drawing a map, it doesn't show the "final" link that would make 
the network a ring.  If I zoom to the last node in the map, it does show 
neighbors from there in both directions.

Thanks for a great program,

Jeff Gibson



CONFIDENTIALITY NOTICE: This electronic transmission (including any files
attached hereto) contains confidential information that is legally privileged,
confidential, and exempt from disclosure. The information is intended only for
the use of the individual or entity named above. If the reader of this message
is not the intended recipient or any employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified that
any disclosure, dissemination, copying, distribution, or the taking of any
action in reliance on the contents of this confidential information is strictly
prohibited. If you have received this communication in error, please destroy it
and immediately notify us by telephone.

--- End Message ---
--- Begin Message ---
Hi Andrew

Strange. Unfortunately I have no CentOS and/or ASA to try. Do you need
expect to send some "enable"-style command before you can do show arp?

To debug this problem, first make sure that you are able to connect with
the user running netdisco using normal command-line ssh (using exactly
the same hostname/IP/fqdn you put in the Netdisco config, and the same
method (pubkey or password)). There might be some key mismatch or
similar problem.

If this works but you still have Expect problems, you can log the full
expect in/output to a file using the log_file method:

$object->log_file("filename" | $filehandle | \&coderef | undef)
(From http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod)

E.g. starting from ACE.pm you'd add say:

    my $expect = Expect->init($pty);
    $expect->log_file("/tmp/foo.log");

and then you might be able to see what's going on.

Good Luck
Christian




On 10/04/15 17:41, Graybeal, Andrew C. wrote:
> Finally starting the process of moving our environment to Netdisco 2.
> The SSH Collector is a great feature. We’ve hacked together this stuff
> previously and it’s always been terribly sloppy.
> 
>  
> 
> I’m having trouble though getting the sshcollector to run. I’ve
> encountered the same issue on both CentOS 7 and Centos 6.6. It appears
> that the required dependencies aren’t installed by default, so I ran the
> following to get them installed:
> 
>  
> 
> $ |curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 
> Net::OpenSSH|
> 
> $ |curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 Expect|
> 
>  
> 
> I also found and uncommented the debug line in the sshcollector script.
> End goal is to get the ARP cache from some multi-context ASA devices –
> I’d have to add it as a new device as the syntax doesn’t match anything
> existing, but I’d be happy to share this once done. Through the process
> of writing this though it seemed that it kept exiting before entering
> any commands. I figured I’d do some debugging by testing with the Linux
> platform script as this should be easy to test against any Linux host.
> I’m seeing the same issues though – it appears that it disconnects as
> soon as it establishes a connection. Interestingly, if I swap to the IOS
> script (which doesn’t use Expect), it appears to run correctly (with the
> wrong commands of course) – and produces a message of “…warn WARNING: no
> entries received…” versus no message at all from the other scripts.
> 
>  
> 
> Any debugging I can do or set-up steps I missed?
> 
> 
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> 
> 
> 
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
> 




--- End Message ---
--- Begin Message ---
Hi,

that's exactly what I would like to have and when I change AND to OR
in the WHERE clause, it shows the right results.
Thanks a lot for the help!

....
Shouldn't the two checks in the WHERE clause be combined with an OR
statement? I'd say you want ports that are "currently up" or "have had a
state change in the last month but may be down at last_discover".
.....



--- End Message ---
--- Begin Message ---
Hello,

I optimized postgres configuration with pgtune for a 16 GB memory
system and I tested several
number of parallel running worker configuration. But after at least 5h
the system begin to swap:

server:~ # cat /var/lib/pgsql/data/postgresql.conf
...
# 16GB optimized
maintenance_work_mem = 960MB
checkpoint_completion_target = 0.7
effective_cache_size = 11GB
work_mem = 72MB
checkpoint_segments = 32
shared_buffers = 3840MB
max_connections = 200

server:~ # cat /etc/sysctl.conf
...
# 16GB optimized
kernel.shmmax=8589934592
kernel.shmall=2097152

after 1 h
server:~ # free
             total       used       free     shared    buffers     cached
Mem:      16336160    7469276    8866884     696512      27988    1905748
-/+ buffers/cache:    5535540   10800620
Swap:     16777212          0   16777212

after 3 h
server:~ # free
             total       used       free     shared    buffers     cached
Mem:      16336160   11754388    4581772     763212      33244    2015596
-/+ buffers/cache:    9705548    6630612
Swap:     16777212          0   16777212

after 5 h
server:~ # free
             total       used       free     shared    buffers     cached
Mem:      16336160   16178568     157592     379736       1400     510676
-/+ buffers/cache:   15666492     669668
Swap:     16777212    1764520   15012692

When I restart the netdisco-daemon the RAM goes back to a normal
utilisation and about 3 GB is used:


server:~ # free
             total       used       free     shared    buffers     cached
Mem:      16336160    2455200   13880960     158932       8032     394600
-/+ buffers/cache:    2052568   14283592
Swap:     16777212     139332   16637880


Could it be that Netdisco self has a memory leak in the latest version maybe?



--- End Message ---
--- Begin Message ---
Thanks for the feedback.

I logged the output from expect and everything looks good, I see Net Disco 
correctly send the arp command. Since I had assumed there was something broken 
here I started doing some more debugging.

I added the Data::Dump module and started dumping out the various strings and 
arrays and things still look fine. I then inserted a "dump @mce_result;" right 
before the "return 0 unless scalar @mce_result;" line. I get the following 
which looks right:

[
  "192.168.18.2",
  [
    {
      dns => "vgw-1.mydomain.com",
      ip  => "192.168.18.1",
      mac => "74:26:ac:01:02:03",
    },
    {
      dns => "system1.dom1.mydomain.com",
      ip  => "192.168.18.10",
      mac => "5c:f9:dd:0a:0a:0a",
    },
    {
      dns => "system2.dom1.mydomain.com",
      ip  => "192.168.18.11",
      mac => "5c:f9:dd:0b:0b:0b",
    },
    {
      dns => "system3.mydomain.com",
      ip  => "192.168.18.12",
      mac => "5c:f9:dd:0c:0c:0c",
    },
  ],
]

So it looks like my issue is with the SSHcollector script? It's really strange 
that it just silently exits.

Random thought - does the device I'm collecting from need to be "discovered" or 
exist in the DB already in some way? Do I need to do the manual topology import?

I guess my next step is to add some print commands to each loop and see where 
things stop...

--- End Message ---
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to