Hi All,
I want to get the ENUM value by giving the OBJECT-TYPE.
for e.g :
when I pass OBJECT-TYPE to snmptanslate, I get the whole data.
Instead I want to just get the value of SYNTAX.
# /usr/local/bin/snmptranslate -Td -IR ipNetToMediaType
IP-MIB::ipNetToMediaType
ipNetToMediaType OBJECT-TYPE
-- FROM IP-MIB
SYNTAX INTEGER {other(1), invalid(2), dynamic(3), static(4)}
MAX-ACCESS read-create
STATUS current
DESCRIPTION "The type of mapping.
Setting this object to the value invalid(2) has the effect
of invalidating the corresponding entry in the
ipNetToMediaTable. That is, it effectively disassociates
the interface identified with said entry from the mapping
identified with said entry. It is an implementation-
specific matter as to whether the agent removes an
invalidated entry from the table. Accordingly, management
stations must be prepared to receive tabular information
from agents that corresponds to entries not currently in
use. Proper interpretation of such entries requires
examination of the relevant ipNetToMediaType object."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) ip(4)
ipNetToMediaTable(22) ipNetToMediaEntry(1) 4 }
I am trying to find out where snmptranslate.c is receiving this value.
Can anyone help me to find the API or module which retrieves this value
for MIB.
Regards
Ayush
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders