2009/6/4 geri noorzaman <noorzaman...@yahoo.com>: > and in the get_first_data_point and get_next_data_point, I set something > like this: > > int idx=1;
That should probably be long idx=1; for safety. > unsigned char idx2 [65535]; > > snmp_set_var_value(vptr,(u_char *)&idx,sizeof(idx)); You seem to be missing vptr = vptr->next_variable; > strcpy(idx2,"ABCDEFGH"); > snmp_set_var_value(vptr,idx1,strlen(idx1)); Dave ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users