Re: get api perl and snmpget don't work ?
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Quoting Thomas Anders <[email protected]>: Hi, I use a basic subroutine get like: -------------------------------------- use SNMP $sess = new SNMP::Session(DestHost => "192.5.60.120",Community => "public"); $val = $sess->get('.1.3.4.1.55.1.9'); print "result $val\n"; ------------------------------------------ In the subroutine get I try simple or double quote and begin OID with point or not anywhere anywhere I have the same error with : snmpget -c public 192.5.60.120 .13.4.1.55.1.9 But with the snmpget of HP Openview (with the same syntax) it's work perfectly. The OID (.1.3.4.1.55.1.9) it's a specif OID of a new mib that I put in C:/user/share/snmp/mibs/my_mib.txt like it's say in the help. Also I try to configure snmp.conf like mibdirs C:/user/share/snmp/mibs mibfile C:/user/share/snmp/mibs/my_mib.txt .... I repeat the error when I put "doDebugging 1" in snmp.conf ------------------------------------------------------------------- snmp_sess_open:unable to connect with remote engine timeout(-24) ? snmp_api : unable to determine remote engine ID can't call methode "get" on an undefined value ------------------------------------------------------------------ I forget some configuration or make some mistake ? Thanks for your help. Stéphane, > [email protected] wrote: > > I have ActivePerl5.8 and net-snmp-5.2.2.1.win32 and I can't arrive to work > the > > subroutine get and command snmpget to view a value of specific Mib on > > remote-host? > > > > With the "doDebugging 1" in snmp.conf, I have (with both subroutine get and > > snmpget) this error: > > > > ------------------------------------------------------------------- > > snmp_sess_open:unable to connect with remote engine timeout(-24) ? > > snmp_api : unable to determine remote engine ID > > can't call methode "get" on an undefined value > > ------------------------------------------------------ > > You should probably tell the list how *exactly* you do the GET. > > > +Thomas > > -- > Thomas Anders (thomas.anders at blue-cable.de) > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users