> Do you mean how the agent knows what OID is being asked for? no. > Or how the agent determines what the corresponding value is? no. i want to know how snmp agent communicate with hardware of network in agent and get value for OID. > > > How to find out what this value actually is, depends on both > the OID being asked for *and* the operating system that the > agent is running on. The agent will typically have a section > of code specially written for each OID that it supports, > "hardcoding" how to find out the appropriate value. > > In many cases, it may have several such sections of code - one > for Linux boxes, one for Sun kit, one for HP, one for Windows, > etc, etc, etc. > > In the case of ipForwarding, have a look at the file > 'agent/mibgroup/mibII/ip.c' and search for the string > "case IPFORWARDING". It appears eight times - twice > for each supported architecture. > > Dave --------- Farzad
------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ 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
