Re: MIB file creation - table of groups
Radhika Srivatsa <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Thank you for the message. Attached is my MIB file and the parsed output from snmptranslate (which looks ok). I do not have smilint loaded on my m/c and am trying to download that to see if the MIB syntax can be validated through smilint. Let me know if you see something problematic with this MIB right away. When I ran this MIB through the iReasoning Networks' MIB Browser, the variable "magMUMPluginGroupIndex" from the MIB is not seen on the Browser....whereas the MIB tree via snmptranslate shows that variable! Thanks --Radhika On Tue, May 26, 2009 at 2:49 AM, Dave Shield <[email protected]> wrote: > 2009/5/22 Radhika Srivatsa <[email protected]>: >> I am trying to create a MIB file which has a table consisting of >> groups of items as its rows. > > Please post the definition of your MIB. > It's not worth us wasting time trying to guess what you have done. > Much easier to show us. > > >> I don't think it should be a problem of having a OBJECT-GROUP as a row >> of a TABLE > > That is not valid SMI syntax. > >> for it was, then even my command line (snmptranslate) >> would have complained. > > Please remember that the Net-SNMP MIB parser is *not* particularly > strict. If you have doubts about the validity of your MIB, then try > running it through "smilint" or similar tools. See the FAQ for more info. > > Dave > -- --Radhika ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ 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
SAMPLES-MUMPLUGIN-MIB.txt
(text/plain, 7.7 KB)
-- samples-mumplugin-mib
--
SAMPLES-MUMPLUGIN-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, enterprises, OBJECT-TYPE, Counter32,
TimeTicks, IpAddress FROM SNMPv2-SMI
DisplayString, TEXTUAL-CONVENTION, RowStatus FROM SNMPv2-TC
NOTIFICATION-TYPE FROM SNMPv2-SMI
TRAP-TYPE FROM RFC-1215
MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF;
mumplugin MODULE-IDENTITY
LAST-UPDATED "200801170000Z"
ORGANIZATION "ZZZ"
CONTACT-INFO
"YYY
Postal: XXX"
DESCRIPTION
"This MIB module implements SCEA's Enterprise MIB for samples mum plugin"
::= { enterprises scea(20248) scert(1) samples(6) mag(1) 5 }
-- this is the private enterprise MIB module for samples mum plugin.
-- groups for samples-mag-mumplugin MIB----
-- MAG MUM Plugin Groups --
-- 1) magMUMPluginTabularEntry - contains plugin stats in a tabular format
-- 2) magMUMPluginGroupScalarEntry - contains plugin stats in a group format
-- 3) magMUMPluginGroupTabularEntry - contains plugin stats in a 'table of group' format
magMUMPluginTabularEntry OBJECT IDENTIFIER ::= { mumplugin 1 }
magMUMPluginGroupScalarEntry OBJECT IDENTIFIER ::= { mumplugin 2 }
magMUMPluginGroupTabularEntry OBJECT IDENTIFIER ::= { mumplugin 3 }
--
--
--
-- Tabular Stats - Stats may be reported by multiple plugins
--
--
--
magMUMPluginStatTable OBJECT-TYPE
SYNTAX SEQUENCE OF MagPluginStatEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"magMUMPluginStatsTable contains plugin related metrics."
::= { magMUMPluginTabularEntry 1 }
magMUMPluginStatEntry OBJECT-TYPE
SYNTAX MagMUMPluginStatEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The magMUMPluginStatEntry is a single row in the magMUMPluginStatTable.
This signifies metrics pertaining to one sample plugin of mag servers."
INDEX { magMUMPluginIndex }
::= { magMUMPluginStatTable 1 }
MagMUMPluginStatEntry ::=
SEQUENCE {
magMUMPluginIndex
INTEGER,
magMUMPluginTimeCachedCount
Gauge,
magMUMPluginNumActivePlayerCount
Gauge,
magMUMPluginNumActiveGameCount
Gauge
}
magMUMPluginIndex OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object represents a plugin index that uniquely identifies a plugin in a mag server.
This is the index into magMUMPluginStatTable."
::= { magMUMPluginStatEntry 1 }
magMUMPluginTimeCachedCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of time cached event count."
::= { magMUMPluginStatEntry 2 }
magMUMPluginNumActivePlayerCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of active player count for the plugin."
::= { magMUMPluginStatEntry 3 }
magMUMPluginNumActiveGameCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of active game count for the plugin."
::= { magMUMPluginStatEntry 4 }
--
--
--
-- GroupScalar Stat Group - Scalar stats treated as one group
--
--
--
magMUMGroupStatPluginTimeCachedCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of time cached event count."
::= { magMUMPluginGroupScalarEntry 1 }
magMUMGroupStatPluginNumActivePlayerCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of active player count for the plugin."
::= { magMUMPluginGroupScalarEntry 2 }
magMUMGroupStatPluginNumActiveGameCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of active game count for the plugin."
::= { magMUMPluginGroupScalarEntry 3 }
--
--
--
-- TabularGroup Stat - Table of Group Stats
--
--
--
magMUMPluginGroupStatTable OBJECT-TYPE
SYNTAX SEQUENCE OF MagMUMPluginGroupStatEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"magMUMPluginGroupStatTable contains groups of plugin related metrics."
::= { magMUMPluginGroupTabularEntry 1 }
magMUMPluginGroupStatEntry OBJECT-TYPE
SYNTAX MagMUMPluginGroupStatEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The magMUMPluginGroupStatEntry is a single row in the magMUMPluginGroupStatTable.
This signifies metrics pertaining to one sample plugin of mag servers."
INDEX { magMUMPluginGroupIndex }
::= { magMUMPluginGroupStatTable 1 }
MagMUMPluginGroupStatEntry ::=
SEQUENCE {
magMUMPluginGroupIndex
INTEGER,
magMUMPluginGroupItem
OBJECT-GROUP
}
magMUMPluginGroupIndex OBJECT-TYPE
SYNTAX INTEGER
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This object represents an index for the Group that uniquely identifies a plugin in a mag server.
This is the index into magMUMPluginGroupStatTable."
::= { magMUMPluginGroupStatEntry 1 }
magMUMPluginGroupItem OBJECT-GROUP
OBJECTS { magMUMGroupElmtPluginTimeCachedCount, magMUMGroupElmtPluginNumActivePlayerCount, magMUMGroupElmtPluginNumActiveGameCount }
STATUS current
DESCRIPTION
"The basic collection of objects"
::= { magMUMPluginGroupStatEntry 2 }
magMUMGroupElmtPluginTimeCachedCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of time cached event count."
::= { magMUMPluginGroupItem 1 }
magMUMGroupElmtPluginNumActivePlayerCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of active player count for the plugin."
::= { magMUMPluginGroupItem 2 }
magMUMGroupElmtPluginNumActiveGameCount OBJECT-TYPE
SYNTAX Gauge
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current number of active game count for the plugin."
::= { magMUMPluginGroupItem 3 }
END
snmptranslate.out.txt
(text/plain, 3.2 KB)
[rsrivatsa@blob015 mibs]$ snmptranslate -m ./SAMPLES-MUMPLUGIN-MIB.txt -Tp
+--iso(1)
|
+--org(3)
|
+--dod(6)
|
+--internet(1)
|
+--directory(1)
|
+--mgmt(2)
| |
| +--mib-2(1)
| |
| +--transmission(10)
|
+--experimental(3)
|
+--private(4)
| |
| +--enterprises(1)
| |
| +--scea(20248)
| |
| +--scert(1)
| |
| +--samples(6)
| |
| +--mag(1)
| |
| +--mumplugin(5)
| |
| +--magMUMPluginTabularEntry(1)
| | |
| | +--magMUMPluginStatTable(1)
| | |
| | +--magMUMPluginStatEntry(1)
| | | Index: magMUMPluginIndex
| | |
| | +-- -R-- INTEGER magMUMPluginIndex(1)
| | +-- -R-- Gauge magMUMPluginTimeCachedCount(2)
| | +-- -R-- Gauge magMUMPluginNumActivePlayerCount(3)
| | +-- -R-- Gauge magMUMPluginNumActiveGameCount(4)
| |
| +--magMUMPluginGroupScalarEntry(2)
| | |
| | +-- -R-- Gauge magMUMGroupStatPluginTimeCachedCount(1)
| | +-- -R-- Gauge magMUMGroupStatPluginNumActivePlayerCount(2)
| | +-- -R-- Gauge magMUMGroupStatPluginNumActiveGameCount(3)
| |
| +--magMUMPluginGroupTabularEntry(3)
| |
| +--magMUMPluginGroupStatTable(1)
| |
| +--magMUMPluginGroupStatEntry(1)
| | Index: magMUMPluginGroupIndex
| |
| +-- -R-- INTEGER magMUMPluginGroupIndex(1)
| +--magMUMPluginGroupItem(2)
| +-- -R-- Gauge magMUMGroupElmtPluginTimeCachedCount(1)
| +-- -R-- Gauge magMUMGroupElmtPluginNumActivePlayerCount(2)
| +-- -R-- Gauge magMUMGroupElmtPluginNumActiveGameCount(3)
|
+--security(5)
|
+--snmpV2(6)
|
+--snmpDomains(1)
|
+--snmpProxys(2)
|
+--snmpModules(3)