Discussion:
snmpd.conf: (Warning: no access control information configured)
Need Help
2007-05-17 18:39:49 UTC
Permalink
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:


./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161

... and here is the output which is produced .....


No log handling enabled - turning on stderr logging
registered debug token ocStbHostAVInterfaceTable, 1
ocStbHostAVInterfaceTable:init_ocStbHostAVInterfaceTable: Registering ocStbHostAVInterfaceTable as a mibs-for- dummies table.

Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the ocStbHostAVInterfaceTable.conf file for this agent.




Here is my configure command:

./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"




Here is my "/export/home/myname/snmp/usr/local/share/snmp/snmpd.conf" file
contents which I just setup for SNMPV1/2 for read-only access (nothing fancy ... just trying to test basic stuff):


##############################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#



#############################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity mycommunity_ro




QUESTION:

The error states it does not like my agent configuration file since it does not have any "access control information configured". I executed the "snmpconf -i -g basic_setup" command to generate this snmpd.conf file for me, so I am not sure what needs to be added to allow me to execute the ocStbHostAVInterfaceTable agent.

I read somewhere that if the "snmpd.conf" file does not have any access controls then it will not process any requests. I guess this is what is happening to here?
Anyway, what must I add to get thsi to work?




---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
Need Help
2007-05-17 19:34:20 UTC
Permalink
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?



Need Help <***@yahoo.com> 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" command successfully. Finally I tried to execute the ocStbHostAVInterfaceTable agent with the following:


./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161

... and here is the output which is produced .....


No log handling enabled - turning on stderr logging
registered debug token ocStbHostAVInterfaceTable, 1
ocStbHostAVInterfaceTable:init_ocStbHostAVInterfaceTable: Registering ocStbHostAVInterfaceTable as a mibs-for- dummies table.

Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the ocStbHostAVInterfaceTable.conf file for this agent.




Here is my configure command:

./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"




Here is my "/export/home/myname/snmp/usr/local/share/snmp/snmpd.conf" file
contents which I just setup for SNMPV1/2 for read-only access (nothing fancy ... just trying to test basic stuff):


##############################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#



#############################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity mycommunity_ro




QUESTION:

The error states it does not like my agent configuration file since it does not have any "access control information configured". I executed the "snmpconf -i -g basic_setup" command to generate this snmpd.conf file for me, so I am not sure what needs to be added to allow me to execute the ocStbHostAVInterfaceTable agent.

I read somewhere that if the "snmpd.conf" file does not have any access controls then it will not process any requests. I guess this is what is happening to here?
Anyway, what must I add to get thsi to work?




---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
Robert Story
2007-05-17 19:41:25 UTC
Permalink
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 running a specialized application now..

NH> Perhaps I need to create a "ocStbHostAVInterfaceTable.conf" file somewhere ... somehow?

Exactly. And it will have the same syntax as snmpd.conf. You can copy or link
your snmpd.conf file...
Need Help
2007-05-17 19:45:34 UTC
Permalink
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 "snmpd.conf" file is located?



Robert Story <***@freesnmp.com> wrote: 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 running a specialized application now..

NH> Perhaps I need to create a "ocStbHostAVInterfaceTable.conf" file somewhere ... somehow?

Exactly. And it will have the same syntax as snmpd.conf. You can copy or link
your snmpd.conf file...



---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
Need Help
2007-05-17 19:48:54 UTC
Permalink
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 <***@yahoo.com> wrote: 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 "snmpd.conf" file is located?



Robert Story <***@freesnmp.com> wrote: 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 running a specialized application now..

NH> Perhaps I need to create a "ocStbHostAVInterfaceTable.conf" file somewhere ... somehow?

Exactly. And it will have the same syntax as snmpd.conf. You can copy or link
your snmpd.conf file...



---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games. -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
Need Help
2007-05-17 20:13:57 UTC
Permalink
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.

The "snmpwalk" help screen is displayed which shows me all the options. Anyway. I still can not figure out why the syntax is wrong. Now, I believe the tutorial is based on 5.0 (or 5.2) and I am using NetSnmp5.4 now, so perhaps something has changed?

Do you know what is wrong with my snmpwalk request?



