Dave, please find the .c & _access.c files attched.
the snmp get commands i tried are
#snmpget -v 2c -c public localhost
myTestMibPhsSize.1.1.1
MY-TEST-MIB::myTestMibPhsSize.1.1.1 = No Such Object
available on this agent at this OID
#snmptable -v 2c -c public localhost myTestMibTable
MY_TEST-MIB::myTestMibTable: No entries
Thanks,
Bala
--- Dave Shield <[EMAIL PROTECTED]> wrote:
> On 13/11/06, Balamurugan V <[EMAIL PROTECTED]>
> wrote:
> > I added print statements in init_,
> initialize_table_,
> > get_first & handler routines, when i started the
> agent
> > after make install, i could see the print messages
> > given in init_ & initialize_table routines, but
> when i
> > query no messages seen from get_first
>
> Ok - That would be sufficient to explain why you're
> not
> seeing any data from your MIB.
>
> Can you please try posting the full code of your MIB
> module
> (as an attachment, please), Maybe we can spot
> what's
> going wrong.
> And how precisely are you querying the agent?
> What is the *exact* call you are making?
>
>
> > should i register my mib module any other place?
>
> Given that you're seeing the debug messages from
> your
> init routines, it sounds as if you've included the
> module
> into the agent successfully. Without seeing the
> code, I
> can't tell if the registration is being done
> properly or not.
>
> Dave
>
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
myTestMib_access.c
Description: 3307566950-myTestMib_access.c
/* myTestMibTable */
typedef
struct myTestMIBEntry_info_s {
int myTableIndex1; /* index 1 */
long myTableIndex1; /* index 2 */
int myTableIndex1; /* index 3 */
char myTestMibPhsField[32];
char myTestMibPhsMask[32];
long myTestMibPhsSize;
int myTestMibPhsVerify;
} myTestMibEntry_info;
myTestMib.c
Description: 1256666886-myTestMib.c
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
