Hi,
Replace the cisco_snmp function with or write a new function(have to do a few more additions in that case)
my $port = $ARGV[2];
my $acctsessid = $ARGV[4];
my @values = split('/', $acctsessid);
my $mac = $values[1] ;
my @valuesmac = split(':', $mac);
foreach my $val (@valuesmac) {
push(@arra , hex($val)) ;
print $val ;
}
$hexmac = join(".",@arra);
$login = snmpget($ARGV[1], "YOUR_COMMUNITY_STRING",
"SNMPv2-SMI::enterprises.14179.2.1.4.1.3.$hexmac");
print LOG " user with session id $ARGV[4] ($sess_id): \n" ;
"$login\n" if ($debug);
if($login eq $ARGV[3]) {
return 1;
}else{
return 0;
}
also set this variable in global section:
$snmpget = "snmpget";
Please rate if this helps
BR,
8zero2