title: Net-SNMP adding .mib files
body: <p>I got this to work years ago on a different system but I can't get it working now.  I'm using Net-SNMP 5.5 x64 on Windows 7 x64 (all the later versions crash) and I'm trying to load the .mib files for Xerox Printers (<a href="http://origin-download.support.xerox.com/pub/drivers/MIBs/" rel="nofollow">http://origin-download.support.xerox.com/pub/drivers/MIBs/</a>) into it so I can do calls like</p>
  
  <pre><code>   snmptranslate -m ALL -On XEROX-SERVICE-MONITORING-MIB::xcmSvcMonServiceStateDetail.27
  </code></pre>
  
  <p>I tried to put the files in the asn folder into my share/snmp/mibs folder, however when I do this I big mess of errors and it doesn't do the lookup</p>
  
  <pre><code>Desktop&gt;snmptranslate -m +XEROX-COMMON-MIB snmptranslate -m ALL -On XEROX-SERVICE-MONITORING-MIB::xcmSvcMonServiceStateDetail.27
  Cannot find module (IANA-CHARSET-MIB): At line 23 inC:/usr/share/snmp/mibs/xerox.one
  Cannot find module (Job-Monitoring-MIB): At line 32 in C:/usr/share/snmp/mibs/xerox.one
  Cannot find module (Printer-MIB): At line 41 in C:/usr/share/snmp/mibs/xerox.one
  Did not find 'IANACharset' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobEntry' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobState' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobStateReasons1' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmNumberOfInterveningJobs' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobKOctetsPerCopyRequested' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobKOctetsProcessed' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobImpressionsPerCopyRequested' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'jmJobImpressionsCompleted' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'PresentOnOff' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'prtGeneralEntry' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'prtInputEntry' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'prtOutputEntry' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'prtChannelEntry' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'prtInterpreterEntry' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Did not find 'prtInterpreterIndex' in module #-1 (C:/usr/share/snmp/mibs/xerox.one)
  Unlinked OID in XEROX-COMMON-MIB: mib-2 ::= { mgmt 1 }
  Undefined identifier: mgmt near line 38532 of C:/usr/share/snmp/mibs/xerox.one 
  snmptranslate:  (Sub-id not found: (top) -&gt; snmptranslate) 
  </code></pre>
  
  <p>Any help would appreciated.  </p>