Oosten, Harry van | 1 Aug 15:33 2008
Picon

Using already hashed MD5 password

Hello, 

For collecting some PDU's through SNMPv3.0 I'll be getting already MD
hashed passwords. The frameworks expects plain text when creating an
UsmUser. 

Is there a way to use already hashed passwords

Thanks in advance.

Met vriendelijke groet / Kind Regards,

ing. Harry van Oosten

Software engineer

_________________________________________

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain
proprietary material, confidential information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then
please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
Jeff Ramin | 1 Aug 16:11 2008

Re: community name in agent


Thanks Frank.

So, just to be completely explicit about this - the community
name of a V2 agent would be changed by modifying rows in the
snmpCommunityTable?

Frank Fock wrote:
> Jeff,
> 
> These objects are standard SNMP objects and
> are therefore documented in the corresponding
> RFCs. For the SNMP-COMMUNITY-MIB
> see RFC 3584.
> 
> Best regards,
> Frank
> 
> Jeff Ramin schrieb:
>>
>> As I've posted before, I'm trying to figure out how to change the
>> community name of an existing MOServer...
>>
>> I've been looking at the source code, and came across this method
>> in the TestAgent:
>>
>>   protected void addCommunities(SnmpCommunityMIB communityMIB) {
>>     Variable[] com2sec = new Variable[] {
>>         new OctetString("public"),              // community name
>>         new OctetString("cpublic"),              // security name
(Continue reading)

Christian Defoy | 1 Aug 18:13 2008
Picon

NullPointerException in processReport()

Hi,

I am receiving a NullPointerException using SNMPv3 at AuthPriv level.
It is worth mentioning that I am using localized users.  The error
occurs when I am deliberately using a wrong authentication password:

        snmp.getUSM().addLocalizedUser( engineID, new OctetString(
"admin" ), AuthMD5.ID, security.passwordToKey( AuthMD5.ID, new
OctetString( "wrong" ), engineID ), PrivDES.ID,
security.passwordToKey( PrivDES.ID, AuthMD5.ID, new OctetString(
"password" ), engineID ) );

I have located the source of the problem in the Snmp$ReportProcessor
class in the processReport() method.

// if legal report PDU received, then resend request
if( resend )
{
   logger.debug( "Send new request after report." );
   ...
}
else
{
   boolean intime;
   synchronized( request )
   {
      intime = request.cancel();  // This here sets request.listener = null
   }
   // remove pending request
   // (sync is not needed as request is already canceled)
(Continue reading)

Wilson Burgos | 1 Aug 19:15 2008

SnmpRequest.java not logging errors

Hello,
	I'm using SNMP4j and I can't seem to log SNMP errors when debug
is enabled. I found out the SnmpRequest.java is dumping them to the
console only. Is this the intended behavior not log error messages?

public void requestStatusChanged(RequestStatusEvent event) {
      int newStatus = event.getStatus().getErrorStatus();
      setErrorStatus(newStatus);
      if (logger.isDebugEnabled() &&
          (newStatus != SnmpConstants.SNMP_ERROR_SUCCESS)) {
        new Exception("Error '"+                      

PDU.toErrorStatusText(event.getStatus().getErrorStatus())+
                      "' generated at: "+vb).printStackTrace();
      }
}

Thanks,
Wil
Mark Gorokhov | 1 Aug 19:45 2008

RE: SnmpRequest.java not logging errors

I support this request to remove all printStackTrace() from 
SNMP4J code and use only RuntimeExceptions. Other option is to
add error event listeners and let them decide what to do 
with the problem.

Mark G.

-----Original Message-----
From: snmp4j-bounces@...
[mailto:snmp4j-bounces@...] On
Behalf Of Wilson Burgos
Sent: Friday, August 01, 2008 1:16 PM
To: snmp4j@...
Subject: [SNMP4J] SnmpRequest.java not logging errors

Hello,
	I'm using SNMP4j and I can't seem to log SNMP errors when debug
is enabled. I found out the SnmpRequest.java is dumping them to the
console only. Is this the intended behavior not log error messages?

public void requestStatusChanged(RequestStatusEvent event) {
      int newStatus = event.getStatus().getErrorStatus();
      setErrorStatus(newStatus);
      if (logger.isDebugEnabled() &&
          (newStatus != SnmpConstants.SNMP_ERROR_SUCCESS)) {
        new Exception("Error '"+                      

PDU.toErrorStatusText(event.getStatus().getErrorStatus())+
                      "' generated at: "+vb).printStackTrace();
      }
(Continue reading)

Jeff Ramin | 1 Aug 23:25 2008

TestAgent community name


Pretty simple question - if I wanted to change the community
name in the TestAgent from "public" to "candy", which lines
would need to change in the properties file?

Thanks.

--

-- 
Jeffrey Ramin
Berbee
ramin@...
608.298.1024
Frank Fock | 2 Aug 08:10 2008

Re: SnmpRequest.java not logging errors

Hi,

There is IMHO no abnormal program event
that is "logged" to console and not forwarded
to the logging adapter. The event below is
a *normal* program event, since returning
a SNMP error status is a normal task of a
SNMP agent.

So, printing the stacktrace here in debug
mode is for debugging only, or do you
want to log each SNMP error returned
by the agent in production?

Best regards,
Frank

Mark Gorokhov schrieb:
> I support this request to remove all printStackTrace() from 
> SNMP4J code and use only RuntimeExceptions. Other option is to
> add error event listeners and let them decide what to do 
> with the problem.
>
> Mark G.
>
> -----Original Message-----
> From: snmp4j-bounces@...
[mailto:snmp4j-bounces@...] On
> Behalf Of Wilson Burgos
> Sent: Friday, August 01, 2008 1:16 PM
(Continue reading)

Frank Fock | 2 Aug 08:12 2008

Re: NullPointerException in processReport()

Hi Chris,

Yes, this seems to be a regression in the last version. Your
workaround is OK and will be part of the next version.

Best regards,
Frank

Christian Defoy schrieb:
> Hi,
>
> I am receiving a NullPointerException using SNMPv3 at AuthPriv level.
> It is worth mentioning that I am using localized users.  The error
> occurs when I am deliberately using a wrong authentication password:
>
>         snmp.getUSM().addLocalizedUser( engineID, new OctetString(
> "admin" ), AuthMD5.ID, security.passwordToKey( AuthMD5.ID, new
> OctetString( "wrong" ), engineID ), PrivDES.ID,
> security.passwordToKey( PrivDES.ID, AuthMD5.ID, new OctetString(
> "password" ), engineID ) );
>
> I have located the source of the problem in the Snmp$ReportProcessor
> class in the processReport() method.
>
> // if legal report PDU received, then resend request
> if( resend )
> {
>    logger.debug( "Send new request after report." );
>    ...
> }
(Continue reading)

Frank Fock | 2 Aug 08:15 2008

Re: community name in agent

Yes, communities are changed in the snmpCommunityTable,
but a v2 agent has nothing to do with communites. To be
precise, v2c is the community based SNMP version you
most likeyl referred to.

Best regards,
Frank

Jeff Ramin schrieb:
>
> So, just to be completely explicit about this - the community
> name of a V2 agent would be changed by modifying rows in the
> snmpCommunityTable?
>
>
> Frank Fock wrote:
>> Jeff,
>>
>> These objects are standard SNMP objects and
>> are therefore documented in the corresponding
>> RFCs. For the SNMP-COMMUNITY-MIB
>> see RFC 3584.
>>
>> Best regards,
>> Frank
>>
>> Jeff Ramin schrieb:
>>>
>>> As I've posted before, I'm trying to figure out how to change the
>>> community name of an existing MOServer...
(Continue reading)

Eugene R. Snider | 2 Aug 17:36 2008
Picon

Eclipse based SNMP4J agent

Folks,

I just released a complete Agent implementation using the Eclipse Rich
Client Platform and the SNMP4J packages. It's available under the GPL
and for folks who are comfortable with the Eclipse RCP infrastructure 
ready to be rebranded and rolled out.

Designed for rapid prototyping and device integration the EzSNMP UDP
agent accepts CSV format ascii strings from the drivers and maps them
into the SNMP interface including trap propagation. Should easily
integrate with new mib interfaces generated by AgentPro to provide a
proof of concept platform for new devices.

To find out more visit:
http://eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1284.html

For more information about the Eclipse IDE and delivery platform visit:
http://www.eclipse.org

Gene

Gmane