[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2016-08-16
3
Medium Priority
?
905 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 80

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

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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

656 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