Basic SNMP questions from a NOOB

2007-05-15 Thread Need Help
I am completely new to the concept of SNMP and I do not have a strong Linux background either, however, I have been given the task to integrate SNMP into my work environment so we can gather information from our hardware boxes we manufacturer. ** If this is the wrong group/forum to post general

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

2007-05-16 Thread Need Help
I have been reading the NetSNMP tutorials which indicate how to change the code using the mibs-for-dummies (MFD) configuration file as it relates to the ifTable MIB. Now, I have generated MFD code (using mib2c) for the "ocStbHostAVInterfaceTable" table which is defined in my MIB file, but I used

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

2007-05-17 Thread Need Help
quot;configure" command is where I should state the library path . I guess I was wrong.What does "libdir" do for me then? Thanks for the help Magnus Fromreide <[EMAIL PROTECTED]> wrote: On ons, 2007-05-16 at 13:07 -0700, Need Help wrote: > I have been reading the N

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

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

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

2007-05-17 Thread Need Help
t; file somewhere ... somehow? Need Help <[EMAIL PROTECTED]> wrote: 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"

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 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]

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

2007-05-17 Thread Need Help
localhost:1161 4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS) Need Help <[EMAIL PROTECTED]> wrote: 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.co

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-18 Thread Need Help
Thing is, the code I gave you was only my "test" code. My real implementation (once I am convinced I know what I am doing) is going to require me to populate the row context data (all the rows in the table) in the "row_prep" procedure and "not" in the "container_load" procedure anymore. This

Re: Help me understand this code snipet please

2007-05-18 Thread Need Help
Then what is the purpose of the "row_prep" procedure ? Basically, when would i place code in the "row_prep" procedure? Dave Shield <[EMAIL PROTECTED]> wrote: On 18/05/07, Need Help wrote: > This is because the data can change so I can not simply load it > o

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

2007-05-18 Thread Need Help
86 7369 0 11:08 pts/13 00:00:00 grep localhost Dave Shield <[EMAIL PROTECTED]> wrote: On 17/05/07, Need Help wrote: > 4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS) Try specifying a community string. Something like s

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

2007-05-18 Thread Need Help
86 7369 0 11:08 pts/13 00:00:00 grep localhost Dave Shield <[EMAIL PROTECTED]> wrote: On 17/05/07, Need Help wrote: > 4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS) Try specifying a community string. Something like s

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

2007-05-18 Thread Need Help
ry read_config: config path used for snmp:/var/net-snmp (persistent path:/var/net-snmp) read_config: /var/net-snmp/snmp.conf: No such file or directory read_config: /var/net-snmp/snmp.local.conf: No such file or directory Dave Shield <[EMAIL PROTECTED]> wrote: On 18/05/07, Need

Is "make install" required after updating "snmpd.conf" or "snmp.conf" files?

2007-05-18 Thread Need Help
If I update the "snmpd.conf" file (or "snmp.conf" file) then must I perform a "make install" (or perhaps any other command) before the changes take affect? - Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.---

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

2007-05-18 Thread Need Help
think I want to involve an AgentX for my testing of the snmpwalk command. Magnus Fromreide <[EMAIL PROTECTED]> wrote: On fre, 2007-05-18 at 10:16 -0700, Need Help wrote: > The configuration file I created is located at the following location: > > /export/home/myname/snmp/usr/l

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

2007-05-18 Thread Need Help
;-c public" option results in the command being accepted, it just times out now, with the following error: Timeout: No Response from localhost:1161 Thanks for you time in helping me out. Dave Shield <[EMAIL PROTECTED]> wrote: On 18/05/07, Need Help wrote: > I have no idea

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

2007-05-18 Thread Need Help
). -L Do not open a log file; print all messages to stderr. Need Help <[EMAIL PROTECTED]> wrote: I have no idea what the -M option does I was just following the tutorial. However, I tried your recommendation and got the following warning produced: Warning: Failed

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

