Thanks David,
   
  I used that switch to run snmtranslate(Please see the result below). It seems 
snmptranslate adds these modules from somewhere(???).Please mention some of 
these objects even not exist in REZA-MIB anymore.I removed them.(like 
rezaTemperatureAlarm) but still snmptranslate is showing them.
  I also removed .index. I am using net-snmp 5.4.
   
  Anu idea what is going on?
   
  Thanks in advance,
   
   
  >snmptranslate -Dparse-mibs -On REZA-MIB::rezaTemperature
  .
  .
  .
  .
   
  parse-mibs:   Processing import: DisplayString
  parse-mibs:   Processing import: RowStatus
  parse-mibs:   Processing import: StorageType
  parse-mibs: Parsing MIB: 13 REZA-MIB
  parse-mibs: Parsing MIB: 31 NET-SNMP-EXAMPLES-MIB
  parse-mibs: Module SNMP-FRAMEWORK-MIB already loaded
  parse-mibs: Module NET-SNMP-MIB already loaded
  parse-mibs: Module SNMPv2-TC already loaded
  parse-mibs: Module INET-ADDRESS-MIB already loaded
  parse-mibs: #### adding Module 31 'SnmpAdminString' 48
  parse-mibs: #### adding Module 31 'netSnmp' 35
  parse-mibs: #### adding Module 31 'RowStatus' 10
  parse-mibs: #### adding Module 31 'StorageType' 10
  parse-mibs: #### adding Module 31 'InetAddressType' 22
  parse-mibs: #### adding Module 31 'InetAddress' 22
  parse-mibs: Processing IMPORTS for module 31 NET-SNMP-EXAMPLES-MIB
  parse-mibs:   Processing import: SnmpAdminString
  parse-mibs:   Processing import: netSnmp
  parse-mibs:   Processing import: RowStatus
  parse-mibs:   Processing import: StorageType
  parse-mibs:   Processing import: InetAddressType
  parse-mibs:   Processing import: InetAddress
  parse-mibs: Module SNMPv2-SMI already loaded
  parse-mibs: #### adding Module 13 'netSnmpExamples' 31
  parse-mibs: #### adding Module 13 'enterprises' 45
  parse-mibs: #### adding Module 13 'REZA' 1864397685
  parse-mibs: #### adding Module 13 'enterprises' 673215337
  parse-mibs: #### adding Module 13 'rezaMIBObjects' 1718558832
  parse-mibs: #### adding Module 13 'REZA' 1885692782
  parse-mibs: #### adding Module 13 'rezaMIBConformance' 2003792416
  parse-mibs: #### adding Module 13 'REZA' 538976288
  parse-mibs: #### adding Module 13 'rezaNotification' 538976288
  parse-mibs: #### adding Module 13 'REZA' 1701336096
  parse-mibs: #### adding Module 13 'rezaNotificationObject' 1635013495
  parse-mibs: #### adding Module 13 'rezaNotification' 1528841044
  parse-mibs: #### adding Module 13 'rezaNotificationPrefix' 1564030773
  parse-mibs: #### adding Module 13 'rezaNotification' 1701996917
  parse-mibs: #### adding Module 13 'rezaAgentModules' 1948284001
  parse-mibs: #### adding Module 13 'rezaMIBObjects' 538976288
  parse-mibs: #### adding Module 13 'rezaAgentModuleObject' 538976288
  parse-mibs: #### adding Module 13 'rezaAgentModules' 1397048352
  parse-mibs: #### adding Module 13 'rezaTemperature' 1313818964
  parse-mibs: #### adding Module 13 'rezaAgentModules' 543519605
  parse-mibs: #### adding Module 13 'rezaHumidity' 1965060965
  parse-mibs: #### adding Module 13 'rezaAgentModules' 1768453920
  parse-mibs: #### adding Module 13 'rezaHumidityAlarm' 1969451625
  parse-mibs: #### adding Module 13 'rezaNotificationObject' 1936024430
  parse-mibs: #### adding Module 13 'rezaTemperatureAlarm' 538976288
  parse-mibs: #### adding Module 13 'rezaNotifocationObject' 538976288
  parse-mibs: #### adding Module 13 'rezaTemperatureNotification' 544367976
  parse-mibs: #### adding Module 13 'rezaTemperatureAlarm' 544437347
  parse-mibs: #### adding Module 13 'rezaNotificationPrefix' 544434536
  REZA-MIB::rezaTemperature: Unknown Object Identifier

   
   
   
   
  

Note: forwarded message attached.

       
---------------------------------
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.
--- Begin Message ---
On 10/04/07, Reza Salehi <[EMAIL PROTECTED]> wrote:
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....
then :  snmptranslate  -v 2c -c TC localhost REZA-MIB1::myObject ... works.

It seems snmptranslate doesn't like the name.

That sounds suspiciously as if the wrong MIB file is being read in
(or it can't find the MIB file at all).

Try running
    snmptranslate -Dparse-mibs .... REZA-MIB::myObject

and have a look through the debug output for mention of REZA-MIB.

It might also be worth deleting the MIB .index files (either the MIB
directories themselves, or under /var/net-snmp depending on version),
in case one of those is misleading the parsing code.

Dave

--- End Message ---
-------------------------------------------------------------------------
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to