I am trying to retrieve the mac address from the arp table of another machine 
using Mike Mitchell's SNMP_util module.  When I run the script below i get 
"�)" as the result instead of the mac address.  I know the snmp daemon is 
running properly as i can use snmpget from the command line and it gives me 
no troubles.

#!/usr/bin/perl -w
use SNMP_util;
$ip = "192.168.1.1";
$mib = ".1.3.6.1.2.1.4.22.1.2.2.$ip";

@mac = snmpget("commstring\@localhost", "$mib");

print @mac;

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to