2007-05-21 Thread Need Help
mean? Are there any other tutorials which will explain the other approaches which you refer to? If so, please provide some useful links. Thanks! Dave Shield <[EMAIL PROTECTED]> wrote: On 18/05/07, Need Help wrote: > Trying to learn NetSnmp, I was reading through the following

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

2007-05-21 Thread Need Help
"snmpd" agent and simply linking all the MIB I required into this agent. I am trying to figure out whether I am learning/implementnig NetSNMP in the correct manner or not or whether I must restart from scratch. Need Help <[EMAIL PROTECTED]> wrote: I am not married to the idea

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

2007-05-21 Thread Need Help
the agent: snmpwalk -v1 -c mycommunity_ro localhost:1161 ocStbHostAVInterfaceTable I am very excited to have reached this point. Need Help <[EMAIL PROTECTED]> wrote: Yes, of course . Trying to learn NetSnmp, I was reading through the following tutorial: http://www.net-snmp.org/tutorial/tu

Can I use "snmpd" for code generated with "mib2c.mfd.conf"

2007-05-22 Thread Need Help
I am very new to SNMP. I used "mib2c.mfd.conf" to generate the code for a table (ocStbHostAVInterfaceTable) which is defined within my MIB text file. I followed the NetSNMP "MFD:ifTable" tutorial (link below) to learn how to update the MFD code for my specific MIB table. http://www.net-snmp.or

What is the difference between "snmp.conf" and "snmpd.conf"?

2007-05-22 Thread Need Help
I believe the "snmpd.conf" file is used to read in settings when the agent is started ...correct? I have no idea what "snmp.conf" is used for . - Pinpoint customers who are looking for what you sell. --

Re: What is the difference between "snmp.conf" and "snmpd.conf"?

2007-05-22 Thread Need Help
I think I found the difference stated in the FAQ . thanks Need Help <[EMAIL PROTECTED]> wrote: I believe the "snmpd.conf" file is used to read in settings when the agent is started ...correct? I have no idea what "s

MIBS environment variable, --with-mibs and snmp.conf 'mibs' tag dont work

2007-05-22 Thread Need Help
** using NetSnmp 5.4 I am trying to learn how to use the snmp.conf file to store some settings for my agent. Here is the "configure" command I am using for install: ./configure \ --prefix=/export/home/rosent1/snmp/usr/local \ --srcdir=/export/home/rosent1/snmp/net-snmp-5.4 \ --enable-e

How to change default MIB directory location?

2007-05-22 Thread Need Help
I understand the default directory to look for MIB files is the following: /usr/local/share/snmp/mibs However, I would like to change this to another location. If I set the MIBDIRS environment variable as follows, then I can get it to find the MIB file in a new provided location: exp

Re: How to change default MIB directory location?

2007-05-23 Thread Need Help
rotection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html Need Help <[EMAIL PROTECTED]> wrote: I understand the default directory to look for MIB files is the following: /usr/local/share/snmp/mibs However, I would like to change th

MFD: Can "snmpd" control multiple MFD tables and scalars?

2007-05-23 Thread Need Help
I need help in findnig out whether the "snmpd" command can control multiple tables and scalars which were generated with the MFD configuration file. Here is a summary of what I did: 1) I unpacked the NetSNMPv5.4 into the following directory: .../net-snmp-5.4/ 2) I created an "

Re: MFD: Can "snmpd" control multiple MFD tables and scalars?

