farber@admin.f-tech.net wrote:
I do.. snmp get the names from the ARC and the telnet session to dico the user.
What I meant to say is why use TELNET at all when it can be done easily through SNMP only.
I wish I had the SNMP OID to reset a specific modem....
The OID .1.3.6.1.4.1.429.4.10.1.1.27.interface# should be specific enough. You can either compute the interface # yourself with the rule: interface = slot * density + modem # + offset + 1000. The Default Density is 256 and the default offset is 1, but you can get the specific values from the ARC through SNMP by reading: .1.3.6.1.4.1.429.4.2.1.90.0 and .1.3.6.1.4.1.429.4.2.1.47.0 respectively. If you use RADIUS, the "Interface-Index" attribute sent with the accounting record (along with the slot and channel attribute) is the actual interface # associated with the modem. I find the RADIUS Interface-Index attribute to be very useful to manage the modems, while the slot and interface attribute are used for easy to read stats. For example, if I want to reset a modem to disconnect a user on Slot:2/Mod:7, The interface is 2 * 256 + 7 + 1 + 1000 = 1520. By doing a snmpset on .1.3.6.1.4.1.429.4.10.1.1.27.1520 with the string "RESET", the modem's reset and the user's gone.
Why wouldn't you use SNMP to disconnect users as well? Seems easy enough if you already list users per interface to see who's on. I use a snmpset of .1.3.6.1.4.1.429.4.10.1.1.27.interface# with the string "RESET" and the user's gone.
Just a thought,
Nick
Hope this helps, Nick -- Nicolas St-Pierre Systems Engineer Internet Access Solutions Ltd. Tel (905) 469-4953 Fax (905) 469-4954 - To unsubscribe to usr-tc, send an email to "majordomo@xmission.com" with "unsubscribe usr-tc" in the body of the message. For information on digests or retrieving files and old messages send "help" to the same address. Do not use quotes in your message.