Urgent - Unknown User Name - SNMP

This is a discussion on Urgent - Unknown User Name - SNMP ; Hello, I have written an API to add a snmpv3 user.( Like net-snmp-config ) Before starting the agent,my API appends the two lines in appropriate files as below, createUser admin MD5 "intelinside" DES - /var/net-snmp/snmpd.conf rwuser admin - /usr/local/share/snmp/snmpd.conf ##################### ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Urgent - Unknown User Name

  1. Urgent - Unknown User Name

    Hello,

    I have written an API to add a snmpv3 user.( Like net-snmp-config )
    Before starting the agent,my API appends the two lines in appropriate
    files as below,

    createUser admin MD5 "intelinside" DES - /var/net-snmp/snmpd.conf
    rwuser admin - /usr/local/share/snmp/snmpd.conf
    ##################### Code #######################
    fprintf(fp,"createUser admin MD5 \"intelinside\" DES\n");
    fprintf(fp,"rwuser admin\n");
    #################################################
    After appending the above,agent starts and running.
    But snmpd is not reading the user details as i am getting " Unknown
    User name " for snmpget.
    If i check the usmUserTable,it has no entries.

    Can anyone help me?

    its,
    Pachi

    -------------------------------------------------------------------------
    This SF.net email is sponsored by: Microsoft
    Defy all challenges. Microsoft(R) Visual Studio 2008.
    http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
    _______________________________________________
    Net-snmp-coders mailing list
    Net-snmp-coders@lists.sourceforge.net
    https://lists.sourceforge.net/lists/...et-snmp-coders


  2. Re: Urgent - Unknown User Name

    >>>>> On Tue, 13 May 2008 14:24:46 +0530, "Pachiappan D" said:

    PD> I have written an API to add a snmpv3 user.( Like net-snmp-config )
    PD> Before starting the agent,my API appends the two lines in appropriate
    PD> files as below,

    Did you write the file when the agent was stopped? if it was already
    running it would get overwritten when the agent shut down.
    --
    Wes Hardaker
    Sparta, Inc.

    -------------------------------------------------------------------------
    This SF.net email is sponsored by: Microsoft
    Defy all challenges. Microsoft(R) Visual Studio 2008.
    http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
    _______________________________________________
    Net-snmp-coders mailing list
    Net-snmp-coders@lists.sourceforge.net
    https://lists.sourceforge.net/lists/...et-snmp-coders


+ Reply to Thread