I do this way on 5350 script:
str=`rsh -l sa 192.168.1.1 sh contro e1 3/0 times 1-31` countIDLE=`echo "$str" | grep -c idle` countBUSY=`echo "$str" | grep -c busy` countIDLE=`expr 32 - $countIDLE` countBUSY=`expr $countBUSY - 1` echo -e "$countIDLE\n$countBUSY\nUptimeHere\nPort 3/0 E1 3/0" > /var/www/html/traffic/5350/rsh/e1-0 mrtg cfg: Target[5350-e1-0]: `cat /var/www/html/traffic/5350/rsh/e1-0` PageTop[5350-e1-0]: <H1>Traffic e1 port 0</H1> YTics[5350-e1-0]:10 YScale[5350-e1-0]:1.5 MaxBytes[5350-e1-0]: 30 Title[5350-e1-0]: 5350 Port 3/0 Options[5350-e1-0]: absolute,gauge,growright,integer ShortLegend[5350-e1-0]:Calls LegendI[5350-e1-0]: Busy: LegendO[5350-e1-0]: Conn: YLegend[5350-e1-0]: Active channels Aiysha Ajmal wrote: > > Hello, > > > > Can you provide a script for monitoring E1 controllers on Cisco AS 5400 > media gateway. I am not expert in MRTG configurations so I need a complete > script that can monitor E1s plugged on each port of a single slot. > > > > > > Thanks & Regards, > > - Aiysha > > > > -- > Unsubscribe mailto:[EMAIL PROTECTED] > Archive http://lists.ee.ethz.ch/mrtg > FAQ http://faq.mrtg.org Homepage http://www.mrtg.org > WebAdmin http://lists.ee.ethz.ch/lsg2.cgi > -- Attached file removed by Ecartis and put at URL below -- -- Type: text/x-vcard -- Size: 236 bytes -- URL : http://lists.ee.ethz.ch/p/06-sa.vcf -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
