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: Netdisco 2 - port name problem (Sassan Dibadj)
--- Begin Message ---
Just wanted to chime in that I am also experiencing this issue. From time to 
time I'll pull up a device and I'll just show the numbers.

I've been running netdisco 2 for over a year and did not experience the problem 
until a few months ago.

As soon as I rediscover the device the port names show correctly.


From: Edward Vopata [mailto:[email protected]]
Sent: Wednesday, February 03, 2016 1:11 PM
To: Steven Xu <[email protected]>
Cc: [email protected]
Subject: Re: [Netdisco] Netdisco 2 - port name problem


> I recommend, when in the web UI, at least enabling the description or name 
> fields to at least mitigate the problem if you haven't already.

I don't understand what you mean here?


> Are you running Netdisco V1 and V2 on the same server? Have you ensured they 
> are properly set up separately from another?

No.  My NetDisco V1 is running on a different server with it's own database.
Both versions are running the same version of SNMP::Info.


> How many workers have you set up?

workers:
  task: 64

dns:
  max_outstanding: 80


FYI:  I upgrade to the latest netdisco 2 version:

    Hostname      : netdisco2
    OS            : Ubuntu 14.04.3 LTS
    Perl          : v5.18.2
    App::NetDisco : 2.033005
    DB Schema     : 40
    SNMP::Info    : 3.31
    Apache        : 2.4.7
    Net-SNMP      : 5.7.2
    PostgreSQL    : 9.3.10


I am game to try anything.  I am using the netdisco 1 as my production Netdisco.

     I suggest
        - totally disabling the nbtstats job.
        - maybe disabling the macsuck job.
        - leave the arpwalk job.
        - add  discover_only  and arpwalk_only to limit the discover to a 
single subnet.


Thoughts

--- Ed.


On 02/03/16 11:48, Steven Xu wrote:
Hi Edward,

I recommend, when in the web UI, at least enabling the description or name 
fields to at least mitigate the problem if you haven't already.

Interesting observation: you only run discovers at 3AM, but you mention that 
within a few hours after the initial discovery (presumably during the workday), 
the port names change.

Some (random) guesses:
Are you running Netdisco V1 and V2 on the same server? Have you ensured they 
are properly set up separately from another?
How many workers have you set up? If you set up too many, it could possibly 
cause SNMP timeouts as in the other thread?

Otherwise, somehow, the scheduled macsuck, arpnip and nbtstat jobs are 
affecting your device port entries?

Steven

-----Edward Vopata <[email protected]><mailto:[email protected]> wrote: -----
To: Steven Xu <[email protected]><mailto:[email protected]>
From: Edward Vopata <[email protected]><mailto:[email protected]>
Date: 02/03/2016 10:03AM
Cc: 
<[email protected]><mailto:[email protected]>
Subject: Re: [Netdisco] Netdisco 2 - port name problem


Attached is the schedule section from my deployment.yml file.

I'm found the logs/netdisco-daemon.log, however I don't find anything about the 
job scheduling.

My Log level is set as:
    log: 'warning'

Now you are starting to understand my frustration, this is proving to be a very 
difficult problem.


Yes, there are other people having this problem.  There was a message thread 
back in November 2015
"Subject: [Netdisco] Some Ports in Portview showing numbers instead of 
interface ID"

Thanks,
-- Ed.



On 02/03/16 08:25, Steven Xu wrote:
Hi Edward,

Since you're observing that the names change after a couple hours, it leads me 
to believe that some scheduled job is messing with your data. Can you include 
your scheduled jobs configuration?

You can also check the status of your scheduled jobs by checking the logs in 
logs/netdisco-daemon.log and searching for the last logs for a particular 
device.

I have a hard time imagining what could be causing this problem. When you ran 
the discover manually, the results are fine, but when some schedule job runs 
(presumably the scheduled discover), the device port entry is getting the wrong 
name.

Maybe someone else has had a similar issue before?

Steven

-----Edward Vopata <[email protected]><mailto:[email protected]> wrote: -----
To: Steven Xu <[email protected]><mailto:[email protected]>, 
<[email protected]><mailto:[email protected]>
From: Edward Vopata <[email protected]><mailto:[email protected]>
Date: 02/02/2016 01:00PM
Subject: Re: [Netdisco] Netdisco 2 - port name problem


I have about 4300 devices in my netdisco2 database, of which 2200 of these 
devices are having this ifindex issue.

Attached is a list of device models that are having this issue.
I am currently focusing on the cisco 2911 and 2811 devices.

