Hello !
I have a USR TotalControl NAS with 3 HiPer modules installed in it. When
trying Simultaneous-use checks by SNMP for USR TotalContrlol, I've found that
when user exists in my RADONLINE and really exists on the NAS port, snmpget
command reports about "session went away for ...". I've tried to access the
MIB (mentioned in my log file) from the console, it reported about "No such
MIB name". After analyzing, which MIBs Radiator asks for, and which MIBs NAS
sends to Radiator, I've decided to make some changes in my Nas.pm module. And
it works OK ! Here are my changes:
sub isOnlineTotalControlSNMP
{
my ($name, $nas_id, $nas_port, $session_id, $client) = @_;
return 1 unless &Radius::SNMP::snmpgetprogExists();
$nas_port=$nas_port+1256;
my $result = &Radius::SNMP::snmpget($nas_id,
$client->{SNMPCommunity},
"$Radius::Nas::TCMIB.4.10.1.1.18.$nas_port");
if ($result =~ /^.*\"([^"]+)".*$/)
{
return $1 eq $name;
}
return 0;
}
I had to redefine $nas_port, because after deeper tests I've found that
$nas_ports, requested by Radiator are less than real NASPORTs on the
TotalControl (1256 is the constant value of all subtractions).
Perhaps, my method of such a "hacking" is rude, but it really works for me
(the problem was too urgent).
Perhaps, it will help somebody with similar problems.
--
With regards,
Alexey A. Shavaldin [EMAIL PROTECTED]
--------------------
System Administrator
of Kraft-S, JSC
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.