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 <[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" 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-coders@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.
-------------------------------------------------------------------------
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-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to