• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 57
  • Last Modified:

ISSUE WHILE SENDING TRAP USING SNMPV3( while using JDMK)

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.
0
rakesh k
Asked:
rakesh k
  • 5
1 Solution
 
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?
0
 
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

com.sun.management.snmp.usm.SnmpUsmUserNameException: 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.
0
 
nociSoftware EngineerCommented:
are you using a username that exists:   myuser unknown seems to hint otherwise.
1
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
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?
0
 
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/
0
 
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
0
 
Bernard S.CTOCommented:
The suggestion about username seems to have solved the problem
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now