Nedi gives me an error getting interface descriptions on longer types of alliases
IF :Walking name
IF :Walking description
ERR :IF Desc No response from remote host "172.25.235.133"
IF :Walking type
I cant really pinpoint a problem in the code but seems the problem is like this:
iso.3.6.1.2.1.2.2.1.2.35848192 = STRING: "1/1/6, 10/100/Gig Ethernet SFP, \"IT-LAN\""
That would work
iso.3.6.1.2.1.2.2.1.2.35848192 = STRING: "1/1/6, 10/100/Gig Ethernet SFP, \"IT-LAN in a longer string and will fail\""
Now this OID will fail. Seems then the string is longer then 64 chars and will fail
Anyone got any ideas?
if($ifnamO eq $ifdesO){ # Copy IF desc, if used as name
%ifde = %{$r};
@ifx = map(substr($_,20), keys %ifde); # cut OIDs down to indexes in 1 step (gotta love perl!)
}else{
misc::Prt("IF :Walking description\n");
$r = $session->get_entries(-columns => [$ifdesO],@range,@maxrep);
$stat{d} = $session->error;
if($stat{d}){
misc::Prt("ERR :IF Desc $stat{d}\n","Id");
$warn++;
}else{
%ifde = %{$r};
@ifx = map(substr($_,20), keys %ifde);
}
}
}