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.
ASKER
actually i am sending request like this for authnopriv user
snmpAdaptor.snmpV3UsmTrap( snmpInetAd dress, "myuser", SnmpDefinitions.authNoPriv , "TEST-CONTEXT", serverUpOid, varList);
it giving error like this
com.sun.management.snmp.us m.SnmpUsmU serNameExc eption: 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.
snmpAdaptor.snmpV3UsmTrap(
it giving error like this
com.sun.management.snmp.us
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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/
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
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
How is configured this last one? Is Xinet working there? Is port 161 open? Any restriction on IPs allowed to probe?