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: OS Upgrade options on customized Netdisco install (brian)
   2. Re: Graphical representation of network device (brian)
--- Begin Message --- Thanks to everyone's help I've managed to get everything working on Debian Buster so far (there are non-netdisco related problems with Bullseye for my install) The basic procedure was a success as per the responses I received: move the existing /home/netdisco and re-install into a fresh one, then copy the Netdisco App portions back over along with the old bin folder (netdisco-do etc)

The only remaining problem I have with this setup is that some of the reports go away and never come back, just showing "Processing..." forever. Most of the inventory type reports but also things like "Port Utilization". Seems like about half the reports aren't working and there isn't an error that hits any of the logs. Any idea what would have changed on the underlying perl etc side to wreck the reporting for me? Any extra debugging I should turn on to help troubleshoot?

Thanks for you help everyone!

   -Brian

On 2023-01-23 07:57, Oliver Gorwits wrote:
Just to add to Christian's good answer, step five will copy back into
place the Perl files, but the static content (web templates, etc)
might not be in that place.

Here is the old script which used to update the demo website (before
we moved to using containers) and you can see it copies the static
content from `lib/auto/share/dist/App-Netdisco` (which is likely not
the same on your system but you might dig around and find it).

https://github.com/netdisco/netdisco2-demo/blob/master/scripts/update.sh

hope this helps, and good luck,

Oliver.

On Mon, 23 Jan 2023 at 15:29, Christian Ramseyer <ramse...@netnea.com>
wrote:

On 21.01.23 17:50, Brian Marshall via netdisco-users wrote:
Hello,

I know that there isn't a supported way to upgrade Debian through
new OS
versions that package new perl releases other than doing a
parallel
install or reinstall, but I have an older fork of netdisco that
has been
massively customized (and we stalled out on trying to merge
patches back
into the mainline many years ago).

Is there any theoretical way to allow such an install to survive
upgrades? I'm trying to run a PoC on some integrations that
require me
to have upgraded libraries past what I have available to me and am

looking at having to undertake a massive multi-server rebuild to
even
get started...any hints or help getting Debian upgraded and fixing
the
Netdisco install to work with the new perl would be appreciated!

I'm hoping in the long-term to be able to re-merge the changes
back into
the Netdisco main branch, but I don't have the resources for that
right
now.

I'd try like that:

1. have a full working backup of the old Debian

2. do one or more major version upgrades to the distro
<https://wiki.debian.org/DebianUpgrade> until you're at the latest
release.

3. rename your old ~netdisco/perl5 to  ~netdisco/perl5.prev

4. Install a new version of Netdisco as shown here:
https://metacpan.org/pod/App::Netdisco#Installation. Stop after the
step
"curl -L https://cpanmin.us/ | perl - --notest --local-lib ~/perl5
App::Netdisco" step, we just want to do the base install so that all
the
libraries get downloaded and are linked to your new Perl/Linux
environment.

5. From the perl5.prev, take the lib/perl5/App/Netdisco folder and
lib/perl5/App/Netdisco.pm file, and replace the versions in your new

Netdisco installation.

It might just work. Otherwise you'll have to go back to step one,
there's AFAICT no other way to cleanly undo a botched apt
full-upgrade.
Having a separate VM or new machine will make this a lot less
stressful
if it shouldn't work out.

Cheers
Christian

_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://sourceforge.net/p/netdisco/mailman/netdisco-users/
_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://sourceforge.net/p/netdisco/mailman/netdisco-users/



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

I did something similar up years ago as well (still in use for non-technical folks in our organization) I thought I'd post my experiences in case it helps or gives you ideas of things you might want to implement: https://ibb.co/yNSy2X1 The basic idea is to do all the work in js/html5 canvas on the client side, and to keep it all as vendor agnostic as possible (no logos or trying to recreate specific models...too hard to maintain!). I wrote support for mostly procurve/aruba devices, but also some other random devices like force10/brocade/f5/PA that meant I needed to work with a large number of module/stacking/port numbering schemes. Modules letters, numbers, forward and back slash separators, zero based and one based...it became complex very quickly! I had VLANs broken out into a list based on the VLAN names and auto-assigned colours based on a scheme I've used before with multiplying prime numbers to get lots of variety. I had a popup section on the bottom of the page (as opposed to a pop-over or floating pop-up window) that gave info on either the local port or remote device if it was a trunk. Clicking on trunks would take you to that switch's netdisco page. I'd be VERY HAPPY if there was an official port info rendering feature in Netdisco, since adapting what I have in my ancient ND branch was so hairy I gave up before making much progress. Let me know if there's anything I can do to help, or if you'd like any of my pm, tt or js files.

   -Brian

On 2023-01-25 13:13, Gallavardin Antoine wrote:
Hi Oliver

I found why my physical representation was wrong, I select all port
not only physical port (type = ethernetCsmacd , maybe it his too
restrictive) [1]

        * On Avaya  positions are like this <switch>.<port>  (example :
2.34) so it was easy for me to build a graphical  view
        * On Dell ( rebranded cisco in fact), port are defined by
Te<switchnumber>/<module number>/<port number>  (example : Te1/0/23)

So I 'll to correct my code [2] and make it more .... agile

Last question : It isn't possible for the moment to shutdown , change
default vlan by API for the moment  ?

cheers

Antoine

[1] in fact I want to get a "physical view" for technician   ( logical
view like agregate, l3vpn isn't needed for the moment), I was inspired
by Java Device manager view :
https://blog.michaelfmcnamara.com/wp-content/uploads/2008/07/devicemanager-es470.png


[2] Maybe on other manufacturer, port name are different... ( Hi
netdisco community, do you have some example ?)

 Le 24/01/2023 à 15:40, Gallavardin Antoine a écrit :

Thanks  Oliver !

I'll try to work with thoses advices.

I hope I could make a relation between physical port and
configuration ( such vlan / speed )

thanks again !

Antoine

Le 24/01/2023 à 14:50, Oliver Gorwits a écrit :

Hi Antoine

First of all, the front panel work you did looks AMAZING 🤩. I did
something like this a long time ago and it's not easy. Well done!

OK so you want to get just the "physical" ports on a device, the
query is not easy but you can see what we do in the database, here
in the highlighted lines:

https://github.com/netdisco/netdisco/blob/master/lib/App/Netdisco/DB/Result/Virtual/DevicePortSpeed.pm#L17-L20

This is not available in the API. However you could do a Custom
Report using this SQL, and then that Report will automagically be in
the API:
https://github.com/netdisco/netdisco/wiki/Configuration#reports

https://github.com/netdisco/netdisco/wiki/API#run-a-report

I hope this helps.

regards,
Oliver.

On Tue, 24 Jan 2023 at 13:30, Gallavardin Antoine
<antoine.gallavar...@inrae.fr> wrote:
Hello

I'm using the fabulous  API in order to get topology from my
network.

I'm trying to draw (very basically) the front of each device (by
walking
across all ports) from my inventory ( based on FusionDirectory)

See an example


https://github.com/gallak/fusiondirectory-plugins-netdisco/blob/main/docs/netdisco-device.png

For some device it work well, but for some device such H3C, my
drawing
function didn't work well ( physical and logical port are mixed).

Maybe my approach isn't the good one :

ex :

get all port for 1.1 - 1.48 and  2.1 - 2.48  correspond to one
network
stack with two component with 48 ports

Do you have any advice ou clue for making a (simple) draw of network
device

Antoine Gallavardin

_______________________________________________
Netdisco mailing list
netdisco-users@lists.sourceforge.net
https://sourceforge.net/p/netdisco/mailman/netdisco-users/
_______________________________________________
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