File: dump-session.t

package info (click to toggle)
net-snmp 5.9.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,720 kB
  • sloc: ansic: 282,878; perl: 17,704; sh: 12,151; makefile: 2,711; python: 734; xml: 663; pascal: 62; sql: 47
file content (26 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!./perl

use strict;
use warnings;
use Test;

BEGIN {
    eval "use Cwd qw(abs_path)";
    plan tests => 1;
}

use SNMP;
use Data::Dumper;
require "t/startagent.pl";
use vars qw($agent_host $agent_port $comm);

# See also https://sourceforge.net/p/net-snmp/bugs/2488/

my $s = new SNMP::Session(DestHost=>$agent_host, Version=>1, Community=>$comm,
                          RemotePort=>$agent_port);

print Dumper($s->get('anything'));

ok(1);

snmptest_cleanup();