For summary, here are the commands I performed:

1) Create the following file:

/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf

2) make -f ocStbHostAVInterfaceTable_Makefile

3) ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161

4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS)





Need Help <***@yahoo.com> 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.conf file (or any .conf file) changes........ so perhaps you can let me know?

BTW: Thanks for the help

Need Help <***@yahoo.com> wrote: 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 "snmpd.conf" file is located?



Robert Story <***@freesnmp.com> wrote: 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 running a specialized application now..

NH> Perhaps I need to create a "ocStbHostAVInterfaceTable.conf" file somewhere ... somehow?

Exactly. And it will have the same syntax as snmpd.conf. You can copy or link
your snmpd.conf file...



---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games. -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out. -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
Dave Shield
2007-05-17 21:46:26 UTC
Permalink
Post by Need Help
4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS)
Try specifying a community string.
Something like

snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

Dave
Need Help
2007-05-18 15:12:23 UTC
Permalink
I am performing the following three steps below (as recommended by the NetSnmp tutorial) to be able to test whether the changes I made to the "xxx_data_access.c" table file can be accessed via an "snmpwalk" request:

1) make -f ocStbHostAVInterfaceTable_Makefile
2) ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161
3) snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

When I execute the "snmpwalk" command, it no longer has a problem with the syntax used (as was my original problem), but instead it now produces the following response after waiting two second or so:

"Timeout: No Response from localhost:1161"


Any idea why this timeout might be occurring? I am using "1161" because that is what was in the tutorial. Am I making a dumb mistake by simply using this "1161" value or should it work for me on my system?

PS: I did verified that my specialized agent is running (see below)

[***@dhcp-201-187]# ps -ef | grep localhost
root 26895 7369 0 10:34 pts/13 00:00:00 ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161
root 9186 7369 0 11:08 pts/13 00:00:00 grep localhost
Post by Need Help
4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS)
Try specifying a community string.
Something like

snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

Dave



---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
Dave Shield
2007-05-18 15:43:12 UTC
Permalink
Post by Need Help
When I execute the "snmpwalk" command, it no longer has a problem with the
syntax used (as was my original problem), but instead it now produces the
"Timeout: No Response from localhost:1161"
Any idea why this timeout might be occurring?
What is in the config file?
If you're not sure which config file(s) are being read in,
try adding "-Dread_config" when starting the agent.
Post by Need Help
I am using "1161" because
that is what was in the tutorial. Am I making a dumb mistake by simply
using this "1161" value or should it work for me on my system?
That ought to work - as long as whatever you specify when starting
the agent matches the destination in the snmpwalk command.

Dave
Need Help
2007-05-18 15:12:05 UTC
Permalink
I am performing the following three steps below (as recommended by the NetSnmp tutorial) to be able to test whether the changes I made to the "xxx_data_access.c" table file can be accessed via an "snmpwalk" request:

1) make -f ocStbHostAVInterfaceTable_Makefile
2) ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161
3) snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

When I execute the "snmpwalk" command, it no longer has a problem with the syntax used (as was my original problem), but instead it now produces the following response after waiting two second or so:

"Timeout: No Response from localhost:1161"


Any idea why this timeout might be occurring? I am using "1161" because that is what was in the tutorial. Am I making a dumb mistake by simply using this "1161" value or should it work for me on my system?

PS: I did verified that my specialized agent is running (see below)

[***@dhcp-201-187]# ps -ef | grep localhost
root 26895 7369 0 10:34 pts/13 00:00:00 ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161
root 9186 7369 0 11:08 pts/13 00:00:00 grep localhost
Post by Need Help
4) snmpwalk -v1 localhost:1161 ocStbHostAVInterfaceTable (THIS FAILS)
Try specifying a community string.
Something like

snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

Dave



---------------------------------
Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.
Need Help
2007-05-18 17:16:49 UTC
Permalink
The configuration file I created is located at the following location:

/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf

.... and has only one line in it as follows:

rocommunity mycommunity_ro


I started the agent using the following:

./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &


The output when starting the agent using the "-Dread_config" option is provided below. Not really sure what to make of it. I see that my configuration file is being read in whcih is nice, however, when I try to do the "snmpwalk", it still times out:

