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: Graphical representation of network device (Oliver Gorwits)
   2. Re: OS Upgrade options on customized Netdisco install
      (Christian Ramseyer)
--- Begin Message ---
Hi Brian,

Wow, that looks great! Yes you're right about the difficulty of maintaining
vendor model specific solutions.

A long time ago (2009 era) I had a patch to Netdisco 1.x which added
"frontpanel" graphics as well. It was a lot of fun to do, and had a cute
XML domain specific language to describe devices and how they should be
visualised (ports, groups of ports, counting direction, line cards,
background images, etc), making full use of the "Modules" (entity) data we
get in Netdisco to find the chassis, ports and line cards. For example:
https://github.com/ollyg/Net-Appliance-Frontpanel/blob/master/share/xml/chassis.xml

Anyway, it was not very realtime and not very easy to get working for lots
of different types of devices.

@brian please do send over to me (oliver at cpan dot org) your patches, I'm
always interested in seeing how different people approach and solve the
same problems and if we can take any ideas forward into new features (with
permission).

regards
oliver.

On Mon, 30 Jan 2023 at 20:05, brian <[email protected]> wrote:

> 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
> >> <[email protected]> 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
> >> [email protected]
> >> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
> > _______________________________________________
> > Netdisco mailing list
> > [email protected]
> > https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
>

--- End Message ---
--- Begin Message ---


On 30.01.23 20:10, brian wrote:

I've managed to get everything working on Debian Buster

nice!


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?

You can check the postgres logs to see if an illegal query hits the database. The file should be somewhere in /var/log/postgresql/ on Debian.

You can enable the developer tools in the browser (e.g. F12 in Firefox), there is a Console tab there that will show javascript/ajax crashes.

You can start the web server with some debugging and sql output like so:
~/perl5/bin/localenv bash
DBIC_TRACE=1 plackup -p 5001 -R share,lib,~/environments bin/netdisco-web-fg
(this is from https://github.com/netdisco/netdisco/wiki/Developing, maybe you need to fiddle with the PATH and -R flags for it to work on the cpan installation instead of the git checkout)

In one of these you should be able to see what's going wrong.

Good luck!



--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to