2011/2/11 Dave Shield <[email protected]>: > Manjit <[email protected]> wrote: >> I think you can do a snmp set to change this value > > No, you can't. > > The ifOperStatus object reports what the operational status of this interface > currently is. It is defined as "read-only". It cannot be changed directly > by the network administrator. > > The ifAdminStatus object reports what the operational status of this interface > *ought* to be. This is defined as "read-write" and you can (in > principle) SET it. > > But you can't issue a SET on ifOperStatus. > > > Dong-Yuan Shih wrote: >> gre tunnel interface is always down of ifOperStatus >> another daemon handle heathy check and save alive or dead to file >> i want to change this value ifOperStatus, from my file > > You'll need to look at the code used to detect the status of the > interface. You don't say what versionof the agent you are using, > or on what operating system, but this code will most probably > be somewhere under agent/mibgroup/if-mib/data_access > (or possibly in agent/mibgroup/mibII/interface.c) > Have a look to see which code files have corresponding .o > files, and that should indicate which code is being used here. > > You may need to enable (or even add) some debugging code > to tell exactly what's going on, and why the ifOperStatus is > not being detected correctly. > > > Dave > thanks for all advice
the version is net-snmp-5.2.6.rc2 i think because interface is gre tunnel,so ifOperStatus is always down i trace the coede agent/mibgroup/if-mib/data_access first, i grep OperStatus and oper_status in agent/mibgroup/if-mib/data_access and agent/mibgroup/mibII/ find all match function and print message to log, re-compiler replace snmpd then my clinet run snmpwalk -v 2c -c public server no function math only hit netsnmp_access_interface_ioctl_flags_get() when snmpd start i did not find the function to change the value thanks for any advice Dong-Yuan ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
