Thanks, that did it! You might want to make the same change (snmp_request->scan_snmp_string) to don't_scan_printers.nasl (id 11933). It's not working because of that error on our network. The desc never gets populated in the JETDIRECT snmp check at the top. >From what I've seen here, if you request oid 1.3.6.1.2.1.1.1.0 directly, you will speed up the scan (scan_snmp_string reads in a lot of data) and should be pretty accurate (at least my printers all seem to respond to that). > -----Original Message----- > From: plugins-writers-bounces@private > [mailto:plugins-writers-bounces@private] On Behalf Of > Renaud Deraison > Sent: Wednesday, September 27, 2006 6:36 AM > To: Nessus Plugin Writers Mailing List > Subject: Re: [Plugins-writers] snmp communication > > > On Sep 27, 2006, at 9:24 AM, Douglas Nordwall wrote: > > > thanks! that did the trick on the display > > > > However, that really wasn't the core question :) I'm interested to > > know why I can snmpget with the proper community name and get back > > that oid, yet nessus doesn't. It seems a little off, as > > snmpwalk_portscan.nasl does actually work and get the > community name. > > First, your original code contains : > > desc = snmp_request(socket:soc, community:community, oid:".1.3"); > > [oid should be set to "1.3", not ".1.3"] > > However, it seems what you really want is to iterate through > the whole space under 1.3.x so you really want to do : > > desc = scan_snmp_string (socket:soc, community:community, > oid:"1.3"); > > > > > -- Renaud > _______________________________________________ > Plugins-writers mailing list > Plugins-writers@private > http://mail.nessus.org/mailman/listinfo/plugins-writers > _______________________________________________ Plugins-writers mailing list Plugins-writers@private http://mail.nessus.org/mailman/listinfo/plugins-writers
This archive was generated by hypermail 2.1.3 : Wed Sep 27 2006 - 06:49:18 PDT