#!/bin/bash
  
IFIN=`snmpget -v 2c -c publicERE 192.168.0.1 .1.3.6.1.2.1.2.2.1.10.23 | cut -d" " -f4`
IFOUT=`snmpget -v 2c -c publicERE 192.168.0.1 .1.3.6.1.2.1.2.2.1.16.23 | cut -d" " -f4`
HORA=`date +"%s"`

rrdtool update /home/herlon/Documents/rrd/database.rrd $HORA:$IFIN:$IFOUT

