i want configure snmpv3 in my project i am using jdmk( snmpAdaptor.snmpV3UsmTrap(gent1, serverUpOid, varList, new SnmpTimeticks(1))) , while sending trap while giving error while preparing message from pdu for sending trap (SNMPSECURITYEXCEPTION),  what is the reason for this any one can help me pease, i am struggling from past two days.
rakesh kAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bernard S.CTOCommented:
Do you know if the problem comes from your (Java) local client or from the remote server which you want to monitor thru snmp?

How is configured this last one? Is Xinet working there? Is port 161 open? Any restriction on IPs allowed to probe?
rakesh kAuthor Commented:
actually i am sending request like this for authnopriv user

  snmpAdaptor.snmpV3UsmTrap(snmpInetAddress, "myuser", SnmpDefinitions.authNoPriv, "TEST-CONTEXT", serverUpOid, varList);

it giving error like this User myuser unknown.

may be due to i'am not sending md5 or sha security type,please clarify me, how to set these md5 and sh to snmpAdaptor to resolve User myuser unknown.
nociSoftware EngineerCommented:
are you using a username that exists:   myuser unknown seems to hint otherwise.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Discover the Answer to Productive IT

Discover app within WatchGuard's Wi-Fi Cloud helps you optimize W-Fi user experience with the most complete set of visibility, troubleshooting, and network health features. Quickly pinpointing network problems will lead to more happy users and most importantly, productive IT.

Bernard S.CTOCommented:
Not sure I understand fully.
One interpretation of what you write:
1 - you want to get data thru snmp
2 - but access to the server has a first layer with auth-type login

Is that correct?
It seems that you currently have a problem with auth layer

For SNMP layer, have you whitelisted the calling IP?
Bernard S.CTOCommented:
Hi Rakesh,

Is your problem solved?
If SNMPing to a Linux host, check /etc/default/snmp as well as snmpd.conf and snmp.conf in /etc/snmp/
Bernard S.CTOCommented:
Hi Rakesh,
Did you solve your issue? If yes, maybe you can explain here your solution
If no, and if you are still interested in finding a solution, maybe you can give additional details
Bernard S.CTOCommented:
The suggestion about username seems to have solved the problem
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.