Nice job, but very centric to older versions of TAOS running on 6000/4000 boxes. Here's a script that does the same thing, but will work on the 4k, 6k, and TNT. No edits should be needed, no matter how many wan ports you have on a box. #!/bin/sh SNMPGET="/usr/local/bin/snmpget -Oq $1 $2" SNMPWALK="/usr/local/bin/snmpwalk -Oq $1 $2" WANOID='enterprises.529.4.21.1.1' STATOID='enterprises.529.4.21.1.6' USEROID='enterprises.529.4.21.1.7' LINEOID='enterprises.529.4.21.1.13' $SNMPWALK $WANOID | awk '{ print $2}' | while read wan do stat=`$SNMPGET $STATOID.$wan | awk '{print $2}' | sed 's/"//g'` user=`$SNMPGET $USEROID.$wan | awk '{print $2}'` line=`$SNMPGET $LINEOID.$wan | awk '{print $2}'` if [ $stat != DS ] ; then printf "%s: Wan: %3d\tStat: %s\tLines: %3d\tUsers: %3d\n" \ $1 $wan $stat $line $user fi done -- Troy Settle Pulaski Networks http://www.psknet.com 540.994.4254 - 866.477.5638 > -----Original Message----- > From: owner-ascend-users at max.bungi.com > [mailto:owner-ascend-users at max.bungi.com] On Behalf Of Dennis Duval > Sent: Friday, May 31, 2002 3:58 PM > To: ascend-users at max.bungi.com > Subject: (ASCEND) Script to return status of T1 lines on Max > > > Attached is a shell script which polls a Max 4000 or 6000 > through SNMP and > returns the status of T1 lines and the number of users > connected. It is > designed to be used from the command line and has been tested > on RedHat > Linux 7.1 only. It requires the net-snmp package which can > be found at > http://net-snmp.sourceforge.net . > > I will be grateful for any feedback on this script. I'm not > real good at > shell programming, so I'm sure there are much better ways of > doing some of > the procedures. > > I have also written a version which works wonderfully with > the Big Brother > monitoring system and will post it soon, but would like to > see if there is > any feedback on this command line version first. I borrowed > some of the > code for this script from one called snmp written by Sean MacGuire > (author/maintainer of Big Brother: www.bb4.com ) > > Dennis Duval > > ++ Ascend Users Mailing List ++ To unsubscribe: send unsubscribe to ascend-users-request at bungi.com Archives: http://www.nexial.com/mailinglists/