Hi,
how could I get the IP addresses of all the CMs currently on the network via SNMP? Should I get them from the every particular CMTS or is there another way of getting them?
I need them for getting / setting values of every particular CM in the net.
Thanks!
Mike
Do you have an snmp server? how many cmts's do you have and the average number of modems per cmts?
there's simple tools to get the ip's from a scan for that given network or an old 3com tool that's good for upgrades. but an snmp server for the most part is what would be used to get info from the modems, why I asked if and what kind. depending on the cmts, there could be different oid's
~Carl
Hi,
I have a NET-SNMP installed and I can get info from modems via these OIDs for example:
1.3.6.1.2.1.1.1.0 = System Description
1.3.6.1.2.1.1.3.0 = Modem up time
1.3.6.1.2.1.4 = Some useful information (walk)
1.3.6.1.2.1.4.20.1.1.0 = HFC IP (getnext)
1.3.6.1.2.1.4.20.1.3.0 = HFC Subnet (getnext)
1.3.6.1.2.1.2.2.1.6.2= Mac
1.3.6.1.2.1.10.127.1.1.3.1.3.1 = Maximum upload bandwidth
1.3.6.1.2.1.10.127.1.1.3.1.5.1 = Maximum download bandwidth
1.3.6.1.2.1.10.127.1.1.4.1 = Current status (walk)
1.3.6.1.2.1.17.4.3.1.1.0 = Hosts behind modem
1.3.6.1.2.1.69.1.4.4.0 = TFTP Configuration file server IP
1.3.6.1.2.1.69.1.4.5.0 = Configuration file name
1.3.6.1.2.1.69.1.3.5.0 = Current firmware
1.3.6.1.2.1.69.1.4.2.0 = DHCP Server IP
1.3.6.1.2.1.69.1.4.3.0 = Time Server IP
1.3.6.1.2.1.69.1.5.8.1.7 = View Log (walk)
1.3.6.1.2.1.10.127.1.1.1.1.2.3 = Downstream Frequency
1.3.6.1.2.1.69.1.4.5.0 = Image File
1.3.6.1.2.1.17.4.3.1.1 = Learned MAC (Get Next)
But I have a problem where I need the IP to get this info from any I am using PHP's Net-SNMP module to do it. And I have trouble getting the list of all the IPs of modems at some particular moment.
Could you please list some of those apps, preferably compatible with php?
Thanks
You could use the ipNetToMedia table to pull all the modem ips from the CMTS. In theory it should work with all brands of CMTSes, but I know it works with Cisco CMTSes.
its oid is 1.3.6.1.2.1.4.22.1, on cisco CMTSes it is indexed by cable blade or Bundle. So for example on one of my CMTSes Bundle 1 has an interface index of 42, so I walk the oid 1.3.6.1.2.1.4.22.1.42. you can then process the results. (if you do not know hat index your Cable blade or Bundle is try walking 1.3.6.1.2.1.2.2 it will list the interfaces and their indexes.)
You can browse the OID tree on Cisco's Site Here
It should be trivial to use net-snmp with PHP to gather this info.
So, this would show the ip of the modems and cpes ! :/
http://www.cisco.com/en/US/docs/cable/cmts/mib/reference/guide/ubrmibb.html is useful !
-- My wish ... --
Thanks guys! It helped me out a lot!
You welcome! :)
-- My wish ... --
.1.3.6.1.2.1.10.127.1.3.3.1.3 looks interesting :) now to filter those online/offline modems ...
-- My wish ... --