Hello,

.iso.org.dod.internet.private.enterprises.429.4.10.1.1.18.<n> i

enterprises.usRobotics.common.usrCip.usrCipPortParamTable.usrCipPortPa
ramEntry.usrCipUserName.<n>.

Here <n> is not the nasport, instead that, <n> is the
'UsrInterfaceIndex' (sent by H.arc to radius in accounting packages).

H.Arc does not save the nasport, it calculate it (nasport) whit the
formula I told you.

I have nod found any formula to get UsrInterfaceIndex from NasPort,
nor vice versa.

Otherwise, at your first mail, you said you are setting
REPORTED_PORT_DENSITY, instead its default (256), so, the nasport for
your example will be 389 ( ( 13 - 1 ) * 30 + 29 ).

To get the 'username' for a connection, you have two ways:

1. save at online database the UsrInterfaceIndex attribute and ask
for the mib above (I use this way).

2. ask for
<<enterprises.usRobotics.common.usrUserMan.usrUserManGroup.usrUserManA
ctiveSessionTable.uumActiveSessionEntry.uumActiveSessionIfName."<usern
ame>".<session-id> = "slot:A/mod:B">> and, with regular exprexion,
get the username. You can ask for a snmwalk with that query, and
serach for the containing the slot/mod you are quering, then, get the
username. really complex.

So, I thing first way is the best choice.

Best regards.

P.S. Have you the MIB file for the HiperArc? If you have not, feel
free to ask me for it.

On Mon, 2 Apr 2001 13:10:09 +0500, Alexey A. Shavaldin wrote:

>Hi !
>
>On Monday 02 April 2001 11:10 am, Jes?s M D?az wrote:
>> 3Com HiperARC can send NasPort in two ways. first, 'density based',
>> the nasport sent to Radius is '(slot - 1) * REPORTED_PORT_DENSITY +
>> mod', where 'slot:X/mod:Y' is the modem which the user is connected
>> to.
>>
>> So, if a user is connected against the modem 'slot:3/mod:5', the
>> NASPORT sent to Radius will be 65 ((3-1)*30+5). By default,
>> REPORTED_PORT_DENSITY is set to 256.
>> I hope this can be helpful for you.
>
>Perhaps, but it didn't help me. I had to recompute $nas_port=$nas_port+1256; 
>in my Nas.pm module for USTTotalControl in order things to work. I don't know 
>why, I don't understand how, but it works for me (I've posted a message on 
>this mailing list last year).
>For example, I have a connection on slot13/mod29 named "xxx". According to 
>the formula below Radiator asks for $nas_port=(13-1)*256+29=3101. Asking a 
>MIB .iso.org.dod.internet.private.enterprises.429.4.10.1.1.18.3101 it gives a 
>result "Error in packet. Reason: (noSuchName) There is no such variable name 
>in this MIB." But asking for $nas_port=3101+1256=4357 gives the result of 
>"xxx" username. I've found this experimentally, looking at multiple errors of 
>"Error in packet" and analysing, what NAS SNMP can give me and what Radiator 
>asks for. The difference between these values for all slots and modems in my 
>case appeared to be a constant value of 1256.
>
>> On Sun, 1 Apr 2001 22:20:42 +1000, Brett Murphy wrote:
>> >Hi All,
>> >when I snmpget my 3COM HiperARC's to check for multiple logins, the port
>> > numebrs are substantially different to that being reported to Radiator by
>> > the NAS in my radius accounting table.
>> >
>> >I have found something in the archives regarding
>> >set pb REPORTED_PORT_DENSITY 30
>> >but this does not solve my problem.
>> >Thanks in advance!
>> >Brett.
>> >
>> >http://www.alphalink.com.au/
>> >
>> >===
>> >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.
>>
>> Jesus M Diaz <[EMAIL PROTECTED]>
>>
>> Telia Iberia, S.A.
>> Planificaci?n y Dise?o de Red
>> Tfno: +34 91 623 2909
>> Fax: +34 91 623 2911
>>
>>
>>
>> ===
>> 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.
>
>-- 
>With regards,
>Alexey A. Shavaldin                              [EMAIL PROTECTED]
>--------------------
>System Administrator
>of Kraft-S, JSC


Jesus M Diaz <[EMAIL PROTECTED]>

Telia Iberia, S.A.
Planificación y Diseño de Red
Tfno: +34 91 623 2909
Fax: +34 91 623 2911



===
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.

Reply via email to