Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Automatically matching CPE IP's to Cable Modem IP's on an uBR7246vxr

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.

3 REPLIES
Cisco Employee

Re: Automatically matching CPE IP's to Cable Modem IP's on an uB

Your thinking is right..snmp is the best bet.

New Member

Re: Automatically matching CPE IP's to Cable Modem IP's on an uB

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

New Member

Re: Automatically matching CPE IP's to Cable Modem IP's on an uB

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

507
Views
0
Helpful
3
Replies
CreatePlease login to create content