I am using SNMP_util to retrieve mac addresses from my ARP table and my 
result is always odd characters instead of xx:xx:xx:xx:xx:xx. 

Example:

#!/usr/bin/perl -w
use SNMP_util;

$commstring = "foo";
$host = "127.0.0.1";
$ip = "192.168.1.10";
$mib = ".1.3.6.1.2.1.4.22.1.2.2.$ip";

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

print @mac;


will return:
 Ì6\@

Any help would be greatly appreciated.

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

Reply via email to