Solved

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

Posted on 2016-08-16
3
193 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 77

Accepted Solution

by:
arnold earned 500 total points
ID: 41760904
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
ID: 41761686
Thank you
0
 

Author Closing Comment

by:trazodone
ID: 41761687
Thank you.
0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

920 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

12 Experts available now in Live!

Get 1:1 Help Now