[mrtg] Re: Total switch bandwidth
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Thu Oct 7 18:09:53 MEST 1999
> I'll stick with the 2:public@ + 3:public@ for now... it's taking a
> little longer for mrtg to run but semes to be working at least.
>
> Thanks for your help;
>
Perhaps useful:
You could snmpwalk the interfaces table and add the numbers. This way,
mrtg only has to call an external script which in itself only does two
queries. Something like (as a basis only):
---cut here---
snmpwalk switch public .1.3.6.1.2.1.2.2.1.10 | awk '{SUM += $3};END{printf("%.0f\n",SUM)}'
snmpwalk switch public .1.3.6.1.2.1.2.2.1.16 | awk '{SUM += $3};END{printf("%.0f\n",SUM)}'
echo ""
echo ""
---cut here---
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list