Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (ASCEND) SNMP Variable for Current Channels In Use?
>
>
> Hello all,
> Is there a single OID describing the maximum number of channels in use?
> The highwater mark is somewhat useful, but it requires a 'set' each time
> I read it. I was looking for something a little more dynamic.
>
> Kirk
>
Here is a script that I use to get the current number of sessions using the snmp
from a sun box to a max 4004 running 5.0ap48. Hope it helps...
----------------------------------
#!/usr/local/bin/perl
$num = `/usr/local/bin/snmpwalk -v 1 ascendbox1 public .1.3.6.1.4.1.529.12.2.1.3
|
grep -v \\"\\" | cut -d\\" -f2 | wc -l`;
$num =~ s/\D//g;
print "$num\n";
-----------------------------
Dave McFerren davem@solve.net
System Administrator
Net Solutions, Inc.
816-220-0303 fax 816-220-0333
-----------------------------
"It never hurts to help!" Eek the Cat
++ Ascend Users Mailing List ++
To unsubscribe: send unsubscribe to ascend-users-request@bungi.com
To get FAQ'd: <http://www.nealis.net/ascend/faq>