On 13 April 2011 02:05, liuying <[email protected]> wrote: > I have a problem about snmpset,when I set only one variable,all the > values of variables are changed .
That's because you only have one underlying variable (example_int). All three scalar MIB objects are reporting this same value. When it changes, then the value reported changes > I want to change the value of only one variable,what can I do to > solve the problem? You need three separate values - one for each scalar object. And you'll also need three separate write routines - again, one for each object. But unless you specifically need to use the old v4 UCD style of code, I would strongly suggest you investigate the current handler-based approach. There are several helpers that could assist with much of the donkey work. Dave ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
