?
Solved

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

Posted on 2016-08-16
3
Medium Priority
?
1,092 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 81

Accepted Solution

by:
arnold earned 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

850 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