Hello Daniel,

can you please check whether you're able to access the netSnmp mib at
all? You might do that with the following command (I presume you're
working at your HP-UX machine):

snmpwalk -c public localhost netSnmp

If there is no output at all or if you only get the message "End of MIB"
the reason for your problems with the perl module might be that you're
not allowed to access this mib (improper security settings in your
snmpd.conf file).

The net-snmp modules that implement the netSnmp mib should be included
in the net-snmp daemon by default (I just checked with the HP-UX
versions I build using the dist/nsb-package script that's part of the
net-snmp source tarball).

What I didn't find was that netSnmp.999 oid - neither in those mibs that
come with the net-snmp installation nor in my output walking the netSnmp
mib. Is there anyone who can say more about this oid?

Hope that helps a bit.

Johannes

Daniel Tang schrieb:
> Hi,
> 
> I'm trying to use the perl-module.pl reference to get a few more fields
> inserted for HP-UX.  I don't know much Perl, but I'm able to guess my
> way through Perl syntaxes and what not.  The weird thing is, the default
> perl-module.pl won't load:
> 
> ./sar-snmp.pl
> starting perl_module.pl
> perl_module.pl loaded ok
> Can't parse: .1.3.6.1.4.1.8072.999
> registering at
> started us as a subagent (NetSNMP::agent=HASH(0x40018258))
> couldn't parse  (reg name: myname)
> shutting down
> mainloop excercised
> 
> I've tried various aliases for that, like 1.3.6.1.4.1.8072.999 or
> netSnmp.999, both of which seem to work on RHEL, but fails to load on
> HP-UX. I'm pretty sure everything is properly configured:
> 
> ./configure --prefix=/usr/local/net-snmp \
> --with-libs=-lnm \
> --with-logfile=/var/adm/syslog/snmpd.log \
> --with-persistent-directory=/var/net-snmp \
> --with-default-snmp-version=1 \
> --with-mib-modules="host" \
> --enable-embedded-perl \
> --enable-shared
> 
> But I don't know what the problem is.  Not sure if any more information
> is needed, but I can provide if necessary.  Anyone have any suggestions?
> 
> 
> 
> -------------------------------------------------------
> 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-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

-- 
Johannes Schmidt-Fischer

InterFace AG                 phone  +49 (0)89 / 610 49 - 207
Leipziger Str. 16            fax    +49 (0)89 / 610 49 - 85
D-82008 Unterhaching         mobile +49 (0)171/ 787 76 01
http://www.InterFace-AG.com  mailto:[EMAIL PROTECTED]


-------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to