No, I haven't resolved this yet. The netsnmp_config() looks interesting, is it 
as simple as 
        netsnmp_config("net-snmp-create-v3-user -a MD5 -A testkey -x DES -X 
testkey Username");

how would I go about updating users? Would it be easier to delete the user and 
"recreate", using the netsnmp_config() for both?
Thanks. 

-----Original Message-----
From: NetSNMP Mailbox [mailto:net-snmp-m...@freesnmp.com] On Behalf Of Robert 
Story
Sent: Tuesday, July 07, 2015 8:14 PM
To: Charles Stahl
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: adding snmp user through API

On Tue, 21 Apr 2015 23:13:25 +0000 Charles wrote:
CS> I am in the process of writing some c code along with the net-snmp 
CS> library to create/update snmp users. I have found the function 
CS> "create_user_from_session" but I'm not sure if this is the correct 
CS> function to call or its proper usage, I have started snmpd with the 
CS> -DALL option but don't see any additional output when the 
CS> create_user_from_session function is called. Any help in creating 
CS> snmp users through the API is greatly appreciated

Hi Charles,

Did you ever figure this out? Adding users is pretty easy. You can simply build 
up a snmpd.conf style text string and pass it to netsnmp_config(). Updating 
users is a bit trickier.

Robert



This transmission may contain sensitive, confidential and/or privileged
information. The sender does not waive any privilege or confidentiality in the
event of an inadvertent transmission to an unauthorized recipient. In the event
of such a transmission, please kindly contact the sender and delete all copies 
of
email. It is the recipient's responsibility to check this email and any
attachments for viruses. Mercury Security and the sender accept no 
responsibility
whatsoever for any loss suffered as a result of a virus entering the recipient's
computer system. Thank you.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to