scalar's parent node must be simple node
"Xia Zhongwu" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, all guys
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
When I use mib2c with this mib file, when select " 2) Net-SNMP style
code", not any souce codes are generated!
How to resolve it?
======================my mib file content=============
......
mn9100Notification OBJECT IDENTIFIER ::= { mn9100 4 }
--
-- Node definitions
--
-- 1.3.6.1.4.1.1949.1.3.21.10001.4.0
trapMibObjects OBJECT IDENTIFIER ::= {
mn9100Notification 0 }
-- 1.3.6.1.4.1.1949.1.3.21.10001.4.0.1
osStartupTrapGroup OBJECT IDENTIFIER ::= {
trapMibObjects 1 }
-- MONodeChangeEvent, for MO Node Change Trap
-- This MIB is used as binding variables in trap
MoNodeChangeNotification, PC MG should not get/set this MIB
-- 1.3.6.1.4.1.1949.1.3.21.10001.4.0.2
moNodeChangeTrapGroup OBJECT IDENTIFIER ::= {
trapMibObjects 2 }
-- This MIB is used as binding variables in trap
MoLinkChangeNotification, PC MG should not get/set this MIB
-- 1.3.6.1.4.1.1949.1.3.21.10001.4.0.3
moLinkChangeTrapGroup OBJECT IDENTIFIER ::= {
trapMibObjects 3 }
-- EMLAlarmEvent
-- 1.3.6.1.4.1.1949.1.3.21.10001.4.0.4
emlAlmTrapGroup OBJECT IDENTIFIER ::= { trapMibObjects 4
}
-- NMLAlarmEvent
-- 1.3.6.1.4.1.1949.1.3.21.10001.4.0.5
nmlAlmTrapGroup OBJECT IDENTIFIER ::= { trapMibObjects 5
}
-- Begin osStartupTrapGroup subnodes
-- 1.3.6.1.4.1.1949.1.3.21.10001.1.1.1
osStartupTrapHAMode OBJECT-TYPE
SYNTAX INTEGER
{
standalone(1),
primary(2),
secondary(3)
}
ACCESS read-only
STATUS mandatory
DESCRIPTION
"HAMode: Configured HA mode of current
OS, if no HA is used, HA mode will be standalone
When MN9100 start up, it will read
these item from ini file."
::= { osStartupTrapGroup 1 }
......
================my mib file content======================
Best Regards!
Xia Zhongwu
-------------------------------------------------------------------------
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://sourceforge.net/services/buy/index.php
_______________________________________________
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