Real Time Ascend Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (ASCEND) Number of users



Hi,

> I have a simple question. How do I retrieve the number of conected users in
> my Max 6000 using a SNMP command. In Cisco 2511 I can use
> "finger @Cisco2511 | egrep -c ' tty '". I'm creating a litlle program to
> count number of active users.

I've attached a little script which should do exactly what you want.

just call it like

./ascendusers mymax.isp.com public

cu,
 gerhard

-- 
"We all know Linux is great...it does infinite loops in 5 seconds."
(Linus Torvalds about the superiority of Linux on the Amterdam
Linux Symposium)
#!/bin/sh
# $1 == IP or DNS name of Ascend MAX
# $2 == SNMP community string

snmpwalk $1 $2 .1.3.6.1.4.1.529.12.3.1.4 | grep -c "="