http://qs321.pair.com?node_id=1087042

MonkeyManChfKiller has asked for the wisdom of the Perl Monks concerning the following question:

Well i tried Copying http://www.perlmonks.org/?node_id=722499 for my needs and no results. Im trying to measure the incoming traffic of a 40Gbit Interface every few seconds or so, (preferable a amount of seconds i can set) I have Not been able to succeed with this, so anyone who knows about SNMP please help me create a little script to do this, weather it be with SNMPWALK or any other program.

Replies are listed 'Best First'.
Re: Net::SNMP Calculating traffic.
by NetWallah (Canon) on May 22, 2014 at 04:58 UTC
    The script part is relatively simple.

    The more difficult part is to find the OID for the item you are trying to meter.

    First - find out the relavant part of the MIB from the manufacturer of your hardware/firmware.

    Use a simple snmp "get" command to make sure you can get that value, and that it makes sense.

    Then convert that request into a script that runs periodically.

            What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
                  -Larry Wall, 1992

Re: Net::SNMP Calculating traffic.
by karlgoethebier (Abbot) on May 22, 2014 at 09:16 UTC
    "Im trying to measure the incoming traffic..."

    That's about measuring network throughput isn't it?

    Perhaps you should consider using bing instead of SNMP?

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»