Re: Help me understand this code snipet please

2007-05-17 Thread Robert Story
On Thu, 17 May 2007 13:44:41 -0700 (PDT) Need wrote: NH> Now, I attached the "data_access.c" module which has the container_load procedure in it for you to see. I included a description of the problem for you to read at the location in which in occurs. Search for the text "PROBLEM" in the cod

How do I iterate on mib after calling read_all_mibs(); (mib_api)

2007-05-17 Thread Erik Earle
I actually am only interested in a subtree but I'll iterate the whole thing if I have to. Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carf

Re: snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Dave Shield
On 17/05/07, Need Help <[EMAIL PROTECTED]> wrote: > 4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS) Try specifying a community string. Something like snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable Dave ---

Re: Help me understand this code snipet please

2007-05-17 Thread Need Help
Yes, this code is in my container_load procedure and I do understand that I need to define those fields myself. Now, the same problem occurs in the ocStbHostAVInterfaceTable container_load procedure since it mirrors the ifTable implementation in the tutorial. Now, I attached the "data_access.

Re: Help me understand this code snipet please

2007-05-17 Thread Robert Story
On Thu, 17 May 2007 08:26:18 -0700 (PDT) Need wrote: NH> In order to learn how to use NetSNMP I was reading through the MFD ifTable tutorial. Part of the code generated for the "ifTable" table (when using the "mib2c" command with the MFD configuration file) is the following: NH> NH> if ((rowre

Re: snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Need Help
Ok, I got the ocStbHostAVInterfaceTable agent running now. The last step (based on the tutorial) is to run the following command to walk through each row in the table: snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable .however, it does not like my syntax for this command once entered

Mib Parsing from agent extension

2007-05-17 Thread Erik Earle
if I use the mib parsing code in mib_api within an dlmod extension, will that affect it's use elsewhere in the main agent? Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sim

Re: snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Need Help
Also, when I change a ".conf" file must I rnu "make install" again? I can not remember if I needed to rerun something once the snmpd.conf file (or any .conf file) changes so perhaps you can let me know? BTW: Thanks for the help Need Help <[EMAIL PROTECTED]> wrote: I am trying to lea

Re: snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Need Help
I am trying to learn this stuff from scratch by reading through the tutorial provided for the "ifTable" MIB table.No where does it mention I need to create a specific "ifTable.conf" file in order to run this. Ok, I will give it a go . I am assuming I place it in the same place as the "s

Re: snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Robert Story
On Thu, 17 May 2007 12:34:20 -0700 (PDT) Need wrote: NH> I guess I am confused about why it is complaining about a "ocStbHostAVInterfaceTable.conf" configuration file as well. I thought I was only dealing with a "snmpd.conf" configuration file only. But you aren't running snmpd... you are

Re: snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Need Help
I guess I am confused about why it is complaining about a "ocStbHostAVInterfaceTable.conf" configuration file as well. I thought I was only dealing with a "snmpd.conf" configuration file only. Perhaps I need to create a "ocStbHostAVInterfaceTable.conf" file somewhere ... somehow? Nee

snmpd.conf: (Warning: no access control information configured)

2007-05-17 Thread Need Help
I generated code using mib2c for a table (ocStbHostAVInterfaceTable) within my MIB file. I then performed a "make" on the code using the "make -f ocStbHostAVInterfaceTable_Makefile" command successfully. Finally I tried to execute the ocStbHostAVInterfaceTable agent with the following: ./o

Help me understand this code snipet please

2007-05-17 Thread Need Help
In order to learn how to use NetSNMP I was reading through the MFD ifTable tutorial. Part of the code generated for the "ifTable" table (when using the "mib2c" command with the MFD configuration file) is the following: if ((rowreq_ctx->data.ifDescr == NULL) || (rowreq_ctx->data.ifDescr_len

Re: HELP: libnetsnmpmibs.so.15: cannot open shared object file: No such file or directory

2007-05-17 Thread Magnus Fromreide
On tor, 2007-05-17 at 05:33 -0700, Need Help wrote: > > Currently my LD_LIBRARY_PATH is not set to anything, but I will try it > out and let you know if I still have problems. > > Just curious could I simply set my "PATH" environment variable to > include the > "/export/home/myname/snmp

Re: HELP: libnetsnmpmibs.so.15: cannot open shared object file: No such file or directory

2007-05-17 Thread Thomas Anders
Need Help wrote: > Just curious could I simply set my "PATH" environment variable to > include the > "/export/home/myname/snmp/usr/local/lib" directory instead of introducing a > new environment variable called LD_LIBRARY_PATH? Nope, PATH and LD_LIBRARY_PATH are for something completely di

Re: HELP: libnetsnmpmibs.so.15: cannot open shared object file: No such file or directory

2007-05-17 Thread Need Help
Currently my LD_LIBRARY_PATH is not set to anything, but I will try it out and let you know if I still have problems. Just curious could I simply set my "PATH" environment variable to include the "/export/home/myname/snmp/usr/local/lib" directory instead of introducing a new environm

Re: Multiple OIDs in GetReqeust-PDU in proxy mode (and RUNTEST is broken on bourne sh)

2007-05-17 Thread Michael Granzow
Thanks for your swift reply, Magnus. On Thu, 2007-05-17 at 13:20 +0200, Magnus Fromreide wrote: > > + * mg 17-May-2007: This must be done in the case of error > > + * packages as well, cf. section 4.1.2 of rfc 1067. > > This is nice as a commit comment but I do not like it in the

Re: current status of python bindings in the trunk

2007-05-17 Thread Noah Gift
On 5/17/07, Wes Hardaker <[EMAIL PROTECTED]> wrote: > > "GSM" == G S Marzot <[EMAIL PROTECTED]> writes: > > GSM> hmmm...if you had done a full install of the net-snmp package I > GSM> think ldconfig should have been run for you. > > For the record, if you do a make install from the net-snmp dir

Re: Multiple OIDs in GetReqeust-PDU in proxy mode (and RUNTEST is broken on bourne sh)

2007-05-17 Thread Magnus Fromreide
On tor, 2007-05-17 at 11:12 +0100, Michael Granzow wrote: > I'd therefore like to suggest the following patch (output of svn diff): > > > -BEGIN PATCH--- > Index: testing/RUNTESTS > ===

Multiple OIDs in GetReqeust-PDU in proxy mode

2007-05-17 Thread Michael Granzow
When using snmpd in proxy mode, there seem to be problems when more than one OID is requested in a single PDU and (at least) one of them does not exist in the agent to which the request is forwarded. Consider this scenario: snmpd is running on localhost:1611, the line relevant for proxying in snm