[SNMP4J] How to do SET operations

Tobby Davasia tobby at poornam.com
Wed Feb 16 17:19:47 CET 2005


Hello Frank,

	Yes, the error was with the community string. I got it fixed Thank you.

Best regards
 
Tobby

On Friday 11 February 2005 22:55, Frank Fock wrote:
> Hello Tobby,
>
> In your case, you should first check whether the "public" community
> is allowed to write the specified object instance (which seems not to
> be the case).
>
> In general, SET operations are distinguished from GET operations
> only by their PDU type. That's probably why you could not identify
> any SET operation specific code in SnmpRequest.java.
>
> Best regards,
> Frank
>
> Tobby Davasia wrote:
> >Hello,
> > I am new to SNMP and snmp4j, Could anyone tell me how to do set
> >operations, I tried understanding the code in SnmpRequest.java, but
> >could not find the part where the SET operations are done (it only has
> >GET operations and TRAPS mentioed in the code).
> >I tried executing the SnmpRequest
> >SnmpRequest -c public -v 1 -p SET udp:localhost/161
> > 1.3.6.1.2.1.1.5.0={s}SNMP4J" but I get errorStatus=2, which is "No such
> > name"
> >I want to create an API that does a few set operations on a
> >switchport, so wanted to know how the set operations are done.
> >
> >Thanx in advance
> >Tobby
> >_______________________________________________
> >SNMP4J mailing list
> >SNMP4J at lists.agentpp.org
> >http://lists.agentpp.org/mailman/listinfo/snmp4j
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at lists.agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
Tobby Davasia Kollemmalil
Lead Developer
Poornam Info Vision Pvt. Ltd.
PB NO:5406,
C S E Z  P.O.,
Cochin,Kerala, 
India - 682 037
Tel - +91-484-2427971, 2428918
Fax - +91-484- 2429331



More information about the SNMP4J mailing list