Linux SoftwareProgrammingLibrariesLinux::net::dev 1.00

Linux::net::dev 1.00


Linux::net::dev is a Perl extension for parsing /proc/net/dev. SYNOPSIS use Linux::net::dev; my $devs = Linux::net::dev::i
Developer:   Vedran Sego
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   5K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Linux::net::dev is a Perl extension for parsing /proc/net/dev.

SYNOPSIS

use Linux::net::dev;
my $devs = Linux::net::dev::info();
print "Devices (bytes read):n";
foreach (keys %$devs) {
print " $_ ($devs->{$_}->{rbytes})n";
}

Linux::net::dev parses /proc/net/dev for network devices statistics. The package contains these functions:

info

This function returns hash reference. Keys are devices' ids and values are data hash references. Data hash has resource names for keys and their respective values as associated values.

dev

Takes device id as a single argument and returns that device's data.

devs

Takes list of device ids as arguments and returns array with those devices' data.
Recognized resources (data hash keys): rbytes, rcompressed, rdrop, rerrs, rfifo, rframe, rmulticast, rpackets, tbytes, tcarrier, tcolls, tcompressed, tdrop, terrs, tfifo, tpackets,

Resources begining with "r" are values for read data, and those begining with "t" are values for transmited data.

Package was built and tested on RedHat 7.2, kernel 2.4.7-10 and might not work on some other versions. Please report bugs along with your kernel version (uname -r or uname -a).

Requirements:
  • Perl
    tags net dev  linux net  data hash  values for  are values  begining with  and returns  proc net  

    Download Linux::net::dev 1.00


     http://mirrors.evolva.ro/CPAN/authors/id/V/VS/VSEGO/Linux-net-dev-1.00.tar.gz


    Authors software

    Linux::net::dev 1.00 (by Vedran Sego)
    Linux::net::dev is a Perl extension for parsing /proc/net/dev.

    SYNOPSIS

    use Linux::net::dev;
    my $devs = Linux::net::dev::i


    Similar software

    Linux::net::dev 1.00 (by Vedran Sego)
    Linux::net::dev is a Perl extension for parsing /proc/net/dev.

    SYNOPSIS

    use Linux::net::dev;
    my $devs = Linux::net::dev::i

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    strhash 0.6.0 (by Uwe Ohse)
    strhash is a hash table library.

    A strhash is an associative array, mapping keys to values

    hashit 0.9.4 (by Pleyades Crew)
    hashit is a generic hash library.

    hashit implements diverse collision handling methods.

    This function creates a hash table whic

    Audio::TagLib::MPEG::Header 1.42 (by Dongxu Ma)
    Audio::TagLib::MPEG::Header is an implementation of MP3 frame headers.

    SYNOPSIS

    use Audio::TagLib::MPEG::Header;

    my $i

    hash.c 2 (by David Crawshaw)
    hash.c is a C hash table with quadratic probing

    Verilog::Pli::Net 1.702 (by Wilson Snyder)
    Verilog::Pli::Net is a Verilog PLI tied net access hash.

    SYNOPSIS

    use Verilog::Pli::Net;

    $NET{"hier.signal"} = 1;
    pri

    Tree::BPTree 1.07 (by Andrew Sterling Hanenkamp)
    Tree::BPTree is a Perl implementation of B+ trees.

    SYNOPSIS

    use Tree::BPTree;

    # These arguments are actually the defau

    Text::BarGraph 1.0 (by Kirk Baucom)
    Text::BarGraph is a simple Perl module for generating ASCII bar graphs based on data in a hash, where the keys are labels and the val

    CGI::Ex::Conf 2.06 (by Paul Seamons)
    CGI::Ex::Conf is a Perl module with Conf Reader/Writer for many different data format types.

    SYNOPSIS

    use CGI::Ex::Conf qw(


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags