Hello Monks!
I am creating a web interface for network device management on a local LAN and I am trying to setup auto device discovery. In my case it is a company specific device that needs to be managed and all other switches, routers, pc's, servers, etc..on the same network should be ignored. So the web server will try to contact every device and then determine which ones to manage and discard all others. Ideas so far:

**The device has a login similar to cisco routers so the Net::Telnet::Cisco module works with it.
1)Use Net::Ping and ping a broadcast address and then use the telnet module to see if the associated login would work for all responses from the broadcast, and if it did then add that device to a database, otherwise ignore.
2)Use arp to get a list of associated IP's and MAC addresses and then telnet to check.
3)Force the user to enter IP range and just step through (checking active status with Net::Ping) each IP with telnet module to see if device responds accordingly.
4)Use nmap or some other network mapper to get some host info....although this usually requires root access.Then use telnet module to check

I would probably use a threaded model to do these checks in parallel for speedy response, and make sure the timeouts were set to a small value, but haven't had too much experience with network management and perl so I thought the monks might have some good ideas.


In reply to Network device discovery with Perl by perldragon80

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.