<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perlscript to connect hp switch and read the mac-address in Switches, Hubs, and Modems</title>
    <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285475#M16097</link>
    <description>There are scripts out there.... I haven't tried it but I found this - &lt;A href="http://linux.softpedia.com/get/Programming/Libraries/SNMP-BridgeQuery-26173.shtml" target="_blank"&gt;http://linux.softpedia.com/get/Programming/Libraries/SNMP-BridgeQuery-26173.shtml&lt;/A&gt;</description>
    <pubDate>Mon, 13 Oct 2008 12:13:41 GMT</pubDate>
    <dc:creator>Matt Hobbs</dc:creator>
    <dc:date>2008-10-13T12:13:41Z</dc:date>
    <item>
      <title>Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285471#M16093</link>
      <description>Hi,&lt;BR /&gt;I need a perlscript to connect my hp procurve switch and read the mac-address from the connected hosts.&lt;BR /&gt;Can someone help me with an example?&lt;BR /&gt;Thanks Christian</description>
      <pubDate>Mon, 13 Oct 2008 05:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285471#M16093</guid>
      <dc:creator>Christian Czech</dc:creator>
      <dc:date>2008-10-13T05:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285472#M16094</link>
      <description>what you say ?? &lt;BR /&gt;if I true understand you &lt;BR /&gt;you want look pc mac address each port on switch&lt;BR /&gt;is this true   ?</description>
      <pubDate>Mon, 13 Oct 2008 08:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285472#M16094</guid>
      <dc:creator>cenk sasmaztin</dc:creator>
      <dc:date>2008-10-13T08:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285473#M16095</link>
      <description>how do you want to connect, I believe SNMP is the easiest way to retrieve MAC addresses.</description>
      <pubDate>Mon, 13 Oct 2008 09:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285473#M16095</guid>
      <dc:creator>Igoris_1</dc:creator>
      <dc:date>2008-10-13T09:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285474#M16096</link>
      <description>Hi,&lt;BR /&gt;with snmp there is no way to find out a matching witch mac-address connect on which port on the switch. (like the command show mac-address vlan 1)&lt;BR /&gt;&lt;BR /&gt;;-)) I know my english is not good.</description>
      <pubDate>Mon, 13 Oct 2008 10:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285474#M16096</guid>
      <dc:creator>Christian Czech</dc:creator>
      <dc:date>2008-10-13T10:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285475#M16097</link>
      <description>There are scripts out there.... I haven't tried it but I found this - &lt;A href="http://linux.softpedia.com/get/Programming/Libraries/SNMP-BridgeQuery-26173.shtml" target="_blank"&gt;http://linux.softpedia.com/get/Programming/Libraries/SNMP-BridgeQuery-26173.shtml&lt;/A&gt;</description>
      <pubDate>Mon, 13 Oct 2008 12:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285475#M16097</guid>
      <dc:creator>Matt Hobbs</dc:creator>
      <dc:date>2008-10-13T12:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285476#M16098</link>
      <description>Hi,&lt;BR /&gt;sorry the script do not work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl &lt;BR /&gt;&lt;BR /&gt;my $address = "x.x.x.x";&lt;BR /&gt;my $community = "public";&lt;BR /&gt;use SNMP::BridgeQuery;&lt;BR /&gt;use SNMP::BridgeQuery qw(querymacs queryports queryat);&lt;BR /&gt;&lt;BR /&gt;my  $fdb = queryfdb(host =&amp;gt; $address,&lt;BR /&gt;                  comm =&amp;gt; $community);&lt;BR /&gt;  unless (exists $fdb-&amp;gt;{error}) {&lt;BR /&gt;     ($fdb-&amp;gt;{$mac} = "n/a") unless (exists $fdb-&amp;gt;{$mac});&lt;BR /&gt;     print "This MAC address was found on port: ".$fdb-&amp;gt;{$mac}."\n";&lt;BR /&gt;}&lt;BR /&gt;~&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;&lt;BR /&gt;/test.pl &lt;BR /&gt;This MAC address was found on port: n/a&lt;BR /&gt;&lt;BR /&gt;But I do not why. The mac addresses are in the snmp parameter (with a snmpwalk).&lt;BR /&gt;It is very mysteries.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2008 17:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285476#M16098</guid>
      <dc:creator>Christian Czech</dc:creator>
      <dc:date>2008-10-13T17:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Perlscript to connect hp switch and read the mac-address</title>
      <link>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285477#M16099</link>
      <description>Hi Christian,&lt;BR /&gt;&lt;BR /&gt;given that NeDi (&lt;A href="http://www.nedi.ch)" target="_blank"&gt;www.nedi.ch)&lt;/A&gt; can do exactly that (correlate host MAC addresses to switch ports on ProCurve boxes), the information has to be there in the SNMP MIBs. The discovery module is even a perl script, so you might have a look into it for how it's done.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Andre.</description>
      <pubDate>Tue, 14 Oct 2008 19:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/switches-hubs-and-modems/perlscript-to-connect-hp-switch-and-read-the-mac-address/m-p/4285477#M16099</guid>
      <dc:creator>André Beck</dc:creator>
      <dc:date>2008-10-14T19:04:04Z</dc:date>
    </item>
  </channel>
</rss>

