No such security service available

"Schmidt-Goertz, Ulrich" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <9D8B03A62798A24B95E5E64A16A89904027B151E@SRV-KOMMSYS.intern.plath.de>
Hello list,

I am trying to write a program that uses SNMP SET (v3) to modify an
agent's configuration. Being a total SNMP newbie, I took the example
code from the wiki and re-wrote it to perform a SET instead of a GET.
You can look at the resulting source, a little condensed, here:
http://pastebin.com/m2dbf4e2d

Now here's the problem: Whenever my program attempts to send the SET
message, I get the following output on stderr:

no such security service available: 3
snmp_build: unknown failure

Accordingly, snmp_synch_response returns 1 and the response PDU is NULL.

Now I'm wondering: What might cause this error? I am positive that there
is a compatible agent at the address I am sending to, because I can go
on the console and run

snmpget -v 3 -l authNoPriv -u [SNMP_USERNAME] -a MD5 -A [SNMP_PASSWORD]
[address] [MYOID1]

and get a proper response.

(BTW, I have noticed the behavior is exactly the same when I try to send
to an unreachable address. Is it OK that I can snmp_open a session even
if the remote host is down or firewalled?)

Any advice would be greatly appreciated.

Best regards,
Ulrich

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.