snmptranslate can't read a specefic object name

This is a discussion on snmptranslate can't read a specefic object name within the SNMP Users forums, part of the Networking and Network Related category; --===============0201792288== Content-Type: multipart/alternative; boundary="0-1302370530-1176170795=:59797" Content-Transfer-Encoding: 8bit --0-1302370530-1176170795=:59797 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2007
Reza Salehi
 
Posts: n/a
Default snmptranslate can't read a specefic object name

--===============0201792288==
Content-Type: multipart/alternative; boundary="0-1302370530-1176170795=:59797"
Content-Transfer-Encoding: 8bit

--0-1302370530-1176170795=:59797
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

I am having a strange behavior with snmptranslate.
I added some objects to my MIB file(It was working before) and ran snmptranslate to verified their OID.snmptranslate gave me errors about that specific MIB.I fixed that errors but I coudn't get snmptranslate working anymore with that specific MIB .
If I run the following command:

snmptranslate -v 2c -c TC localhost REZA-MIB::myObject

REZA-MIB:myObject: Unknown Object Identifier


if I change the first line in REZA-MIB.txt from
REZA-MIB DEFINITIONS ::BEGIN

to whatever name like :

REZA-MIB1 DEFINITIONS::BEGIN

then : snmptranslate -v 2c -c TC localhost REZA-MIB1::myObject ... works.

It seems snmptranslate doesn't like the name. I have to change the MIB name.
For making sure I did reset the computer,turned snmpd off ,.....but it didn't work.

Please help.

Thanks,
Reza







---------------------------------
8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime shortcut.
--0-1302370530-1176170795=:59797
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Hi,</DIV> <DIV>&nbsp;</DIV> <DIV>I am having a strange behavior&nbsp;with snmptranslate.</DIV> <DIV>I&nbsp;added some objects to my MIB file(It was working before)&nbsp;and ran <STRONG>snmptranslate</STRONG> to verified their OID.<STRONG>snmptranslate</STRONG> gave me errors about that specific MIB.I fixed that errors but I coudn't get snmptranslate working anymore with that specific MIB . </DIV> <DIV>If I run the following command:</DIV> <DIV>&nbsp;</DIV> <DIV><STRONG>snmptranslate -v 2c -c TC localhost REZA-MIB::myObject</STRONG></DIV> <DIV>&nbsp;</DIV> <DIV><STRONG>REZA-MIB:myObject: Unknown Object Identifier</STRONG></DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>if I change the first line in REZA-MIB.txt&nbsp;&nbsp; from </DIV> <DIV><STRONG>REZA-MIB&nbsp;&nbsp; DEFINITIONS ::BEGIN</STRONG></DIV> <DIV>&nbsp;</DIV> <DIV>to whatever name&nbsp; like&nbsp; : </DIV> <DIV>&nbsp;</DIV> <DIV><STRONG>REZA-MIB1&nbsp;&nbsp; DEFINITIONS::BEGIN</STRONG></DIV>
<DIV>&nbsp;</DIV> <DIV>then :&nbsp; <STRONG>snmptranslate&nbsp; -v 2c -c TC localhost REZA-MIB1::myObject</STRONG> ... works.</DIV> <DIV>&nbsp;</DIV> <DIV>It seems <STRONG>snmptranslate</STRONG> doesn't like the name. I have to change the MIB name.</DIV> <DIV>For making sure I did reset the computer,turned snmpd off ,.....but it didn't work.</DIV> <DIV>&nbsp;</DIV> <DIV>Please help.</DIV> <DIV>&nbsp;</DIV> <DIV>Thanks,</DIV> <DIV>Reza</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV><p>
<hr size=1>8:00? 8:25? 8:40? <a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news"> Find a flick</a> in no time<br> with the<a href="
http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news">Yahoo! Search movie showtime shortcut.</a>
--0-1302370530-1176170795=:59797--


--===============0201792288==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============0201792288==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0201792288==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0