Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 28, 2017 3:44 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Tue Dec 18, 2007 1:39 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
Changelog:
1.0
-Initial release
-Exported with Cacti 0.8.7a

Background:
This template collects the docsIfCmtsCmStatusValue field from a CMTS, which details information about the various states CM's are in. It was tested against a C9 CMTS, but should work against others which support the DOCSIS MIB.

Installation:
1. Place the ss_ script into the /cacti/scripts/ directory
2. Import the xml templates
3. In Data sources, add the 'DOCSIS - CMTS CM Count' data template for a device.
4. In Graph management, add the 'DOCSIS - CMTS CM Count' graph template and select the proper fields.


Attachments:
File comment: sample graph
cmts cm count.png
cmts cm count.png [ 15.23 KiB | Viewed 12249 times ]
File comment: script / template
cmts cm count 1.0.zip [19.64 KiB]
Downloaded 811 times

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Top
 Profile  
 
 Post subject: I have been looking for this...
PostPosted: Fri Jun 06, 2008 4:20 pm 
Offline

Joined: Mon Oct 18, 2004 9:11 am
Posts: 8
Fantastic script!!! You might want to change the description to C4 not C9 I assume. Anyway to have it show individual downstreams and upstreams with something like a node notation?

ItsNewToYou


Top
 Profile  
 
 Post subject: Re: I have been looking for this...
PostPosted: Fri Jun 06, 2008 4:39 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
ItsNewToYou wrote:
Anyway to have it show individual downstreams and upstreams with something like a node notation?

Umm possibly. I forget how the docsis mib had the data aggregated. But at any rate, the per-modem graphs would look something like this.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: Re: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Wed Dec 01, 2010 10:57 am 
Offline

Joined: Thu Nov 18, 2010 3:22 pm
Posts: 8
I'm running this against a UBR7100 (Cisco).

I've confirmed I am getting Interface stats off the device, gone through the install procedure but the cmts graph is showing as just NAN. If I try to go through device to look the graph doesn't appear in the list, but if I go to graphs it does.

snmpwalk verification.. (a piece of it)
SNMPv2-SMI::transmission.127.1.3.3.1.9.163841 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163842 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163843 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163844 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163845 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163846 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163847 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163848 = INTEGER: 6
SNMPv2-SMI::transmission.127.1.3.3.1.9.163849 = INTEGER: 6

command line run -
php ss_docsis_cmts_cm_count.php ss_docsis_cmts_cm_count device_ip public 1 161
No log handling enabled - turning on stderr logging
Cannot find module (qb.mib): At line 0 in (none)
Content-type: text/html
X-Powered-By: PHP/4.3.9

other:0 ranging:0 rangingAborted:0 rangingComplete:0 ipComplete:0 registrationComplete:0 accessDenied:0

Any clues?

Thanks,


Top
 Profile  
 
 Post subject: Re: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Wed Dec 01, 2010 12:36 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
The CMTS really have thousands of devices connected? Possibly the query is taking too long and is timing out. Try increasing the snmp timeout value.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: Re: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Wed Dec 01, 2010 4:56 pm 
Offline
Cacti User

Joined: Tue May 24, 2005 8:46 am
Posts: 101
Location: Rochester, New Hampshire
Maybe the OIDs have changed?

I have an external script to calculate the modem counts for a CMTS, and I have to input what type of CMTS (moto/cisco10k/cisco10k-oldcode/vxr).

It *only* shows registered though, which is all I am looking for.


The gap is a cacti-server slowdown. Still trying to track down why I get gaps overnight.


Attachments:
File comment: One of my bigger CMTSs.
total-modems.png
total-modems.png [ 14.19 KiB | Viewed 10136 times ]
Top
 Profile  
 
 Post subject: Re: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Thu Dec 02, 2010 12:30 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12118
Location: USA
wow, you really do have 17K+ modems on that device. How long does an snmpwalk take? You must increase the snmp timeout value a lot, because now I'm sure the script is timing out during the walk.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject: Re: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Thu Dec 02, 2010 12:58 pm 
Offline
Cacti User

Joined: Tue May 24, 2005 8:46 am
Posts: 101
Location: Rochester, New Hampshire
This is running the script manually:


Code:
[[email protected]]/usr/local/cacti/scripts/custom$ time ./modem_count.pl xxx.xxx.xxx.xxx public old10k
17807
real    0m0.371s
user    0m0.177s
sys     0m0.021s
[[email protected]]/usr/local/cacti/scripts/custom$


Top
 Profile  
 
 Post subject: Re: DOCSIS CMTS CM Count [v1.0 2007-12-18]
PostPosted: Fri Dec 03, 2010 8:48 am 
Offline
Cacti User

Joined: Tue May 24, 2005 8:46 am
Posts: 101
Location: Rochester, New Hampshire
I upgraded my spine from 0.8.7c to 0.8.7e and my gaps have appeared to stop, so the script wasn't the problem.

my SNMP timeouts are 500ms (for most devices, some of them are over slow links so I set them a little higher).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group