snmpget gives No Such Object available on this agent at this OID

Boula Lemonia <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello!

I am new to net-snmp and I started by reading the tutorial I found in

http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module#A_simple_scalar_attached_to_a_variable

According to this, the default handler allows the integer to be read 
with a get request, so I didn't change anything and added the 
scalar_int.c/.h to the agent/mibgroup folder. Next, I  executed 
./configure --with-mib-modules="scalar_int". The result was:

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    1 2c 3
  Building for:               linux
  Net-SNMP Version:           5.6
  Network transport support:  Callback Unix Alias TCP UDP IPv4Base 
SocketBase TCPBase UDPIPv4Base UDPBase
  SNMPv3 Security Modules:     usm
  Agent MIB code:             scalar_int default_modules =>  snmpv3mibs 
mibII ucd_snmp notification notification-log-mib target agent_mibs 
agentx disman/event disman/schedule utilities host
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      enabled
  SNMP Perl modules:          building -- embeddable
  SNMP Python modules:        disabled
  Crypto support from:        crypto
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  WARNING:  This platform does not yet support hrSWInstalledTable rewrites


---------------------------------------------------------

Then, I executed "make" and "make install" as a root and it seems to 
execute without problems. Then, I restarted snmpd. The snmpd.conf file 
is the following:

rocommunity  public localhost .1.3.6
#rocommunity  public localhost .1
rwcommunity  private localhost .1

com2sec readonly  default         public
com2sec readwrite default         private


When I tried to test the agent, I got:

lenia@lenia-desktop:~/Utilities/net-snmp-5.6$ snmptranslate 
.1.3.6.1.4.1.8072.2.1.1.0
NET-SNMP-EXAMPLES-MIB::netSnmpExampleInteger.0

and

lenia@lenia-desktop:~/Utilities/net-snmp-5.6$ snmpget -v2c -c public 
localhost .1.3.6.1.4.1.8072.2.1.1.0
NET-SNMP-EXAMPLES-MIB::netSnmpExampleInteger.0 = No Such Object 
available on this agent at this OID

Could you please give me a hint why this is happening? I thought that I 
could overcome this problem by giving "public" access to the .1.3.6 
subtree...

Thanks a lot,
Lenia.

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.