2007-05-23 Thread Need Help
try a few different high-level nodes to use in the mib2c command. Anyway, this failure led me to send this email asking whether there was a difference between generating table code individual or all at once . does it real matter which way the code is generated? Dave Shield <[E

Should the "make" command compile my new MIB Table code for me?

2007-05-24 Thread Need Help
I created the following new MIB directory: .../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/ and generated the required code using the mib2c command. All of the generated code is inside this new directory. I updated the code and confirmed it compiles using the local "ocStbHostAV

Re: Should the "make" command compile my new MIB Table code for me?

2007-05-24 Thread Need Help
Worked like a charm . thanks Wes Hardaker <[EMAIL PROTECTED]> wrote: >>>>> "NH" == Need Help writes: NH> After doing this, I deleted all the ".o" files since I wanted to NH> compile everything using the main "configure" command now ju

Can the SNMPv3 security protocol be used if I am using the MFD configuration files?

2007-05-24 Thread Need Help
I am using "mib2c.mfd.conf" configuration files to generate code. Will I be able to incorporate SNMPv3 functionality in the code if I want to? I was told that the VACM might not be incorporated into the MFD packages so it might not be able to be used easily. There is a good chance I am g

Re: How to change default MIB directory location?

2007-05-24 Thread Need Help
_config: storing: ## read_config: storing: read_config: storing: engineBoots 1 read_config: storing: oldEngineID 0x80001f88807036f77a67cf5546 NET-SNMP version 5.4 Wes Hardaker <[EMAIL PROTECTED]> wrote: >>>>> "N

RE: Should the "make" command compile my new MIB Table code for me?

2007-05-24 Thread Need Help
lean" or "make distclean" is your friend. >>>>> "NH" == Need Help writes: NH> After doing this, I deleted all the ".o" files since I wanted to NH> compile everything using the main "configure" command now just for NH> fun (ie: le

Re: Can the SNMPv3 security protocol be used if I am using the MFD configuration files?

2007-05-25 Thread Need Help
clarifying this for me. Dave Shield <[EMAIL PROTECTED]> wrote: On 24/05/07, Need Help wrote: > I am using "mib2c.mfd.conf" configuration files to generate code. Will I > be able to incorporate SNMPv3 functionality in the code if I want to? Yes. The "mib2c" tool is

AgentX subagents (why are they needed)?

2007-05-25 Thread Need Help
I believe it is possible to have multiple agents running at one time, where one is the "master" and the others are AgentX subagents. I am not quite sure why people use multiple agents, so perhaps someone can give me an example as to when multiple agents would be nice to use. Now, if I wanted

Re: How to change default MIB directory location?

2007-05-25 Thread Need Help
Yes, I was using the wrong "snmpwalk" command. Your recommendation worked like a charm ... thanks. Dave Shield <[EMAIL PROTECTED]> wrote: On 24/05/07, Need Help wrote: > /export/home/myname/snmp/usr/local/sbin/snmpd -f -L > -Dread_config -M localhost & >

Should these ".h" files be generated for me?

2007-05-25 Thread Need Help
I created the ".../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/" directory, issued the "mib2c" command in this directory for the "ocStbHostAVInterfaceTable" OID node and the code was generated for me and placed into this directory. I discovered the reason why my original testing

Re: AgentX subagents (why are they needed)?

2007-05-25 Thread Need Help
gt; wrote: AgentX subgents are not "needed", but they can be "useful" On 25/05/07, Need Help wrote: > I believe it is possible to have multiple agents running at one time, where > one is the "master" and the others are AgentX subagents. I am not quite > su

Can I put LD_LIBRARY_PATH into a "conf" file?

2007-05-25 Thread Need Help
I needed to set the LD_LIBRARY_PATH to the following so the ".so" library files could be found: /export/home/myname/snmp/usr/local/lib I am wondering whether it is possibel to indicate this path inside of a "snmpd.conf" or "snmp.conf" file somehow? - Pi

Re: Can I put LD_LIBRARY_PATH into a "conf" file?

2007-05-30 Thread Need Help
Magnus Fromreide <[EMAIL PROTECTED]> wrote: On fre, 2007-05-25 at 22:25 +0200, Thomas Anders wrote: > Need Help wrote: > > I needed to set the LD_LIBRARY_PATH to the following so the ".so" library > > files could be found: > > > > /export/home/

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-30 Thread Need Help
issued for Table1 and then again for Table2 separately? Dave Shield <[EMAIL PROTECTED]> wrote: On 25/05/07, Need Help wrote: > 1) I noticed Table2 does "not" have an "ocStbHost1394Index" field defined. > I was wondering why Table2 did not have an "Index&quo

