Re: Problem initializing table create with create-dataset

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/7/8 niepa inter <[email protected]>:
> Before compiling and running the subagent:
> if I do a snmpwalk on prtGeneralTable as following:
> snmpwalk -v 1 -c public localhost prtGeneral
> I get nothing, no errors,....?????

That sounds right.
Before you run the subagent, the master agent doesn't
know anything about your new table - it will be empty.

So if you try to walk the table, you've get nothing back.

Remember, it's not an error to have an empty or missing table.



> If I now run the subagent I still have the same result.
> Below is the code I use for initialization as well as the MIB used for this
> purpose.


A quick glance at your code seems to indicate that there's only
one valid instance in this table - column 2 in row 1.
But I don't think you are setting this correctly.

Have a look at the file 'mibgroup/examples/testhandler.c'
for how to set the index value.
  And setting the column value will be similar - something along
the lines of:

    int val = 3;
    netsnmp_set_row_column( row, 2 ASN_INTEGER, &val, sizeof(val));


Dave

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.