Hello,
I have a running snmp enabled BSR64000 cmts. Is it possible to query the cmts via snmp for cable modem mac based on the client ip address or mac address?
In case someone is interested in "why?" I need this, here is the idea behind it:
Customer opens a web page hosted by us -> PHP on the webserver side knows the ip address of the client who's currently browsing -> PHP queries the CMTS via SNMP to get the CM MAC -> PHP queries our Client Databse based on the CM MAC -> PHP displays relevant information to the client.
Someone will ask "why don't you query the database with customer IP instead of CM MAC"? Well, IP addresses are distributed dynamically via DHCP protocol in our network. So if you have CM MAC, CM IP, CPE_X MAC, CPE_X IP - we only keep CM MAC in the DB.
The other way around this would be having a script digging in dhcpd leases and I would like to avoid that.
Also doing this the way I want it would make it usable in DOCSIS environmet without HOST AUTHORIZATION enabled on the CMTS.
So, anyone done that?
xeno
sw ver
I believe you can, depends on the software version your running to have the right OID. worse case, write a script to telnet in and do a page off, show cable modem cpe to get the information. what release is it running?
~Carl
Well I've been using expect
Well I've been using expect script to gather some info but it looks way too sloppy. I mean, I would like to redirect a lot of clients to that page at some point and god knows how many telnet sessions would it spawn :)
I'm running archive3_521P41H41KRBU.Z on the BSR64K and it seems to miss the required functionality via snmp :/
xeno