File: synopsis-pass.pl

package info (click to toggle)
libsnmp-extension-passpersist-perl 0.06-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 168 kB
  • sloc: perl: 746; makefile: 3
file content (13 lines) | stat: -rwxr-xr-x 298 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!perl
use strict;
use SNMP::Extension::PassPersist;

# create the object
my $extsnmp = SNMP::Extension::PassPersist->new;

# add a few OID entries
$extsnmp->add_oid_entry(".1.2.42.1", "integer", 42);
$extsnmp->add_oid_entry(".1.2.42.2", "string" , "the answer");

# run the program
$extsnmp->run;