Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

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
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Polling failures (Oliver Gorwits)
   2. Re: LLDP phone info extension number (Oliver Gorwits)
--- Begin Message ---
Hi Charlie

It is interesting that the jobs start and never complete. Netdisco should
either timeout on long running jobs (over 10 minutes) or else if the worker
dies abruptly, the job is defined as stale and eventually ignored.

Assuming you have an up to date version of Netdisco running, here are the
config options to try tweaking:

jobs_stale_after - this is a number of seconds and defaults to 50 minutes,
after which these jobs should be repeated. Try an aggressively lower
setting.
workers: retry_after - amount of time after which to ignore failures and
retry connecting to a device.

https://github.com/netdisco/netdisco/wiki/Configuration#workers
and
https://github.com/netdisco/netdisco/wiki/Configuration#jobs_stale_after

I'll have a look at this as well just to see if I can reproduce.

Good luck,

regards
Oliver.

On Fri, 12 Feb 2021 at 15:13, Charlie Butera via netdisco-users <
netdisco-users@lists.sourceforge.net> wrote:

> Hello,
>
> I am having an issue where various jobs (discover, arpnip & macsuck) fail
> on random devices and never complete. This results in a stuck state since
> the device is never polled successfully from that point on (for the
> respective job).
>
> Example Host 10.x.x.x
> Last Discover 2021-02-04 19:04
> Last Arpnip 2021-02-05 16:20
> Last Macsuck 2021-02-04 21:00
>
> Query to view stuck jobs for that host (apologies for display of table, I
> tried sending an image but it didnt send pending "moderator can review it
> for approval")
>
> ~ $ ./bin/netdisco-do psql -e "SELECT * FROM admin WHERE finished IS NULL
> AND device = '10.x.x.x'"
> [459] 2021-02-12 14:53:33  info App::Netdisco version 2.047002 loaded.
> [459] 2021-02-12 14:53:33  info psql:  started at Fri Feb 12 14:53:33 2021
>   job  |          entered           |          started           |
> finished |  device  | port |  action  | subaction |          status
> | username | userip | log | debug | device_key
>
> -------+----------------------------+----------------------------+----------+----------+------+----------+-----------+-------------------------+----------+--------+-----+-------+------------
>   3064 | 2021-02-04 20:00:36.570694 | 2021-02-04 20:00:48.60293  |
>  | 10.x.x.x |      | discover |           | queued-netdisco-backend |
>    |        |     |       |
>   6178 | 2021-02-04 21:50:43.342499 | 2021-02-04 21:50:45.729956 |
>  | 10.x.x.x |      | macsuck  |           | queued-netdisco-backend |
>    |        |     |       |
>  10449 | 2021-02-05 17:20:32.251217 | 2021-02-05 17:20:33.91666  |
>  | 10.x.x.x |      | arpnip   |           | queued-netdisco-backend |
>    |        |     |       |
> (3 rows)
>
> [459] 2021-02-12 14:53:33  info psql: finished at Fri Feb 12 14:53:33 2021
> [459] 2021-02-12 14:53:33  info psql: status done: psql session closed.
>
> However when I run a ./bin/netdisco-do manually or trigger the job via the
> web ui it completes successfully.
> ~ $ ./bin/netdisco-do macsuck -d 10.x.x.x
> [17326] 2021-02-12 15:04:57  info App::Netdisco version 2.047002 loaded.
> [17326] 2021-02-12 15:04:57  info macsuck: [10.x.x.x] started at Fri Feb
> 12 15:04:57 2021
> [17326] 2021-02-12 15:04:59  info macsuck: finished at Fri Feb 12 15:04:59
> 2021
> [17326] 2021-02-12 15:04:59  info macsuck: status done: Ended macsuck for
> 10.x.x.x
>
> Software Version
> App::Netdisco 2.47.2
> SNMP::Info 3.71
> DB Schema 64
> PostgreSQL 12.00.2
> Perl 5.30.3
>
> Deployment Info:
> 1 netdisco-backend (docker container)
> 1 netdisco-web (docker container)
> 1 netdisco-postgres (docker container)
>
>
>
>
> *Charles Butera*
>
> *Network Engineer*
>
> cbut...@squarespace.com <kkne...@squarespace.com>
>
> Squarespace
>
> Squarespace.com
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--- End Message ---
--- Begin Message ---
Hi Ricardo

Does the device_port_properties table of the database contain anything
useful for these ports? This is additional data not always shown in the web
interface.

regards
Oliver

On Tue, 9 Feb 2021 at 17:50, Ricardo Stella <ste...@rider.edu> wrote:

> Hi,
>
> Following up on this. Am I missing a package or something?
>
> I would also like to have access points names show up - this info does
> show via lldp.
>
> Thanks - Ricardo.
>
>
> On Wed, Jan 13, 2021 at 10:56 AM Ricardo Stella <ste...@rider.edu> wrote:
>
>> Hi folks,
>>
>> We recently deployed a new phone system and noticed that the IP phones
>> are giving us the extension number via LLDP on the switches, but not
>> showing up in Netdisco.
>>
>> Here's an example on the switch I get:
>> sh lldp neighbors
>> Device ID           Local Intf     Hold-time  Capability      Port ID
>> regDN 1234,MINET_692Gi3/0/18       120        B,T             0100.aaa.bbb
>>
>> "1234" is the extension number assigned to this IP phone.  It is part of
>> the "System Name:
>> System Name: regDN 1234,MINET_6920
>>
>> But on Netdisco, I only see the following information:
>>     10.1.2.50 - Port 1
>> (id: SEP080AAABBBB type: MINET_6920 )
>>
>> Would love to be able to display the extension in netdisco and even
>> better, able to search for it.
>>
>> Any ideas?  Ricardo.
>>
>>
>> --
>> °(((=((===°°°(((================================================
>>
>
>
> --
> °(((=((===°°°(((================================================
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to