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
------------------------------------------------------------------------------
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