Thanks, Dave.
My Mib file is written on snmpv1, it have no table, but some scalars and
traps.
when I use command:
"mib2c mymibNode"
it's return message shows 0 scalars, 0 tables and 0 notification.
I guess it caused by the error on mib above.

Best Regards!
=========================
Xia Zhongwu

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Wednesday, December 12, 2007 7:08 PM
To: Xia Zhongwu
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: scalar's parent node must be simple node

On 12/12/2007, Xia Zhongwu <[EMAIL PROTECTED]> wrote:
> I write a mib file as followings, when I check using
> smilint(http://www.ibr.cs.tu-bs.de/projects/libsmi/), it report that
on
> line 50(osStartupTrapHAMode) and many others lines , "scalar's parent
> node must be simple node". I don't understand it

You'd probably be better off asking on the smilint support lists
about this problem.   They are more up on the intricacies of MIB
syntax than we are.
   But as a guess, I suspect that it may be objecting to the name
'osStartupTrapGroup'.   Conventionally, the suffix "Group" is only
used for OBJECT-GROUP definitions, which cannot have any
children.   It's possible that smilint is enforcing this requirement.

But you'd need to ask them.



> When I use mib2c with this mib file, when select " 2) Net-SNMP style
> code", not any souce codes are generated!

That's a bit vague - what are *all* the choices you make when running
mib2c?     In particular, are you creating code for a table, or scalar
objects?

Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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

Reply via email to