

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.net-snmp.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AFAQ%3ACoding_04</id>
		<title>Template:FAQ:Coding 04 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.net-snmp.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AFAQ%3ACoding_04"/>
		<link rel="alternate" type="text/html" href="http://www.net-snmp.org/wiki/index.php?title=Template:FAQ:Coding_04&amp;action=history"/>
		<updated>2026-05-05T13:10:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://www.net-snmp.org/wiki/index.php?title=Template:FAQ:Coding_04&amp;diff=1695&amp;oldid=prev</id>
		<title>Dts12 at 10:59, 23 October 2006</title>
		<link rel="alternate" type="text/html" href="http://www.net-snmp.org/wiki/index.php?title=Template:FAQ:Coding_04&amp;diff=1695&amp;oldid=prev"/>
				<updated>2006-10-23T10:59:37Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This probably means that you gave it the name of a MIB file (or&lt;br /&gt;
module), rather than the name of an object defined in that file.&lt;br /&gt;
Mib2c expects the name of a &amp;#039;root&amp;#039; object, and will generate a&lt;br /&gt;
template for the sub-tree starting from there.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;ve got a file &amp;lt;CODE&amp;gt;&amp;#039;MY-MIB.txt&amp;#039;&amp;lt;/CODE&amp;gt;, defining the MIB module&lt;br /&gt;
&amp;lt;CODE&amp;gt;&amp;#039;MY-MIB&amp;#039;&amp;lt;/CODE&amp;gt; which contains a subtree based on the object &amp;lt;CODE&amp;gt;&amp;#039;myMib&amp;#039;&amp;lt;/CODE&amp;gt;,&lt;br /&gt;
then you should invoke mib2c as&lt;br /&gt;
    &amp;quot;mib2c .... myMib&amp;quot;&lt;br /&gt;
rather than&lt;br /&gt;
    &amp;quot;mib2c .... MY-MIB.txt&amp;quot;&lt;br /&gt;
or   &lt;br /&gt;
    &amp;quot;mib2c .... MY-MIB&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that you&amp;#039;ll probably also have to add your MIB to the list of&lt;br /&gt;
MIBs that are loaded automatically, in order for mib2c to recognise&lt;br /&gt;
the name of this object.  So the command would typically be&lt;br /&gt;
&lt;br /&gt;
    &amp;quot;MIBS=+MY-MIB mib2c .... myMib&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
    &amp;quot;MIBS=ALL     mib2c .... myMib&amp;quot;&lt;/div&gt;</summary>
		<author><name>Dts12</name></author>	</entry>

	</feed>