Hi Greeting:
   
        I encountered the following several error messages while I tried to run snmpd 
in test mode and run the snmpconf command to create the snmpd.conf file. 

###################################################
shell> ./snmpd -f -L -d -p 9999
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 snmpd.conf file for this 
agent.
Error opening specified endpoint "udp:161"
Server Exiting with code 1
###################################################

        I found one snmpd.conf from another system - I don't know who created or 
placed that file. It could be copied from some where because I had the same problem of 
running hte snmpconf -g basic_setup

###################################################
shell> /usr/local/share/snmp/snmpconf/snmpd.conf$ snmpconf -g basic_setup
Not enough arguments for mkdir at /usr/local/bin/snmpconf line 174, near 
""$ENV{HOME}/.snmp")"
Execution of /usr/local/bin/snmpconf aborted due to compilation errors.
###################################################

        I ran the snmpd in testng mode again. I got the following message

###################################################
shell> .../agent/snmpd -f -L -d -p 9999
/usr/local/share/snmp/snmpd.conf: line 25: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 26: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 27: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 28: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 29: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 30: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 31: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 32: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 33: Warning: Unknown token: group.
/usr/local/share/snmp/snmpd.conf: line 36: Warning: Unknown token: view.
/usr/local/share/snmp/snmpd.conf: line 37: Warning: Unknown token: view.
/usr/local/share/snmp/snmpd.conf: line 38: Warning: Unknown token: view.
/usr/local/share/snmp/snmpd.conf: line 41: Warning: Unknown token: access.
/usr/local/share/snmp/snmpd.conf: line 42: Warning: Unknown token: access.
/usr/local/share/snmp/snmpd.conf: line 43: Warning: Unknown token: access.
Error opening specified endpoint "udp:161"
Server Exiting with code 1

###################################################

        If you had encountered the same problems before and had solution I'd 
appreciate you can share me your solution.  I also like to know what the error message 
mean in "error opening endpoint "udp:161". The command line option of the snmpd 
testing mode was exactly copied from the manual page of net-snmp web tutorial.  My 
net-snmp version is 5.1.1.

Thanks a lot!
Jim 

Reply via email to