[***@dhcp-201-187 ocStbHostAVInterfaceTable]# ./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &
[1] 30276
[***@dhcp-201-187 ocStbHostAVInterfaceTable]# No log handling enabled - turning on stderr logging
registered debug token read_config, 1
read_config: reading premib configuration tokens
read_config: config path used for ocStbHostAVInterfaceTable:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: Reading configuration /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf:31 examining: rocommunity mycommunity_ro
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for ocStbHostAVInterfaceTable:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for agentx:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config: config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config: config path used for snmp:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
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
read_config: reading normal configuration tokens
read_config: config path used for ocStbHostAVInterfaceTable:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: Reading configuration /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf:31 examining: rocommunity mycommunity_ro
read_config: Found a parser. Calling it: rocommunity / mycommunity_ro
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for ocStbHostAVInterfaceTable:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for agentx:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config: config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config: config path used for snmp:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
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
Post by Need Help
When I execute the "snmpwalk" command, it no longer has a problem with the
syntax used (as was my original problem), but instead it now produces the
"Timeout: No Response from localhost:1161"
Any idea why this timeout might be occurring?
What is in the config file?
If you're not sure which config file(s) are being read in,
try adding "-Dread_config" when starting the agent.
Post by Need Help
I am using "1161" because
that is what was in the tutorial. Am I making a dumb mistake by simply
using this "1161" value or should it work for me on my system?
That ought to work - as long as whatever you specify when starting
the agent matches the destination in the snmpwalk command.

Dave



---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
Magnus Fromreide
2007-05-18 18:54:31 UTC
Permalink
Post by Need Help
/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
rocommunity mycommunity_ro
./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &
Doesn't the -M argument tell your agent to use localhost and 1161 as
directories to read mib files from?

Does it work better if you try with

./ocStbHostAVInterfaceTable -f -Lf my.logfile -Dread_config localhost:1161

?

/MF
Need Help
2007-05-18 19:07:42 UTC
Permalink
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 to connect to the agentx master agent ([NIL])

It seems it is trying to do something with an AgentX agent now. I do not think I want to involve an AgentX for my testing of the snmpwalk command.
Post by Need Help
/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
rocommunity mycommunity_ro
./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &
Doesn't the -M argument tell your agent to use localhost and 1161 as
directories to read mib files from?

Does it work better if you try with

./ocStbHostAVInterfaceTable -f -Lf my.logfile -Dread_config localhost:1161

?

/MF





---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
Dave Shield
2007-05-18 19:20:07 UTC
Permalink
Post by Need Help
I have no idea what the -M option does .... I was just following the
tutorial.
You keep talking about "the tutorial".
It might be useful if you could be a bit more explicit about exactly
which tutorial you are following. There are several different approaches
documented in the project web pages - which specific page are you
working with?

Dave
Need Help
2007-05-18 19:38:08 UTC
Permalink
Yes, of course .....

Trying to learn NetSnmp, I was reading through the following tutorial:

http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/index.html

This tutorial relates to the ifTable MIB and explains how to update the code accordingly with the goal of being able to perform an "snmpwalk" request at the end to verify all rows contain the data which has been inserted. There are about 5 or 6 sections to this tutorial, At the end of each section is a link to the next section. The last section, entitled "MFD: ifTable testing" explains how to do the following:

1) make the code
2) start the specialized agent for testing purposes
3) issue a snmpwalk command to verify populated table values.

Anyway, I took this exact approach when writing my own code for my own "ocStbHostAVInterfaceTable" MIB table for the sole reason of trying to see if I could populate the table and perform a "snmpwalk" request.

I have been reading nonstop for about 2 weeks about anything relating to NetSnmp. It is very hard to understand at first, but I believe I can now talk about NetSnmp enough to ask more specific questions when needed.

I would love to perform a "snmpwalk", but can not since the snmpwalk command I entered always times out.

Here are the commands I am entering as it relates to three tutorial steps stated above:

1) make -f ocStbHostAVInterfaceTable_Makefile

2) ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161

3) snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

