Solved

SNMP error No Such Object available on this agent at this OID

Posted on 2016-08-16
3
130 Views
Last Modified: 2016-08-18
Hello Experts,

I am newbie to SNMP and I currently working on project to implement SNMP to Embedded Linux. I setup 2 VM servers as Ubuntu Linux to prove if I can read/write value using snmpset and snmpget between SNMP Manager server ans SNMP Agent server. To my knowledge I learned some important basic of SNMP BTW I wish you may fulfill my question by sharing your idea. I did some basic command and seems working well.

What I want to do next is
1) Implement MIB file to servers (manager or agent)
2) Set some string value to some OID from manager to agent
3) Retrieve string value from OID on agent
4) Write some script to frequently set value to many OIDs (To let other SNMPmanager to retrieve value)

File VENUS-DSU-MIB2.txt in attachment will be use for this evaluation.

The first server name is snmp-manager installed snmp and snmp-mibs-downloader
The second server name is snmp-agent installed snmpd

1)Implement MIB file to servers
On snmp-manager server:
1.1)I put file VENUS-DSU-MIB.txt to path /usr/share/snmp/mibs/
1.2)I add line
mibs +VENUS-DSU-MIB

Open in new window

To file /etc/snmp/snmp.conf

1.3) I tried command
user1@snmp-manager:~$ snmpget -v2c -c public localhost VENUS-DSU-MIB::dsuSitename.0

Open in new window

I have got
Timeout: No Response from localhost.

Open in new window


*** Does this indicate OID name VENUS-DSU-MIB::dsuSitename exist but no set value?

1.4) I tried command
user1@snmp-manager:~$ snmptranslate -On  VENUS-DSU-MIB::dsuSitename

Open in new window

I have got
.1.3.6.1.4.1.77777.1.1.1

Open in new window


*** Does this indocate OID name VENUS-DSU-MIB::dsuSitename correct?

1.5) I tried command
user1@snmp-manager:~$ snmpset -v2c -c public localhost s .1.3.6.1.4.1.77777.1.1.1

Open in new window

I have got
s: Bad object type: .

Open in new window


*** I wish to success testing on snmp-manager first then continue on snmp-agent server.
I tried hard to read from net-snmp website but I don't know much about C example. If you have good example/tutorial to test MIB please let me know.

Thanks all.
VENUS-DSU-MIB2.txt
0
Comment
Question by:trazodone
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
the no response means either you did not start snmpd
ps -ef | grep snmpd.
try running snmpwalk first.

usually, public is a restricted community returnning minimum entries with the one you specify is unlikely to be one of them.

edit /etc/snmp/snmp.conf and add a read-only and a read/write community and that should fix your problem.
for access

Merely adding a mib does not  mean the snmpd have the reference,
you have to add the non-standard OID to snmp.conf
1
 

Author Comment

by:trazodone
Comment Utility
Thank you
0
 

Author Closing Comment

by:trazodone
Comment Utility
Thank you.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now