Hi Robert,
Used snmpconf to generate snmp.conf and snmpd.conf attached are the
files.  These are very basic the agent have been defaulted to version
1.

I did run config.guess on the target system got the following error
"out of string space".  The issue with the logging i had disabled
logging.  Given below is the output of the "snmpd -H".  Any help is
appreciated.

# snmpd -H
No log handling enabled - turning on stderr logging
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.
Configuration directives understood:
  In snmpd.conf and snmpd.local.conf:
    authtrapenable           1 | 2              (1 = enable, 2 = disable)
    trapsink                 host [community] [port]
    trap2sink                host [community] [port]
    informsink               host [community] [port]
    trapsess                 [snmpcmdargs] host
    trapcommunity            community-string
    agentuser                userid
    agentgroup               groupid
    agentaddress             SNMP bind address
    quit                     (1|yes|true|0|no|false)
    leave_pidfile            (1|yes|true|0|no|false)
    injectHandler            injectHandler NAME INTONAME [BEFORE_OTHER_NAME]
    add_row                  table_name indexes... values...
    com2sec                  [-Cn CONTEXT] secName
IPv4-network-address[/netmask] community
    com2secunix              [-Cn CONTEXT] secName sockpath community
    createUser               username (MD5|SHA) passphrase [DES [passphrase]]
    group                    name v1|v2c|usm|... security
    access                   name context model level prefx read write notify
    view                     name type subtree [mask]
    rwcommunity              community [default|hostname|network/bits [oid]]
    rocommunity              community [default|hostname|network/bits [oid]]
    rwuser                   user [noauth|auth|priv [oid]]
    rouser                   user [noauth|auth|priv [oid]]
    sysdescr                 description
    syslocation              location
    syscontact               contact-name
    sysname                  node-name
    sysservices              NUMBER
    sysobjectid              OID
    engineID                 string
    engineIDType             num
    engineIDNic              string
  In snmp.conf and snmp.local.conf:
    doDebugging              (1|0)
    debugTokens              token[,token...]
    logTimestamp             (1|yes|true|0|no|false)
    printNumericEnums        (1|yes|true|0|no|false)
    printNumericOids         (1|yes|true|0|no|false)
    escapeQuotes             (1|yes|true|0|no|false)
    dontBreakdownOids        (1|yes|true|0|no|false)
    quickPrinting            (1|yes|true|0|no|false)
    numericTimeticks         (1|yes|true|0|no|false)
    oidOutputFormat          integerValue
    suffixPrinting           integerValue
    extendedIndex            (1|yes|true|0|no|false)
    printHexText             (1|yes|true|0|no|false)
    printValueOnly           (1|yes|true|0|no|false)
    dontPrintUnits           (1|yes|true|0|no|false)
    hexOutputLength          integerValue
    dumpPacket               (1|yes|true|0|no|false)
    reverseEncodeBER         (1|yes|true|0|no|false)
    defaultPort              integerValue
    defCommunity             string
    noTokenWarnings          (1|yes|true|0|no|false)
    noRangeCheck             (1|yes|true|0|no|false)
    persistentDir            string
    tempFilePattern          string
    noDisplayHint            (1|yes|true|0|no|false)
    16bitIDs                 (1|yes|true|0|no|false)
    clientaddr               string
    serverSendBuf            integerValue
    serverRecvBuf            integerValue
    clientSendBuf            integerValue
    clientRecvBuf            integerValue
    defSecurityModel         string
    defSecurityName          string
    defContext               string
    defPassphrase            string
    defAuthPassphrase        string
    defPrivPassphrase        string
    defAuthMasterKey         string
    defPrivMasterKey         string
    defAuthLocalizedKey      string
    defPrivLocalizedKey      string
    defVersion               1|2c|3
    defAuthType              MD5|SHA
    defPrivType              DES|AES
    defSecurityLevel         noAuthNoPriv|authNoPriv|authPriv

Thanks,
Sridhar

On 12/23/05, Robert Story <[EMAIL PROTECTED]> wrote:
> On Thu, 22 Dec 2005 22:49:45 +0530 Sridhar wrote:
> SA> I have been trying to compile net-snmp to run on uClinux system on
> SA> ML401 board.  The make was exiting with an error "Invalid
> SA> configuration mb not  recognized".  This i traced to the config.sub.
> SA> In this file I made a change in the that file.
>
> How did you configure net-snmp? Can you run config.guess on the target system
> and tell us what it reports?
>
> SA> Now that question out of way, i have another small issue.  Now i got
> SA> the snmpd binary, but when i try to run it, it exits with error 1.
>
> Did you check the log files to see why it exited?
>
> SA> This is possible because the snmpd is not able to file the snmp.conf
> SA> and snmpd.conf files to load the configuration.
>
> No, it shouldn't exit without these files. Something else is failing.
>
> --
> NOTE: messages sent directly to me, instead of the lists, will be deleted
>      unless they are requests for paid consulting services.
>
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
>
> You are lost in a twisty maze of little standards, all different.
>
###########################################################################
#
# snmp.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Output style options
#
#   This section allows you to control how the output of the
#   various commands will be formated

