TM402G SNMP question | docsis.org

You are here

TM402G SNMP question

5 posts / 0 new
Last post
emkowale
TM402G SNMP question

Hi All,

In the web interface for the Arris TM402 & TM502 devices they have a neat little item called "Computers Detected:" in the status right under the uptime. Does anyone know if that could be grabbed via SNMP?

Thanks,
emkowale

mbowe
Dont think I have seen that

Dont think I have seen that exposed as a mib.

When I am looking for such I would do
"snmpwalk -v1 -c your_community x.x.x.x -m ALL enterprises"
And make sure you have the Arris MIBs installed on your computer.

Perhaps it's just a count of the number of learnt macs
eg snmpwalk of BRIDGE-MIB::dot1dTpFdbStatus

Or if you cant get it with SNMP, then you can usually use a http screen scrape script without too much trouble

emkowale
Tried that

Hi,

I tried that and I do have a count, but it seems like that "computers detected" field is a more live an reliable way of knowing what's actually physically connected. Any other way and you're just getting a bunched of cached data.

emkowale

rmadmin
CPE Count Example

I took mbowe's advice and came up with the following:
I don't have all of the MIBs loaded on my server, so I loaded rfc1493.mib in iReasoning, and got the OID of .1.3.6.1.2.1.17.4.3.1.3 for BRIDGE-MIB::dot1dTpFdbStatus.

Walking a modem I got the following:
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.25 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.26 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.27 = INTEGER: 5

Plug in a CPE:
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.25 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.26 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.27 = INTEGER: 5
SNMPv2-SMI::mib-2.17.4.3.1.3.240.222.241.225.217.194 = INTEGER: 3

Plugging yet another CPE in (put a switch behind the modem):
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.25 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.26 = INTEGER: 4
SNMPv2-SMI::mib-2.17.4.3.1.3.0.29.206.85.181.27 = INTEGER: 5
SNMPv2-SMI::mib-2.17.4.3.1.3.0.33.133.231.51.246 = INTEGER: 3
SNMPv2-SMI::mib-2.17.4.3.1.3.240.222.241.225.217.194 = INTEGER: 3

I'm using PHP, so I did the following:
$cpecount = count(snmpwalk($cmip, 'rocommunity', ".1.3.6.1.2.1.17.4.3.1.3"))-2;

If you're using bash scripting: (./countcpe.sh x.x.x.x)
#!/bin/bash
CMIP=$1
NUMCPE=$((`snmpwalk -v2c -c rocommunity $CMIP .1.3.6.1.2.1.17.4.3.1.3 | wc -l` - 2))
echo "Cpe: $NUMCPE"

Keep in mind, this is done against a TM602 (shouldn't matter), and this counts the MTA, to mimic what you would see for CPE in a show cable modem on the CMTS.

mbowe
Rather than SNMP, you could

Rather than SNMP, you could http "screen scrape" / "web scrape" it. Lots of linux tools/libraries to support that type of thing. You can use perl or python libraries for example.

Log in or register to post comments