Re: Can I put LD_LIBRARY_PATH into a "conf" file?

2007-05-30 Thread Need Help
No I have not. Is "ldconfig" a NetSnmp command? I will look into this and see what it is. I do not have a Linux background, so thanks for any help you provide. Dave Shield <[EMAIL PROTECTED]> wrote: On 30/05/07, Need Help wrote: > I already include the following --pre

Re: Can I put LD_LIBRARY_PATH into a "conf" file?

2007-05-30 Thread Need Help
Ok, it is a Unix command . I will give it a try thanks Need Help <[EMAIL PROTECTED]> wrote: No I have not. Is "ldconfig" a NetSnmp command? I will look into this and see what it is. I do not have a Linux background, so thanks for any help you provide. Dav

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-30 Thread Need Help
in NetSNMP. If you do recommend another configuration file, perhaps you could give a one paragraph description indicating which procedures need to be updated to perform certain functions. Dave Shield <[EMAIL PROTECTED]> wrote: On 30/05/07, Need Help wrote: > Table1 is the "main

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-30 Thread Need Help
n allow for caching? Does the -Scache option turn on caching? I will look. Dave Shield <[EMAIL PROTECTED]> wrote: On 30/05/07, Need Help wrote: > If there is another widely used configuration file then I would like to play > around with that one as well to get a better feeling of di

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-30 Thread Need Help
TED]> wrote: On 30/05/07, Need Help wrote: > If there is another widely used configuration file then I would like to play > around with that one as well to get a better feeling of different kinds of > approaches which can be used in NetSNMP. I'd tend to prefer the 'mib2c.table

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-30 Thread Need Help
. Dave Shield <[EMAIL PROTECTED]> wrote: On 30/05/07, Need Help wrote: > I tried your recommendation, but got the following error message: > > # mib2c -c mib2c.table_data.conf -Scache=1 ocStbHostAVInterfaceTable > no variable specified for -S flag. at /usr/local/bin/mi

MfD specific questions for someone who is familiar with this code (Robert perhaps)

2007-05-30 Thread Need Help
** I am using the MfD configuration file to generate code and I am very confused. I have the following two tables defined in my MIB file. TABLE 1 (osStbHostAVInterfaceTable): ocStbHostAVInterfaceIndex ocStbHostAVInterfaceType ocStbHostAVInterfaceDesc ocStbHostAVInterfaceStatus TABLE 2 (osStbH

Why must I set the MIBS environment varibable when I set "snmp.conf"?

2007-05-31 Thread Need Help
My snmp.conf file has the following two lines: mibdirs +/export/home/myname/snmp/usr/local/share/snmp/mibs mibs +OC-STB-HOST-MIB:DOCS-IF-MIB:CLAB-DEF-MIB:DOCS-IETF-BPI2-MIB My snmpd.conf file has the following one basic line: rocommunity mycommunity_ro I opened a brand new Root s

Re: Can I put LD_LIBRARY_PATH into a "conf" file?

2007-05-31 Thread Need Help
MIB table code. I guess I do not have a ny worries anymore. Magnus Fromreide <[EMAIL PROTECTED]> wrote: On ons, 2007-05-30 at 06:09 -0700, Need Help wrote: > I already include the following --prefix when performing the > "configure" command: > > -

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-31 Thread Need Help
ows there are going to be two row entries in Table2, but I have no idea how the SNMP operator would be smart enough to figure out which of these two entries in Table2 is the one related to "Table 1, row 4". Dave Shield <[EMAIL PROTECTED]> wrote: On 30/05/07, Need Help wr

Re: Why must I set the MIBS environment varibable when I set "snmp.conf"?

2007-05-31 Thread Need Help
make that much sense. Think I will simply start the agent as follows instead: /export/home/rosent1/snmp/usr/local/sbin/snmpd & Dave Shield <[EMAIL PROTECTED]> wrote: On 31/05/07, Need Help wrote: > 2) I started the master agent by executing the following: > > /e

