Linux server equivalent of Cisco Discovery Protocol (CDP)?

48

Are you looking for LLDP?

Agent software is out there for Linux, and many network devices support it.

Share:
48

Related videos on Youtube

Mohmd Ali
Author by

Mohmd Ali

Updated on September 18, 2022

Comments

  • Mohmd Ali
    Mohmd Ali almost 2 years

    I need help in drawing a Pie Chart using JavaScript. I'm using Ajax to get my data and to fetch them properly inside a pie chart in my dashboard. Please keep in mind I'm getting my data using Ajax .

    • EEAA
      EEAA about 12 years
      What's the use case here?
    • Andy Shinn
      Andy Shinn about 12 years
      To help remotely identify port to port mapping of Linux machines connected to each other without a switch.
    • EEAA
      EEAA about 12 years
      So you have a bunch of servers connected directly? Sound very painful.
    • Dan
      Dan almost 8 years
      Welcome to Stack Overflow. Please keep in mind for future questions that you should post what you have tried and what your specific problem is. This should also be shown in a MCVE to help other users understand your problem and answer you sufficiently.
    • Dan
      Dan almost 8 years
      Also if my answer does not work for you leave a comment and I will see if I can edit it to help
    • Mohmd Ali
      Mohmd Ali almost 8 years
      thanks @Dan i really appreciate it ! i worked , but if you can just edit your code with some comments please so i know what's going on . thank you
    • Dan
      Dan almost 8 years
      Of course. Give me 2 minutes
    • Mohmd Ali
      Mohmd Ali almost 8 years
      Bro let's say im getting nb of males and females from db and im drawing it.
    • Dan
      Dan almost 8 years
      I added an example for you at the bottom. You would sub in your code for getting a value from a database in the getter methods for boys and girls
    • Dan
      Dan almost 8 years
      Also if this answer is sufficiently correct would you please mark it accepted by using the tick on the left? If not leave another comment :)
    • Mohmd Ali
      Mohmd Ali almost 8 years
      it worked bro , but im still trying to know how do i write male/female inside each circle
    • Dan
      Dan almost 8 years
      Try something similar to this JSFiddle. I do regret that I have no idea how to automate for different size sectors. I just positioned manually using the methods described here. Perhaps if you don't figure it out ask another question. I'm sure someone will be able to help
  • Andy Shinn
    Andy Shinn about 12 years
    Yep, this looks like what I was after. Actually, the Intel LLDP agent doesn't provide much information at all. With some more searching about LLDP I discovered github.com/vincentbernat/lldpd which does a simple output of the LLDP neighbors, their interface, MAC, hostname, IP address, and more. This becomes very helpful information when there are no switches to provide a MAC table.
  • Andy Shinn
    Andy Shinn about 12 years
    The LLDP information also led me to netdisco.org which appears to be exactly what I was looking for.
  • Mohmd Ali
    Mohmd Ali almost 8 years
    Thanks bro !! @Dan