On Tue, 28 Mar 2000, Ingvar Berg (ERA) wrote:
> I assume that 24 is for a T1 line, so with E1 lines it would be 30?
> /Ingvar
Good question! Turn on debugging and looking for something like
"USR-Interface-Index" in the accounting trace. That's what the
$portidx should end up being. So just take the nas-port from the same
trace, run it through the math (below), and see if the computed index
matches that Interface-Index number in the trace.
#!/usr/local/bin/perl
$nasport = xxx ;
$chan = $nasport % 24;
$slot = (($nasport - $chan) / 24)+1;
$interf = (256*$slot) + $chan + 1000;
print "interf-idx: $interf\n";
Then let Mike know, and he'll replace that 24 with a $density variable.
-a
>
> > -----Original Message-----
> > From: Mike McCauley [mailto:[EMAIL PROTECTED]]
> > Sent: den 29 mars 2000 03:27
> > To: Aaron Nabil; Stephen Roderick
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: (RADIATOR) TotalControlSNMP
> >
> >
> > Hi Aaron,
> >
> > Thanks for that. I have rolled your fix into the next release.
> >
> > Cheers.
> >
> > On Mar 28, 2:07am, Aaron Nabil wrote:
> > > Subject: Re: (RADIATOR) TotalControlSNMP
> > >
> > >
> > > Your math for computing portidx isn't correct for more than
> > the first 24
> > > ports. If use the following instead, you'll get the
> > correct results.
> > >
> > > my $chan = $nas_port % 24;
> > > my $slot = (($nas_port - $chan) / 24)+1;
> > > my $portidx = (256*$slot) + $chan + 1000;
> > >
> > >
> > > Note that these equations are for the factory default
> > density settings.
> > >
> > >
> > >
Aaron Nabil
===
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.