Re: Can two MIB Tables be related and be required to share the same row index?

2007-05-31 Thread Need Help
are going to say I need to wait for Robert to response, although I have never seen a Robert on the forum respond to any of my postings yet, so I might be stuck here and not understand how to proceed. I never thought an SNMP table could be an extension of another table, so this is obviously causi

Re: Help me understand this code snipet please

2007-06-01 Thread Need Help
Thanks for the information . Hey, I believe you might be the "Robert" who "David" was referring to who might be able to help answer some questions regarding the "mfd" configuration. David has helped me out quite a bit, but perhaps you might have a look at my post to see if you can answer s

Re: Can two MIB Tables be related and be required to share the same row index?

2007-06-01 Thread Need Help
Most likely I simply interpreted some description incorrectly along the way . Robert Story <[EMAIL PROTECTED]> wrote: On Thu, 31 May 2007 09:39:55 +0100 Dave wrote: DS> On 30/05/07, Need Help wrote: DS> > However, I do not want to give up on the MfD configuration just y

Re: Can two MIB Tables be related and be required to share the same row index?

2007-06-01 Thread Need Help
Do you recommend I generate my code using some other type of configuration file or is it possible to implement your suggestion using the "mfd" code layout approach? In addition I have no idea what you mean by subcontainers and filters. If you can elaborate a bit that would be helpful. Perhap

Re: MfD specific questions for someone who is familiar with this code (Robert perhaps)

2007-06-01 Thread Need Help
Ok, I know I can change any code I want to fit my needs, however, my concern with expanding the data_context structure of Table1 with fields from Table2 was that I thought performing a "snmpwalk" through Table1 would then display Table2 fields now and that would be bad since Table2 fields r

Re: 5.4.1.pre1 now available

2007-06-01 Thread Need Help
Being new to the whole NetSNMP structure and everything, I kind of like seeing the "-mib" included in the directory name for the MIB.It reminds me the directory is for MIB specific stuff rather than some generic directory. My 2-cents of course Robert Story <[EMAIL PROTECTED]> wrote:

Re: Should these ".h" files be generated for me?

2007-06-01 Thread Need Help
Here is the configure command I am currently using: ../configure \ --prefix=/export/home/rosent1/snmp/usr/local \ --srcdir=/export/home/rosent1/snmp/net-snmp-5.4 \ --enable-embedded-perl \ --enable-shared \ --with-mib-modules="OC-STB-HOST-MIB" The "--with-mib-modules" option seems to tell NetSNM

Re: Can two MIB Tables be related and be required to share the same row index?

2007-06-01 Thread Need Help
Well, I went to the link you suggested and read about the Containers, however, nothing is really making any sense to me. I am not real sure how to create a sub-Container from an existing container. Perhaps you could provide a simple code example of what you are talking about? Robert Story <[E

Expanding the "data_context" structure to include other Table fields

2007-06-01 Thread Need Help
My MIB file has one main table defined (Table1) and has multiple other tables (Table2,3,4,5,6) defined which are extensions to Table1. So Robert . instead of me implementing sub-containers, lets say I implement your other suggestion of adding all the fields defined in Table2,3,4,5,6 into

Re: Expanding the "data_context" structure to include other Table fields

2007-06-04 Thread Need Help
1) Lets say the first request made is to "snmpwalk" through Table2. Are you saying that Table1's container_load() procedure has never been called yet so none of the index values have been loaded and none of the rows have been allocated and placed into the Table1 container yet? If this is true

Re: Hopefully, this explains my confusion a bit more

