On 10 November 2011 10:13, prashant nirni <[email protected]> wrote:
>     Actually i wanted to create snmpd.conf file. So i used following command
> to create it
>     snmpconf -g basic_setup
>
>    PROBLEM: But the perl script snmpconf keep on asked questions , i
> followed instructions but its just like a loop. The script snmpconf keep on
> asking questions again, it is not terminating.

Strange - I've just tried this, and it asked me about 10 questions,
and then quit.
   You do need to answer "no" when it asks if you want to create another
rocommunity line.   If you keep answering yes, then of course it will
keep going.

I'm appending a copy of this run.


But remember that snmpd.conf is just a simple text file.
It's perfectly valid to create it by hand, using your favourite text editor.
It's always struck me as overkill to use "snmpconf -g basic_setup"
if all you need is a one-line file containing

      rocommunity public
!

Dave
The following installed configuration files were found:

   1:  ./snmpd.conf
   2:  /etc/snmp/snmp.conf
   3:  /etc/snmp/snmpd.conf
   4:  /etc/snmp/snmptrapd.conf

Would you like me to read them in?  Their content will be merged with the
output files created by this session.

Valid answer examples: "all", "none","3","1,2,5"

Read in which (default = all): none
************************************************ 
*** Beginning basic system information setup ***
************************************************ 
Do you want to configure the information returned in the system MIB group 
(contact info, etc)? (default = y): n
************************************** 
*** BEGINNING ACCESS CONTROL SETUP ***
************************************** 
Do you want to configure the agent's access control? (default = y): 
Do you want to allow SNMPv3 read-write user based access (default = y): n
Do you want to allow SNMPv3 read-only user based access (default = y): n
Do you want to allow SNMPv1/v2c read-write community access (default = y): n
Do you want to allow SNMPv1/v2c read-only community access (default = y): 

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

The community name to add read-only access for: public
The hostname or network address to accept this community name from [RETURN for 
all]: 
The OID that this community should be restricted to [RETURN for 
no-restriction]: 

Finished Output: rocommunity  public  
Do another rocommunity line? (default = y): n
**************************************** 
*** Beginning trap destination setup ***
**************************************** 
Do you want to configure where and if the agent will send traps? (default = y): 
n
**************************************** 
*** Beginning monitoring setup ***
**************************************** 
Do you want to configure the agent's ability to monitor various aspects of your 
system? (default = y): n


The following files were created:

  snmpd.conf  

These files should be moved to /usr/share/snmp if you
want them used by everyone on the system.  In the future, if you add 
the -i option to the command line I'll copy them there automatically for you.

Or, if you want them for your personal use only, copy them to
/users/support/daves/.snmp .  In the future, if you add the -p option to the
command line I'll copy them there automatically for you.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to