Also check this: http://humdi.net/vnstat/ i dont know if its currently
working on openbsd, but theres some patches, making it work shoulnt be
difficult, and this surely is what youre looking for, heres what the output
looks like:

Database updated: Wed Sep 17 16:57:02 2008

        eth0

           received:        5813558 MB (87.5%)
        transmitted:         834246 MB (12.5%)
              total:        6647805 MB

                        rx     |     tx     |  total
        -----------------------+------------+-----------
        yesterday     26487 MB |    1478 MB |   27965 MB
            today     22870 MB |    1007 MB |   23878 MB
        -----------------------+------------+-----------
        estimated     32382 MB |    1425 MB |   33807 MB 

-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Joe S
Enviada: quarta-feira, 17 de Setembro de 2008 16:20
Para: [email protected]
Assunto: ascii bandwidth report

Now that my ISP is imposing bandwidth caps, I need to start measuring my
usage. Graphs are nice, but I've found that graphs are not really that
useful to me. I need something to report what my cummalative usage is in a
30 day period. I'd like the data in some sort of ascii format, but html is
ok too. I think I need something that can poll snmp stats from fxp0, which
is attached to my cable modem. Something small would be preferred. I'm not
interested in cacti or other large installations. My needs are very
modest...I hope.

After googling for a little bit, I only found 2 apps that might work on my
OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package
available for either though. The output of "vmnet -m" is what I'm looking
for, so I'll try that first. I was happy to see that rtg is now in
current-ports, so I should be able to use it once I get my preordered CDs.

If you have any suggestions, or you have a perl/python script that you would
like to share, it would be appreciated.

Reply via email to