That would be great.  It has been awhile since I have done C programming so it would be nice to work with it again.<br><br>Thank you,<br>  Jamie Bohr<br><br><div><span class="gmail_quote">On 1/3/07, <b class="gmail_sendername">
Mogens Kjaer</b> <<a href="mailto:mk@crc.dk">mk@crc.dk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jamie Bohr wrote:
<br>> This question is way off topic, sorry.  I have googled and googled and have<br>> not come up with a answer to my question.<br>><br>> I want to query a switch (via SNMP I think) to get a list of systems<br>
> attached to it.  I am using Nagios and would like to determine<br>> switch/router<br>> dependencies.  Trace route will not work because it will not show<br>> routers/switches for systems on the same sub-net as the system doing the
<br>> trace route and I have seen where it does not return the network based<br>> switch a system is attached to, just the router.  If I could get a list<br>> systems attached to a router/switch (not a personnel switch, a managed
<br>> switch) I can correlate the information and build dependencies.  I have a<br>> hand-held Fluke network tester than runs Linux that will do this for me<br>> when<br>> I type in a hostname, I would rather do it programmaticly because I have
<br>> over 300 systems I need to do.  I am open to any method that works that I<br>> can script so I don't have to do it every time a new system appears.  Just<br>> in case it matters some systems are attached to a V-lan off a managed
<br>> switch<br>> and I do NOT have admin rights to the routers or switches.<br>><br><br>I wrote a C program that uses SNMP for this.<br><br>It queries the switches and hubs for the MAC addresses<br>seen at each port and the number of bytes in/out.
<br><br>Some switches have a MAC to IP table, else I would<br>ask the ARP table of the router for a table like this.<br><br>The program then prepares a nice top-10 on the<br>intraweb showing which computers are generating
<br>most traffic, and another table with traffic<br>at each switch/hub port.<br><br>This program was made by studying the output from<br>snmpwalk for the switches, finding the necessary<br>MIB's etc.<br><br>The program is unreadable by anyone else
<br>but me, so it is not suitable for distribution, but<br>maybe this could give you a hint on how to proceed.<br><br>Mogens<br><br>--<br>Mogens Kjaer, Carlsberg A/S, Computer Department<br>Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
<br>Phone: +45 33 27 53 25, Fax: +45 33 27 47 08<br>Email: <a href="mailto:mk@crc.dk">mk@crc.dk</a> Homepage: <a href="http://www.crc.dk">http://www.crc.dk</a><br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>Jamie Bohr