SNMP::PersistSNMP::Persist is a Perl module for the SNMP pass_persist threaded backend. | |
Download |
SNMP::Persist Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Anna Wiejak
- Publisher web site:
- http://search.cpan.org/~anias/SNMP-Persist-0.05/lib/SNMP/Persist.pm
SNMP::Persist Tags
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}=; #set game index data pair $subtree{"2." . $index}=; #set game name data pair $subtree{"3." . $index}=; #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 Requirements: · Perl
SNMP::Persist Related Software