11-04-2002 05:26 PM - edited 03-02-2019 02:37 AM
Hello all,
Interesting problem has popped up at work.
Currently we can find what host (or CPE) IP's are associated with a particular cable modem via the command:
cmts#show Interfaces CableX/0 modem <sid-number>
This is all well and good, but I need to be able to generate a list between all CPE IP's to cable modem IP's and store this information in a db of sorts.
Are there any queries (I am thinking of SNMP here) that can be done from an UNIX host, for example, that will generate this list? Or if anyone has any other suggestions that'll be great.
11-05-2002 09:20 AM
Your thinking is right..snmp is the best bet.
11-05-2002 05:43 PM
RIghty-o..thanks for that... I've looked but I am either looking in the wrong place or don't know what I am after, so could you (or someone) please give me a pointer to some documentation or the actual snmpget command that'll do this?
Cheers all
11-06-2002 06:40 AM
Well, there's not one snmpget command that will do this. You need to write either a bash or perl script to do it effectively, and it depends on how the modems are provisioned.
Basically, you need to walk the docsIfCmtsCmStatusIpAddress table on the UBR to get a list of all the modems out there. Then, you load that list of IP's into an array, and and walk the docsDevCpeIp table on each modem.
Justin
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide