(RADIATOR) can snmpget query NAS w/ Cisco-NAS-Port?

Dave Kitabjian dave at netcarrier.com
Sun Nov 18 14:26:53 CST 2001


Oh, I see. You just mean renaming the attribute, but keeping its value
the same:

sub
{
    my $p = ${$_[0]};

    my $nasport;

    if ($nasport = $p->get_attr('Cisco-NAS-Port'))
    {
        &main::log($main::LOG_DEBUG,
            "Cisco-NAS-Port = $nasport");
        $p->change_attr('NAS-Port', $nasport);
#       $p->delete_attr('Cisco-NAS-Port');
    }
    return;
}

That's fine with me, but will snmpget know what to do with as Nas-Port
that looks like "Async5/94", "Serial7/0:21:17", or "Virtual-Access25"
when it goes to see if the user is still online? That's my main
concern...

Dave

> -----Original Message-----
> From: Hugh Irvine [mailto:hugh at open.com.au] 
> Sent: Friday, November 16, 2001 8:09 PM
> To: Dave Kitabjian; Radiator List
> Subject: Re: (RADIATOR) can snmpget query NAS w/ Cisco-NAS-Port?
> 
> 
> 
> Hello Dave -
> 
> On Saturday 17 November 2001 01:48, Dave Kitabjian wrote:
> > Problem: we want to query Cisco 5400's for simultaneous 
> use, but for 
> > VoIP, there is no Nas-Port in the Access-Request, only 
> Cisco-Nas-Port.
> >
> > My understanding is that, to double check the Session DB's 
> accuracy, 
> > snmpget will do a lookup based on NAS-Identifier, NAS-Port, and 
> > Username, and a few other things (see Nas.pm, isOnline()):
> >
> > 	($name, $nas_id, $nas_port, $session_id, $client,
> > $framed_ip_address)
> >
> > For the Ciscos in particular, it appears to use:
> >
> > 	($nas_id,
> >                          $client->{SNMPCommunity},
> >                          
> > "$Radius::Nas::CiscoMIB.2.9.2.1.18.$nas_port")
> >
> > and it's all looking under the MIB:
> >
> > 	.iso.org.dod.internet.private.enterprises.9
> >
> > (See also SessSQL.pm). Obviously, we can modify the 
> SessionDatabase's 
> > AddQuery to insert the Cisco-NAS-Port rather than the Nas-Port. But 
> > how do we get snmpget to query that info in the Cisco MIB?
> >
> 
> It is probably easier to use a PreClientHook to take the 
> Cisco-NAS-Port value 
> and add a NAS-Port attribute to the incoming request. There 
> is an example 
> hook that does this in the file "goodies/hooks.txt".
> 
> regards
> 
> Hugh
> 
> 
> -- 
> Radiator: the most portable, flexible and configurable RADIUS 
> server anywhere. Available on *NIX, *BSD, Windows 95/98/2000, 
> NT, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, 
> extensible, flexible with hardware, software, platform and 
> database independence.
> 
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list