--- snmp__if_err_.org Sat Apr 28 11:12:48 2007 +++ snmp__if_err_ Sat Apr 28 11:49:24 2007 @@ -94,6 +94,7 @@ my $port = $ENV{port} || 161; my $community = $ENV{community} || "public"; my $iface = $ENV{interface} || undef; +my $version = $ENV{version} || "snmpv2c"; my $response; @@ -131,7 +132,8 @@ my ($session, $error) = Net::SNMP->session( -hostname => $host, -community => $community, - -port => $port + -port => $port, + -version => $version ); if (!defined ($session))