Download Network Discovery Script (Eth_topo.pl)

Version 4


    Mellanox LLDP script used for Link Discovery

     

    Prerequisite:

    (1) As a prerequisite the following PERL libraries should be installed on the server

    • Proc::Queue
    • Test::More
    • Net::SNMP
    • Net::SNMP::Mixin
    • Net::SNMP::Mixin::dot1abLldp

    To install the libraries simply run the command  'cpan'

    #cpan <library name>


    (2) Make sure all required Mellanox switch systems have LLDP enabled (by default it is disabled)

    To enable LLDP simply run the command 'lldp'

    #switch (config)# lldp


    (3)  Make sure all required Mellanox switch systems have SNMP enabled (by default it is enabled)

    To enable SNMP simply run the command 'snmp-server  enable

    # switch (config) #snmp-server enable

     

    To run the script simply create a file called "list.txt" (or any other file name)

     

    In list.txt you should add the list of IP Addresses or hostnames of the switches you wish to discover the link


    For example:

     

    r-qa-sit-sx01

    r-qa-sit-sx02

    r-qa-sit-sx03

    r-qa-sit-sx04

    r-qa-sit-sx05

    r-qa-sit-sx06

    r-qa-sit-sx104

     

    To run the script, simply run the command:

     

    #Eth_topo.pl -l list.txt -wt -V