# logtimestamp: Should timestamps be shown on the output
#   arguments: (1|yes|true|0|no|false)

logtimestamp  1

# printnumericenums: Print enums numericly or textually
#   command line equivelent: -Oe
#   arguments: (1|yes|true|0|no|false)

printnumericenums  1

# printnumericoids: Print OIDs numericly or textually
#   command line equivelent: -On
#   arguments: (1|yes|true|0|no|false)

printnumericoids  1

# dontbreakdownoids: When OIDs contain a index to a table, they are broken
#   into the displayable pieces and shown to you.
#   For example the oid vacmSecurityModel.0.3.119.101.115
#   is nicely broken down by
#   default and the string hidden in the oid is shown
#   to you as vacmSecurityModel.0."wes". This token and the -Ob
#   option diables this feature and displays it as
#   vacmSecurityModel.0.3.119.101.115 again.
#   command line equivelent: -Ob
#   arguments: (1|yes|true|0|no|false)

dontbreakdownoids  0

# quickprinting: Make the output simple for quick parsing
#   This option removes the equal sign and value identifies leaving
#   just the oid and the value on the output for easier parsing in scripts
#   command line equivelent: -Oq
#   arguments: (1|yes|true|0|no|false)

quickprinting  0

# numerictimeticks: Print timeticks as a number and not a time-string
#   command line equivelent:
#   arguments: (1|yes|true|0|no|false)

numerictimeticks  0

# suffixprinting: Shorten OIDs printed to the screen
#   possible values:
#   -  0:  UCD-style.  OIDs are displayed like:
#   -        system.sysUpTime.0
#   -  1:  deletes all by the last symbolic part of the OID:
#   -        system.sysUpTime.0 becomes sysUpTime.0
#   -  2:  is  a  variant  of this, adding the name of the MIB
#   -      that defined this object:
#   -        system.sysUpTime.0 becomes SNMPv2-MIB::sysUpTime.0
#   -      (This is the default with net-snmp v5)
#   command line equivelent: 0 = -Ou,  1 = -Os, 2 = -OS
#   arguments: (1|2)

suffixprinting  2



###########################################################################
# SECTION: Default Authentication Options
#
#   This section defines the default authentication
#   information.  Setting these up properly in your
#   ~/.snmp/snmp.conf file will greatly reduce the amount of
#   command line arguments you need to type (especially for snmpv3).

# defaultport: The default port number to use
#   This token specifies the default port number you want packets to 
#   be sent to and received from.
#   override: with -p on the command line.
#   arguments: portnum

defaultport  

# defversion: The default snmp version number to use.
#   override: with -v on the command line.
#   arguments: 1|2c|3

defversion  1

# defcommunity: The default snmpv1 and snmpv2c community name to use when 
needed.
#   If this is specified, you don't need to include the community
#   name as an argument to the snmp applications.  
#   override: with -c on the command line.
#   arguments: communityname

defcommunity  coredge-networks

# defsecurityname: The default snmpv3 security name to use when using snmpv3
#   override: with -u on the command line.
#   arguments: securityname

defsecurityname  cen






###########################################################################
# SECTION: Debugging output options
#
#   This section allows debugging output of various kinds to
#   be turned on or off.

# dumppacket: Print packets as they are received or sent
#   arguments: (1|yes|true|0|no|false)
#   command line equivelent: -d

dumppacket  1








###########################################################################
#
# 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.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  sridhar noauth 

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

rwcommunity  discovery 192.168.1.0 



###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  Bangalore

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  [EMAIL PROTECTED]

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 0*1 + 0*2 + 1*4 + 1*8 + 0*64









###########################################################################
# SECTION: Agent Operating Mode
#
#   This section defines how the agent will operate when it
#   is running.

# master: Should the agent operate as a master agent or not.
#   Currently, the only supported master agent type for this token
#   is "agentx".
#   
#   arguments: (on|yes|agentx|all|off|no)

master  yes
#master  agentx

# agentuser: The system user that the agent runs as.
#   arguments: name|#uid

agentuser  








Reply via email to