Hi I was hoping to use the

net::SNMP module to dump all hardware addresses in a switches table
and find what port they each are on

and have gotten this far (able to dump the uptime of the switch)
anyone out there know how to get all the addresses on each port?

I am reading the doc and man pages and its a little complicated>

use Net::SNMP;

$hostname = shift || '172.16.0.11';
$community = shift || 'public';
$port = shift || 161;

($session, $error) = Net::SNMP->session(
Hostname => $hostname,
Community => $community,
Port => $port
);

if (!defined($session)) {
printf("New Session ERROR: %s\n", $error);
exit 1;
}

$sysUpTime = '1.3.6.1.2.1.1.3.0';

if (!defined($response = $session->get_request($sysUpTime))) {
printf("System Uptime ERROR: %s\n", $session->error);