Link to home
Start Free TrialLog in
Avatar of rakesh k
rakesh k

asked on

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.
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

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?
Avatar of rakesh k
rakesh k

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
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/
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
The suggestion about username seems to have solved the problem