[AGENT++] SNMP: Cannot create/set variable, Not Writable

amine mohamed med_amine007 at hotmail.fr
Mon Mar 11 17:51:45 CET 2013


i just found the cause of this error 
i have to do this  MibLeaf(oidXfsMIBRelease, READWRITE, new SnmpInt32()) instead of 
MibLeaf(oidXfsMIBRelease, READONLY, new SnmpInt32())

thanks

> From: med_amine007 at hotmail.fr
> To: agentpp at agentpp.org
> Date: Mon, 11 Mar 2013 16:39:35 +0000
> Subject: [AGENT++] SNMP: Cannot create/set variable, Not Writable
> 
> Hi,
> 
> when i try to set a variable i get this error :
> SNMP: Cannot create/set variable, Not Writable
> 
> even if i declared this variable in the mib ACCESS read and write and agentpro have generated 
> all the functions :
> 
>         virtual void       	get_request(Request*, int);
> 	virtual long       	get_state();
> 	virtual void       	set_state(long);
> 	virtual int        	set(const Vbx&);
> 	virtual int        	prepare_set_request(Request*, int&);
> 	virtual int        	commit_set_request(Request*, int);
> 	virtual void       	cleanup_set_request(Request*, int&);
> 	virtual int        	undo_set_request(Request*, int&);
> 	virtual boolean    	value_ok(const Vbx&);
> 
> but even with this i always can't set my variable
> 
>  		 	   		  
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
 		 	   		  


More information about the AGENTPP mailing list