2007-06-05 Thread Need Help
Sorry about the word document. Just thought it would be easier to ask some questions with some pictorial table data being shown insetadof me trying to do this in an email format. Anyway, let me as you this follow up question: You stated "you don't have to use the se list method, but you mus

Re: Hopefully, this explains my confusion a bit more

2007-06-05 Thread Need Help
I am not familiar how SNMP is used in the real world so explanations like these help me out a lot. Good job and thanks. Dave Shield <[EMAIL PROTECTED]> wrote: On 05/06/07, Need Help wrote: > You stated "you don't have to use the se list method, but you must ensure > tha

Re: Expanding the "data_context" structure to include other Table fields

2007-06-05 Thread Need Help
OK, good stuff here . very helpful ... thanks. Here are a few more questions ... I have Table1 (main table) and Table2 ("1394 table" which is an extension of Table1). Lets say I have updated the Table2_container_init() routine to indicate that Table2 should use the same cache that Table1

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
1) I updated my code a bit but for some reason the Table2_row_prep() routine is never called when I perform a "snmpwalk" of Table2. Any ideas why "Table2_row_prep()" is not being called at all (see the steps a-e below)? Here are the two tables I am dealing with for testing: Table1(ocStbHostAV

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
kup()" routine (shown above) to add the following "rc=" text to the "ocStbHostAnalogVideoTable_row_prep()" routine call (shown below): rc = ocStbHostAnalogVideoTable_row_prep(rowreq_ctx); Is this all which is required to process a MFD_SKIP value returned from the row_prep routine?

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
way to indicate which table should init first? I will keep looking around. Need Help <[EMAIL PROTECTED]> wrote: 1) I updated my code a bit but for some reason the Table2_row_prep() routine is never called when I perform a "snmpwalk" of Table2. Any ideas why "Table2_row

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Ok, I sent this email to you before I got your other reply. :>P Anyway, I did find a way to reverse the order of the init routines being called, but it just may be lucky I guess please confirm The file "agent/mibgroup/OC-STB-HOST-MIB.h" exists (which I needed to create manually base

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
A) You stated there are other methods (instead of using "se_add_pair_to_slist" and "se_find_value_in_slist" routines) which can be used to remember index values. I assume "other methods" mean that I am free to implement any other way to remember index values if I want :>) ... or perhaps other m

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
Ugh ... I just noticed something I think I am doing wrong: The Table2 data_context structure came configured with a "ProtectionStatus" field defined in it (since this is in my MIB). Knowing that Table2 is an extension of Table1 (and based on our past discussions on how to implement this ty

How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Need Help
Ok, my company would like me to start discussing how to incorporate NetSNMP into the company's build environment. I explained the following stuff: - Indicated "./configure", "make" and "make install" were required for NetSNMP - Indicated "snmp.conf" and "snmpd.conf" files exist to define stuff

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Need Help
ure", "make", "make install", etc, etc.. commands which are normally used to get NetSNMP functioning properly. Steve Friedl <[EMAIL PROTECTED]> wrote: On Thu, Jun 07, 2007 at 12:32:00PM -0700, Need Help wrote: > Ok, my company would like me to start discussing

Re: Expanding the "data_context" structure to include other Table fields

2007-06-07 Thread Need Help
be skipped and that Table2_row_prep() for the 4th row would occur, but I got the above error instead and the snmpwalk stopped. Any ideas? Need Help <[EMAIL PROTECTED]> wrote:C) Just wanted to confirm with you the following is true please confirm

Re: How to integrate NetSNMP into a working Linux environment?

2007-06-07 Thread Need Help
igure" script to run and completely execute perhaps? I do not know. I am sure it has nothing to do with not trusting the build of "configure" though. Dave Shield <[EMAIL PROTECTED]> wrote: On 07/06/07, Need Help wrote: > Is it crazy to think we can perform everythi

RE: How to integrate NetSNMP into a working Linux environment?

