perldragon80 has asked for the wisdom of the Perl Monks concerning the following question:
**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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Network device discovery with Perl
by Mr_Person (Hermit) on Aug 19, 2004 at 20:29 UTC | |
|
Re: Network device discovery with Perl
by tachyon (Chancellor) on Aug 19, 2004 at 23:01 UTC | |
by perldragon80 (Sexton) on Aug 26, 2004 at 18:35 UTC |