Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Net::SNMP Calculating traffic.

by MonkeyManChfKiller (Novice)
on May 22, 2014 at 01:05 UTC ( #1087042=perlquestion: print w/replies, xml ) Need Help??

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 (Monsignor) 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»

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1087042]
Approved by chacham
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2020-08-15 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (79 votes). Check out past polls.

    Notices?