2007-06-08 Thread Need Help
Yes, and eventually it might come to that, but in the meantime, I am the only person which is assigned to handle the SNMP integration work.No oen is given time to do this task yet. We just want to start looking into what it would take, and I am the person who is trying to gather some data/

Re: Expanding the "data_context" structure to include other Table fields

2007-06-08 Thread Need Help
Here are the two tables I am dealing with again: Table1(ocStbHostAVInterfaceTable) Table2(ocStbHostAnalogVideoTable) I looked into the "ifXTable.h" file and saw how the "ifTable" data structures are being used. As a result I removed the following structure/definitions from Table2

Re: Expanding the "data_context" structure to include other Table fields

2007-06-08 Thread Need Help
Here is the compile errors: In file included from mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable.h:44, from mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_data_access.c:17: .../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAn

Re: Expanding the "data_context" structure to include other Table fields

2007-06-08 Thread Need Help
I meant to attach the header files for Table1 and Table2. here they are ** If you search for "TODD TEST" you will see all the changes I have made. Need Help <[EMAIL PROTECTED]> wrote: Here are the two tables I am dealing with again: Table1(ocStbHostAVInterfac

Re: Expanding the "data_context" structure to include other Table fields

2007-06-08 Thread Need Help
I might have figured this out .. do not spend your time on this yet thanks Need Help <[EMAIL PROTECTED]> wrote: Here are the two tables I am dealing with again: Table1(ocStbHostAVInterfaceTable) Table2(ocStbHostAnalogVideoTable) I looked into the "ifXTable.h"

Re: Expanding the "data_context" structure to include other Table fields

2007-06-08 Thread Need Help
tx() _cache_load() _cache_free() _container_item_free() _container_free() 3) I also decided I needed to update the _mfd_Table2_post_request() routine in Table2 to ... replace: Table2_release_rowreq_ctx(rowreq_ctx); with: Table1_release_rowreq_ctx(rowreq_ctx)

row_prep() returning MFD_SKIP results in error

2007-06-12 Thread Need Help
It seems I have successfully been able to have Table1(ocStbHostAVInterfaceTable) and Table2(ocStbHostAnalogVideoTable) share the same container and can know "snmpwalk" through each table. One remaining problem is not being able to return a MFD_SKIP value from the Table2_row_prep() routine. W

Table2 can not use an Enum value defined in Table1

2007-06-12 Thread Need Help
I have am using the following tables which I generated using the MfD configuration file: Table1(ocStbHostAVInterfaceTable) Table2(ocStbHostAnalogVideoTable) I added some #define enums to the "ocStbHostAVInterfaceTable_enums.h" Table1 file and wanted to use these enum values in the Table2_row_pr

FIXED: (Re Table2 can not use an Enum value defined in Table1)

2007-06-12 Thread Need Help
Figured this one out . please disregard ... PS: Yes, I am stupid today - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.- This SF.net e

How can I perform a "complete" re-make of everything?

2007-06-12 Thread Need Help
I tried executing a "make clean" but that does not get rid of all the ".lo" and ".o" files I have in the MIB directories. Is there a magic command which can be entered which will re-make the entire NetSNMP build? - Pinpoint customers who are looking for

Why does Table2_row_prep() get called when walking through Table1

2007-06-12 Thread Need Help
I have the following two tables: Table1(ocStbHostAVInterfaceTable) Table2(ocStbHostAnalogVideoTable) - extension of Table1 Note: Table2 is sharing the same container as Table1 I noticed when I perform a "snmpwalk" of Table1, then all the data is displayed correctly and then "one" call is made t

Re: Why does Table2_row_prep() get called when walking through Table1

2007-06-13 Thread Need Help
ld <[EMAIL PROTECTED]> wrote: On 12/06/07, Need Help wrote: > I noticed when I perform a "snmpwalk" of Table1, then all the data is > displayed correctly and then "one" call is made to Table2_row_prep() with > row index = 1. > > Is this normal? Yes. Remembe

