Hi Dave,
-----Original Message----- From: Dave Shield <[EMAIL PROTECTED]> To: Farazad Farhadzadeh <[EMAIL PROTECTED]> Cc: net-snmp-users@lists.sourceforge.net Date: Mon, 11 Apr 2005 10:42:38 +0100 Subject: Re: mib node > On Sun, 2005-04-10 at 16:39, Farazad Farhadzadeh wrote: > > Can you help me about meaning of MIB node in mib2c command > > The mib2c command is used to help you generate code to > implement several MIB objects. So it needs to know > which MIB objects you want to implement. > > If you think of the overall MIB as a tree, any given > node will define a subtree. If this is a leaf node, > then the subtree will only contain that one object. > If it's an internal node, then the subtree will contain > several leaf objects. > > In either case, that defines which objects 'mib2c' will > try to generate code for. > > > > for example can you tell me the mib node in UCD-DEMO-MIB? > > There isn't one single "mib node" in the UCD-DEMO-MIB. > But most choices will result in the same set of MIB objects: > > mib2c ..... UCD-SNMP-DEMO::ucdDemoMIB > mib2c ..... UCD-SNMP-DEMO::ucdDemoMIBObjects > and mib2c ..... UCD-SNMP-DEMO::ucdDemoPublic > That's rigth but i want to know how can i find mib node in mib, for example i want to add MPLS-LSR-MIB for net-snmp but i dont know mibnode in this mib for generate *.c and *.h of this mib file. > should all result in the same output (covering all four > leaf objects). > > mib2c ..... UCD-SNMP-DEMO::ucdDemoResetKeys > mib2c ..... UCD-SNMP-DEMO::ucdDemoPublicString > mib2c ..... UCD-SNMP-DEMO::ucdDemoUserList > or mib2c ..... UCD-SNMP-DEMO::ucdDemoPassphrase > > would each result in a MIB file concerned with just > one MIB object. > > Dave Farzad ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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/listinfo/net-snmp-users