Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Net::SNMP Calculating traffic.

by MonkeyManChfKiller (Novice)
on May 22, 2014 at 01:05 UTC ( [id://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 (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»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found