Hi Mark.

Mark Gonzalez wrote:
I am getting this error when I try to run a script. Does anyone know how this can be resolved?

I didn't look at the sample code before replying last time. As soon as you mentioned Net::SNMP, I assumed you were using the wrong package (thanks Thomas)..

I think the older SNMP Perl module (from UCD-SNMP 3.x) used SNMP::Util. That produces an error in the current Perl module. Try removing the 'use SNMP::Util_env;' and 'use SNMP::Util;' statements and add a 'use SNMP;' and the error should go away. I assume the code you provided is only part of the script, as it doesn't seem to do anything with the Perl module other than initialize it.

Alex

I have Net::SNMP installed and am using net-snmp-5.2.1.2. Sample script below.

#!/usr/bin/perl

# DOCSIS-SNR-snmp Modified for www

# 06/1/2005
.
.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to