Note: Without the "-c public" option the snmpwalk command was not allowed to be entered. It resulted in the general "usage" error being displayed. Adding the "-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.
Post by Need Help
I have no idea what the -M option does .... I was just following the
tutorial.
You keep talking about "the tutorial".
It might be useful if you could be a bit more explicit about exactly
which tutorial you are following. There are several different approaches
documented in the project web pages - which specific page are you
working with?

Dave



---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
Dave Shield
2007-05-18 20:53:55 UTC
Permalink
Post by Need Help
http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/index.html
This tutorial relates to the ifTable MIB
Actually, this tutorial really relates to the MfD framework, using the
ifTable as an example. This framework is only one of a number of
possible mechanisms for implementing MIB modules.
The style of code is very different to most of the other approaches
(which I'm personally both more familiar and confortable with), so I
think I'll leave Robert to assist you with this one.

The one thing that I do wonder about is whether this tutorial includes
the VACM modules which are normally responsible for access control.
With a standard agent setup, if the VACM modules aren't present,
then the agent wouldn't respond to any requests.

I'm not knowledgeable enough about the MfD way of working to
comment as to whether this is still the case here. But that would
be my immediate suspicion. I'll now hand over to Robert to provide
facts rather than speculation....



Alternatively, you might wish to consider using the standard Net-SNMP
agent, rather than this stripped-down MIB-specific setup.

Dave
Need Help
2007-05-18 19:17:44 UTC
Permalink
This is the command I am executing to start my specialize agent (based on what the tutorial recommends):

./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161

The command line options for this agent are listed below. It seems the "-M" option is to indicate to use a standard agent instead of an AgentX agent ... which is what I want.


usage: ocStbHostAVInterfaceTable [-D<tokens>] [-f] [-L] [-M] [-H] [LISTENING ADDRESSES]
-f Do not fork() from the calling shell.
-DTOKEN[,TOKEN,...]
Turn on debugging output for the given TOKEN(s).
Without any tokens specified, it defaults to printing
all the tokens (which is equivalent to the keyword 'ALL').
You might want to try ALL for extremely verbose output.
Note: You can't put a space between the -D and the TOKENs.
-H Display a list of configuration file directives
understood by the agent and then exit.
-M Run as a normal SNMP Agent instead of an AgentX sub-agent.
-x ADDRESS connect to master agent at ADDRESS (default /var/agentx/master).
-L Do not open a log file; print all messages to stderr.




Need Help <***@yahoo.com> 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 to connect to the agentx master agent ([NIL])

It seems it is trying to do something with an AgentX agent now. I do not think I want to involve an AgentX for my testing of the snmpwalk command.
Post by Need Help
/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
rocommunity mycommunity_ro
./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &
Doesn't the -M argument tell your agent to use localhost and 1161 as
directories to read mib files from?

Does it work better if you try with

./ocStbHostAVInterfaceTable -f -Lf my.logfile -Dread_config localhost:1161

?

/MF





---------------------------------
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
Need Help
2007-05-21 12:32:14 UTC
Permalink
I am not married to the idea of using the MFD approach. It was the one tutorial which tried to give a detailed explanation of how to insert the code required to make it happen.

I have no idea what you mean by recommending I use a "standard Net-SNMP agent". What does this mean? Are there any other tutorials which will explain the other approaches which you refer to? If so, please provide some useful links.

Thanks!
Post by Need Help
http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/index.html
This tutorial relates to the ifTable MIB
Actually, this tutorial really relates to the MfD framework, using the
ifTable as an example. This framework is only one of a number of
possible mechanisms for implementing MIB modules.
The style of code is very different to most of the other approaches
(which I'm personally both more familiar and confortable with), so I
think I'll leave Robert to assist you with this one.

The one thing that I do wonder about is whether this tutorial includes
the VACM modules which are normally responsible for access control.
With a standard agent setup, if the VACM modules aren't present,
then the agent wouldn't respond to any requests.

I'm not knowledgeable enough about the MfD way of working to
comment as to whether this is still the case here. But that would
be my immediate suspicion. I'll now hand over to Robert to provide
facts rather than speculation....



Alternatively, you might wish to consider using the standard Net-SNMP
agent, rather than this stripped-down MIB-specific setup.

Dave



---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
Need Help
2007-05-21 14:55:50 UTC
Permalink
Do you consider a "standard NetSNMP agent" to be the agent which is started when issuing the "snmpd" command and that you consider me to be using a "MIB-specific agent" because I am starting an agent by issuing the specific "ocStbHostAVInterfaceTable" command? If so, then I think me issuing the "ocStbHostAVInterfaceTable" command was simply a "tutorial-specific" recommendation to allow me to test that a snmpwalk request actually works on the data I populated. I always thought I would eventually be starting only one main "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 <***@yahoo.com> wrote: I am not married to the idea of using the MFD approach. It was the one tutorial which tried to give a detailed explanation of how to insert the code required to make it happen.

I have no idea what you mean by recommending I use a "standard Net-SNMP agent". What does this mean? Are there any other tutorials which will explain the other approaches which you refer to? If so, please provide some useful links.

Thanks!
Post by Need Help
http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/index.html
This tutorial relates to the ifTable MIB
Actually, this tutorial really relates to the MfD framework, using the
ifTable as an example. This framework is only one of a number of
possible mechanisms for implementing MIB modules.
The style of code is very different to most of the other approaches
(which I'm personally both more familiar and confortable with), so I
think I'll leave Robert to assist you with this one.

The one thing that I do wonder about is whether this tutorial includes
the VACM modules which are normally responsible for access control.
With a standard agent setup, if the VACM modules aren't present,
then the agent wouldn't respond to any requests.

I'm not knowledgeable enough about the MfD way of working to
comment as to whether this is still the case here. But that would
be my immediate suspicion. I'll now hand over to Robert to provide
facts rather than speculation....



Alternatively, you might wish to consider using the standard Net-SNMP
agent, rather than this stripped-down MIB-specific setup.

Dave



---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Shape Yahoo! in your own image. Join our Network Research Panel today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join our Network Research Panel
Need Help
2007-05-21 19:34:38 UTC
Permalink
Ok, I am a bit excited since I figured out why the agent was timing out on me.

Instead of using the "-c public" option as below:

snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable


.... I needed to use the correct community name I entered when configuring the agent:

snmpwalk -v1 -c mycommunity_ro localhost:1161 ocStbHostAVInterfaceTable


I am very excited to have reached this point.



Need Help <***@yahoo.com> wrote: Yes, of course .....

Trying to learn NetSnmp, I was reading through the following tutorial:

http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/index.html

This tutorial relates to the ifTable MIB and explains how to update the code accordingly with the goal of being able to perform an "snmpwalk" request at the end to verify all rows contain the data which has been inserted. There are about 5 or 6 sections to this tutorial, At the end of each section is a link to the next section. The last section, entitled "MFD: ifTable testing" explains how to do the following:

1) make the code
2) start the specialized agent for testing purposes
3) issue a snmpwalk command to verify populated table values.

