Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 13th, 2004, 08:09 PM
malv malv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 20 malv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
finding all the switches of a local network

Hello

I'd like to find all the switches hostnames (or ips) that are connected on my network.
Could anyon explain me how to do that.

It would be best if it would be done using SNMP, but any other solution is appreciable.

I don't know if there is a SNMP request for that, if I have to check it against something or if it can be performed brutally with a perl script...

anyhow, the script/method should be as quick as possible and return ALL the switches.

thanks in advance for your help

Reply With Quote
  #2  
Old March 13th, 2004, 09:03 PM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
If the switches will respond to an SNMP sweep ie.. public
then use solarwinds SNMP sweep however this will not guarentee you got them all as some are not configured for SNMP by default and some may have a different community string ie private. a switch is a layer two device and unless configured to be managed wont have an IP address associated also so a ping sweep is outa the question.

Reply With Quote
  #3  
Old March 14th, 2004, 06:09 AM
malv malv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 20 malv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thans

thanks for you answer juniperr

in fact, I was looking for a more 'programming'-oriented solution ^^, but that's already something I could use.

I'll have look at the solarwinds tools, but if you now a way of foing this using the standard command-line ucd-snmp/net-snmp toolset, or by using the SNMP API with a PERL script, this would be totally the best solution for me.

thanks again

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > finding all the switches of a local network


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway