Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    SNMP::Persist 0.05

    Download button

    No screenshots available
    Downloads: 543  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Anna Wiejak | More programs
    Perl Artistic License / FREE
    April 19th, 2007, 22:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    SNMP::Persist description

    SNMP::Persist is a Perl module for the SNMP pass_persist threaded backend.

    SNMP::Persist is a Perl module for the SNMP pass_persist threaded backend.

    SYNOPSIS

    use SNMP::Persist qw(&define_oid &start_persister &define_subtree);
    use strict;
    use warnings;


    #define base oid to host the subtree
    define_oid(".1.3.6.1.4.1.2021.248");

    #start the thread serving answers
    start_persister();

    #set first application number

    #loop forever to update the values
    while(1) {

    my %subtree;
    my $gameName;
    my $index=1; #set first application number

    foreach $gameName ("game1", "game2") { #for each application
    $subtree{"1." . $index}=["INTEGER",$index]; #set game index data pair
    $subtree{"2." . $index}=["STRING",$gameName]; #set game name data pair
    $subtree{"3." . $index}=["Counter32", 344.2 ]; #set total memory data pair
    $index++; #next application
    }

    #new values have arrived - notify the subtree controller
    define_subtree(%subtree);

    #don't update for next 5 minutes
    sleep(300);
    }

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    SNMP backend | pass_persist backend | Perl module | SNMP::Persist | SNMP | pass_persist

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM