Hello,

There is one table definition in the MIB that only generate
init_mpbcRMHOSU(void) when running table_data.conf

MIB section of interest:

    mpbcRMHOSU OBJECT-TYPE
        SYNTAX              SEQUENCE OF MpbcRMHOSUEntry
        MAX-ACCESS          not-accessible
        STATUS              current
        DESCRIPTION         "List of all OSU installed in the shelf"
        ::= { mpbcRMHControl 1 }

    mpbcRMHOSUEntry OBJECT-TYPE
        SYNTAX              MpbcRMHOSUEntry
        MAX-ACCESS          not-accessible
        STATUS              current
        DESCRIPTION         "Please replace this text with your
description."
        INDEX               {
                                mpbcRMHOsuIndex
                            }
        ::= { mpbcRMHOSU 1 }

    MpbcRMHOSUEntry ::= SEQUENCE {
        mpbcRMHOsuIndex
            INTEGER,
        mpbcRMHOsuSlot
            INTEGER,
        mpbcRMHOsuState
            INTEGER,
        mpbcRMHOsuReset
            TruthValue,
        mpbcRMHOsuModel
            OCTET STRING
    }

    mpbcRMHOsuIndex OBJECT-TYPE
        SYNTAX              INTEGER
        MAX-ACCESS          not-accessible
        STATUS              current
        DESCRIPTION         "Index"
        ::= { mpbcRMHOSUEntry 1 }

    mpbcRMHOsuSlot OBJECT-TYPE
        SYNTAX              INTEGER
        MAX-ACCESS          read-only
        STATUS              current
        DESCRIPTION         "Position of the Osu within the shelf (19 to
21)"
        ::= { mpbcRMHOSUEntry 2 }

    mpbcRMHOsuState OBJECT-TYPE
        SYNTAX              INTEGER {
                                laserOff( 1 ),
                                laserOn( 2 ),
                                laserAPR( 3 )
                            }
        MAX-ACCESS          read-write
        STATUS              current
        DESCRIPTION         "LaserOff, LaserOn and LaserAPR"
        ::= { mpbcRMHOSUEntry 3 }

    mpbcRMHOsuReset OBJECT-TYPE
        SYNTAX              TruthValue
        MAX-ACCESS          read-write
        STATUS              current
        DESCRIPTION         "Normal=false, Reset=true"
        ::= { mpbcRMHOSUEntry 4 }

    mpbcRMHOsuModel OBJECT-TYPE
        SYNTAX              OCTET STRING
        MAX-ACCESS          read-only
        STATUS              current
        DESCRIPTION         "Model name of the module"
        ::= { mpbcRMHOSUEntry 5 }




generates file with containing only the code :

/*
 * Note: this file originally auto-generated by mib2c using
 *  $
 */

#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include "mpbcRMHOSU.h"

/** Initializes the mpbcRMHOSU module */
void
init_mpbcRMHOSU(void)
{
  /* here we initialize all the tables we're planning on supporting */
}



using perl script env MIBS="+MPBC-RMH-MIB" mib2c -c mib2c.table_data.conf
mpbcRMHOSU

But using the scalar script it works nicely.

Any hints?

PS. the HTML documentation file describe the mpbcRMHOSU OID as a scalar.


Francois*
*
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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