Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: (ASCEND) Channel usage



Mauricio,

hope this helps.

my mrtg file looks like this :
WorkDir: /home/unixuser/mrtg/mrtg-2.5.2
Target[max1]: `/home/unixuser/mrtg/getsessiondata_max1`
Title[max1]: Channel Utilization for max_1
MaxBytes[max1]: 100
Options[max1]: gauge, growright, nopercent
PageTop[max1]: <H1>Channel Utilization for max_1 </H1>
YLegend[max1]: Channels
ShortLegend[max1]: Ch
Legend1[max1]: Channel Utlization for max_1
Legend2[max1]: Channel Utlization for max_1
LegendI[max1]: &nbsp;Ch:
LegendO[max1]: &nbsp;Ch:

which calls the getsessiondata_max1 perl script
(which is a modified version of a script that someone from this user-list
posted)
This script gets the number of active sessions, which should be ~equal to your #
of modems in use
if you have NO ISDN sessions.(replace xxx.xxx.xxx.xxx with the IP address of
your MAX)
Also modify the OID to get the exact data you want, you may want to get ascend
MIB from their
web site and use it instead of OIDs:

#!/usr/local/bin/perl
 
$num = `/usr/local/bin/snmpwalk -v 1 xxx.xxx.xxx.xxx public
.1.3.6.1.4.1.529.12.2.1.3 | grep -v \\"\\" | cut -d\\" -f2 | wc -l`;
$strg2 = `snmpget -v 1 xxx.xxx.xxx.xxx public system.sysUpTime.0`;
$num =~ s/\D//g;
print "$num\n";
print "$num\n";
($one,$two,$three,$four,$five) = split(/ /,$strg2);
$four =~ s/\D//g;
print "$four\n";
print "max1\n";
 
Sincerely,
Nelson Llabona
	-----Original Message-----
	...

	        Has anyone tried to use MRTG or any other software to gather the
	channel usage on a MAX 4060?

	        I have it with a E1/PRI, i.e. 30 modems, and I need to get the
	number of channels (modems) used within the day, like MRTG does with
	bandwidth usage.


++ Ascend Users Mailing List ++
To unsubscribe:	send unsubscribe to ascend-users-request@bungi.com
To get FAQ'd:	<http://www.nealis.net/ascend/faq>