what do you mean by GETs by variable names on an 'snmptrap' command? Are you referring to the values sent as varbinds in the trap?
Phil > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Pople > Sent: Thursday, April 03, 2008 5:08 PM > To: snmp4j@agentpp.org > Subject: [SNMP4J] Querying by variable name vs. numeric OID > > I am aiming to provide a very simple web control interface to > a device, using SNMP4J behind the scenes. > I have a prototype running which essentially uses the > SNMPRequest class and I can sucessfully issue GETs and SETs > to the device. > > Now, if I use 'snmptrap' from the command line, I can issue > GETs by variable name (e.g sysName.0) but with SNMPRequest, I > have to use the numeric OID (e.g. > 1.3.6.1.2.1.1.5.0) - the label name fails a validation check > as non-numeric. > > I am sure there is an easy way to do this with SNMP4J but it > escapes me. Can anyone help or even provide an example? > > Regards > > Jeff > > > > > ______________________________________________________________ > ______________________ > You rock. That's why Blockbuster's offering you one month of > Blockbuster Total Access, No Cost. > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > _______________________________________________ > SNMP4J mailing list > SNMP4J@agentpp.org > http://lists.agentpp.org/mailman/listinfo/snmp4j > _______________________________________________ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j