Replace SNMP commands with ones which read the ".conf" file settings

2007-06-13 Thread Need Help
When starting out learning about NetSNMP, I installed everything into the following private directory location for testing /export/home/myname/snmp/usr/local/ I updated the "snmpd.conf" and "snmp.conf" files accordingly to include MIB information, etc but I had trouble with the "MIB files

Does row_prep() routine utilize cache data?

2007-06-13 Thread Need Help
I have my cache is set to be 60 seconds. When I issue a "snmpget" request multiple times for the same data field (just playing around with snmp) within a table, I notice the row_prep() routine is called for each request. Since I have code in the row_prep() routine to load the row data, then th

Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
I am interested in having a subagent handle all requests for my particular MIB. As a result, I am reading the tutorial entitled "Writing a SubAgent' located here: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent I did not think "auto-building" the subagent using the "net-snmp-c

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
t the tutorial is showing me to my own MIB code in order to produce a subagent which can handle my MIB. Dave Shield <[EMAIL PROTECTED]> wrote: On 13/06/07, Need Help wrote: > I was not sure where to put these files It doesn't matter. The whole point of a standalone subagent is

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
xport/home/myname/snmp/usr/local \ --srcdir=/export/home/myname/snmp/net-snmp \ --enable-embedded-perl \ --enable-shared \ --with-mib-modules="OC-STB-HOST-MIB" Dave Shield <[EMAIL PROTECTED]> wrote: On 13/06/07, Need Help wrote: > 1) Here is the output I get when using the -Le

Re: Tutorial question: "Writing a SubAgent"

2007-06-13 Thread Need Help
mpd master agent. Perhaps you can explain when I am looking at when I look through the nstAgentSubagentObject.c/.h and example-demon.c files? Dave Shield <[EMAIL PROTECTED]> wrote: On 13/06/07, Need Help wrote: > I am using NetSNMP v5.4 > > Executing the "ls -l /var/

Re: Tutorial question: "Writing a SubAgent"

2007-06-14 Thread Need Help
it working. Also will by existing container_load() and row_prep() routines be called as normal to handle the snmp requests from the subagent or must I have to rewrite the code somehow? I am confused how this all fits together. What MfD code areas need to change to do this? Dave Shield <[E

Re: Tutorial question: "Writing a SubAgent"

2007-06-14 Thread Need Help
/usr/local/bin/snmpset -v 1 -c mycommunity_ro localhost NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 = 5 Error in packet. Reason: (noSuchName) There is no such variable name in this MIB. Any idea why the snmpset fails? Need Help <[EMAIL PROTECTED]> wrote: 1) Yes, when I pe

Fwd: Re: Tutorial question: "Writing a SubAgent"

2007-06-14 Thread Need Help
PROTECTED]> To: "Need Help" <[EMAIL PROTECTED]> Subject: Re: Tutorial question: "Writing a SubAgent" CC: net-snmp-coders@lists.sourceforge.net On 14/06/07, Need Help wrote: > snmpset -v 1 -c mycommunity_ro . You are using a community called "som

Re: Tutorial question: "Writing a SubAgent"

2007-06-14 Thread Need Help
do not want to screw anything up. 7) Just to confirm for myself ... I only need ONE "example-demon.c" type file to exist and this file will call an "init" function for each one of my Tables and Scalars defined in my MIB? Is this correct? * THANK YOU for al

Re: Tutorial question: "Writing a SubAgent"

2007-06-14 Thread Need Help
One more thing My MIB text file is called "OC-STB-HOST-MIB.txt". In order for the snmpd master agent to utilize this text file, I placed it into the "/usr/local/share/snmp/mibs" directory and added the "mibs +OC-STB-HOST-MIB" line into the "/usr/local/share/snmp/snmp.conf" file. I beli

  1   2   3   4   >