Attached are some log & data files:


Device-before-discover.txt    - this a query of a device before the discovery, 
showing the problem
                                                  (ie. device_port.port is the 
ifIndex number)

Device-netdisco-discover.log  - this is the log of the netdisco discover on 
that device.

Device-after-discover.txt    - this the same query after the discovery.

The view after the discover is how I would expect the device to look.
However, after several hours, the device reverts back to the "before" view,
which is NOT right.

This is a Netdisco 2 problem.
    I am running an old version of netdisco (based on the 0.96 release),
    with the latest SNMP::Info (version 3.31) and I am not having the problem.

    The same device on the old netdisco does NOT exhibit this problem.

I did intend to reply to the mailing list.

Thanks,

- Ed Vopata

On 02/02/16 09:03, Steven Xu wrote:
Hi Ed,

I suspect the problem lies with the SNMP setup for your routers; netdisco 
always uses the port name given by SNMP. The problem could also lie in the 
SNMP::Info implementation for your routers (which netdisco uses to gather 
information). What model are they?

Some logging code is already present and may already be enough to diagnose your 
issue.  Run the script bin/netdisco-do to discover a device that has already 
been discover and is experiencing this problem, optionally with the -D and -S 
flags (try "bin/netdisco-do help" for more details).

I think, even without the flags, warnings will be present if there is a problem 
with discovering your device. Do this after you notice that the port name gets 
changed to the IFindex value. Include the logs or let me know what you find.

Also, I noticed that you didn't include the netdisco mailing list this time. 
Was this intentional? Others may have more insights into the problem that I 
don't.

Steven


-----Edward Vopata <[email protected]><mailto:[email protected]> wrote: -----
To: Steven Xu <[email protected]><mailto:[email protected]>
From: Edward Vopata <[email protected]><mailto:[email protected]>
Date: 02/02/2016 09:44AM
Subject: Re: [Netdisco] Netdisco 2 - port name problem


It is very difficult to isolate this problem.

An initial device discovery will set the port name to the correct value (ie 
GigabitEthernet0/0),
but sometime later the value gets changed to the IFindex value.  I have a small 
group of
routers that are consistently exhibiting this problem, but I haven't been able 
to get much deeper.

Question:
    Where does the port name (device_port.port) value get set?
        - If it is a few places, then I can add some logging code to detect 
specific changes.
    Where is the source of the port name?
        - maybe I can add some checks there?

I still don't thing that the issue is a timeout issue.

-- Ed Vopata

On 02/01/16 07:09, Steven Xu wrote:
Hi Edward,

It would help to provide some debug logs, although I'm not entirely familiar 
with which logs you should be providing.

Steven

-----Edward Vopata <[email protected]><mailto:[email protected]> wrote: -----
To: 
<[email protected]><mailto:[email protected]>
From: Edward Vopata <[email protected]><mailto:[email protected]>
Date: 01/18/2016 02:05PM
Subject: [Netdisco] Netdisco 2 - port name problem
I am still having the a problem with netdisco 2, where the port
(device_port.port) is getting set to the SNMP ifIndex value of the port
instead of the port name value (ie: GigabitEthernet0/0).   I have tried
adjusting the SNMP retries and SNMP timeouts, but I am still getting the
same results.  An initial discover on the device will set the port to the
correct name value (ie GigabitEthernet0/0), however after a few hours the
port changes to the ifIndex value.

I don't believe that the problem is with the SNMP timeouts, since some
of the devices having the problem are in the same data center and the
netdisco server.

Here is my NetDisco Information:
     Hostname      : netdisco2
     OS            : Ubuntu 14.04.3 LTS
     Perl          : v5.18.2
     App::NetDisco : 2.033004
     DB Schema     : 40
     SNMP::Info    : 3.30
     Apache        : 2.4.7
     Net-SNMP      : 5.7.2
     PostgreSQL    : 9.3.10

Please advise.

Thanks.
-- Ed.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Netdisco mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/netdisco-users




[attachment "Netdisco-models.txt" removed by Steven Xu/fs/YorkU]
[attachment "Device-after-discover.txt" removed by Steven Xu/fs/YorkU]
[attachment "Device-before-discover.txt" removed by Steven Xu/fs/YorkU]
[attachment "Device-netdisco-discover.log" removed by Steven Xu/fs/YorkU]



[attachment "Netdisco-Schedule.txt" removed by Steven Xu/fs/YorkU]


________________________________

UT Southwestern


Medical Center



The future of medicine, today.


--- End Message ---
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to