Anyway, I took this exact approach when writing my own code for my own "ocStbHostAVInterfaceTable" MIB table for the sole reason of trying to see if I could populate the table and perform a "snmpwalk" request.

I have been reading nonstop for about 2 weeks about anything relating to NetSnmp. It is very hard to understand at first, but I believe I can now talk about NetSnmp enough to ask more specific questions when needed.

I would love to perform a "snmpwalk", but can not since the snmpwalk command I entered always times out.

Here are the commands I am entering as it relates to three tutorial steps stated above:

1) make -f ocStbHostAVInterfaceTable_Makefile

2) ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M localhost:1161

3) snmpwalk -v1 -c public localhost:1161 ocStbHostAVInterfaceTable

Note: Without the "-c public" option the snmpwalk command was not allowed to be entered. It resulted in the general "usage" error being displayed. Adding the "-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.
Post by Need Help
I have no idea what the -M option does .... I was just following the
tutorial.
You keep talking about "the tutorial".
It might be useful if you could be a bit more explicit about exactly
which tutorial you are following. There are several different approaches
documented in the project web pages - which specific page are you
working with?

Dave



---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Net-snmp-coders mailing list
Net-snmp-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Shape Yahoo! in your own image. Join our Network Research Panel today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 hot CTA = Join our Network Research Panel
Loading...