Prakash Kolandaivelu | 1 Oct 2009 10:24
Picon

SNMP4J:SNMPv3: SampleAgent SNMPv3 credentials

Hi Greatings,

I have downloaded the SNMP4J and SNMP4J Agent. I ran the SampleAgent.java. i
did snmpwalk on the simulated agent for SNMPV1 and v2 is works fine. but i
dont know the username and password for SNMPv3. i tried all the credetails
which ever i got in the net and your website. its not working. could you
please help in send me the credentials or link where i can find that.

Thanks for your help.

--

-- 
Thanks,
Prakash
Mobile: +919940082765
Saktyavesh ~ Lets make a Better Tomorrow
http://www.saktyavesh.org/
http://saktyavesh.blogspot.com/
Vision: To be a platform and an enabler for positive social change by
focusing on two critical areas of community development namely Education and
Healthcare
Prakash Kolandaivelu | 1 Oct 2009 10:38
Picon

Re: SNMP4J:SNMPv3: SampleAgent SNMPv3 credentials

I got the Answer

thanks...

2009/10/1 Prakash Kolandaivelu <visitprakashindia@...>

> Hi Greatings,
>
> I have downloaded the SNMP4J and SNMP4J Agent. I ran the SampleAgent.java.
> i did snmpwalk on the simulated agent for SNMPV1 and v2 is works fine. but i
> dont know the username and password for SNMPv3. i tried all the credetails
> which ever i got in the net and your website. its not working. could you
> please help in send me the credentials or link where i can find that.
>
> Thanks for your help.
>
> --
> Thanks,
> Prakash
> Mobile: +919940082765
> Saktyavesh ~ Lets make a Better Tomorrow
> http://www.saktyavesh.org/
> http://saktyavesh.blogspot.com/
> Vision: To be a platform and an enabler for positive social change by
> focusing on two critical areas of community development namely Education and
> Healthcare
>
>
>

(Continue reading)

Brice Fines | 1 Oct 2009 11:15
Picon

Problem with DefaultTCPTransportMapping

Hi Frank,

Please let me know if you need more information to reproduce it.

I made further tests.

I checked with previous releases, but I have the same problem using SNMP4J 
version 1.10.0 or 1.9.3d.

I make sure that commands over TCP are working (I mean not only the first 
one) with the following sequence:
1) send GET command to client 1 that is listenning over TCP.
2) get GET response from client 1 over TCP.
3) send GET command to client 2 that is listenning over TCP.
4) get GET response from client 2 over TCP.
5) send GET command to client 3 that is listenning over TCP.
6) get GET response from client 3 over TCP.
7) send GET command to client 4 that is not listenning over TCP.
8) get java.net.ConnectExecption in DefaultTCPTransportMapping.
9) send GET command to client 1 again.
10) get java.nio.ClosedChannelExceptionin DefaultTCPTransportMapping.

I also modified my class to send SNMP commands over UDP instead of TCP 
(i.e. DefaultUdpTransportMapping and UDP addresses) , and everything runs 
ok  (i.e. the clients that were working keep answering after failing to 
contact another client). So the problem seems to occurs only with 
DefaultTCPTransportMapping.

Thanks for the support. I hope this can be solved soon.

(Continue reading)

Vivi Zhang | 1 Oct 2009 15:27

Re: Problem with identical user name

Frank.

Thank you very much for quick response.

I see the usmUserTable is keyed by usmUser's SecurityName, and 
engineId.   So the USM.addUser() api has no problem to put two users in 
the userTable, as long as they have different engine id.

My next question is how to locate access group from vacmMib. 
In VacmMIB class, the addGroup api associates a securityName with a 
groupName.
  /    public void addGroup(int securityModel, OctetString 
securityName,  OctetString groupName, int storageType) 

/The key of the access group is (securityModel, securityName).   How to 
avoid that the second addGroup call override the entry created by the 
first addGroup call in the case I gave in my previous email:  two 
notification targets share same V3 username?

Thanks again.

Vivi

Frank Fock wrote:
> Hi Vivi,
>
> Yes, with SNMP4J you can use the same
> security/user name for different SNMPv3 entities
> (with different passphrases). In that case,
> you need to use localized keys instead of
(Continue reading)

Frank Fock | 1 Oct 2009 23:38
Favicon

Re: Problem with identical user name

The VACM is used for the local SNMP entity
only. Thus, there cannot be engine ID clashes.

Regards,
Frank

Vivi Zhang wrote:
> Frank.
> 
> Thank you very much for quick response.
> 
> I see the usmUserTable is keyed by usmUser's SecurityName, and 
> engineId.   So the USM.addUser() api has no problem to put two users in 
> the userTable, as long as they have different engine id.
> 
> My next question is how to locate access group from vacmMib. In VacmMIB 
> class, the addGroup api associates a securityName with a groupName.
>  /    public void addGroup(int securityModel, OctetString securityName,  
> OctetString groupName, int storageType)
> /The key of the access group is (securityModel, securityName).   How to 
> avoid that the second addGroup call override the entry created by the 
> first addGroup call in the case I gave in my previous email:  two 
> notification targets share same V3 username?
> 
> Thanks again.
> 
> Vivi
> 
> Frank Fock wrote:
>> Hi Vivi,
(Continue reading)

Frank Fock | 1 Oct 2009 23:39
Favicon

Re: Problem with DefaultTCPTransportMapping

Hi Brice,

The stack traces of 8) and 10) would help.

Best regards,
Frank

Brice Fines wrote:
> Hi Frank,
> 
> Please let me know if you need more information to reproduce it.
> 
> I made further tests.
> 
> I checked with previous releases, but I have the same problem using SNMP4J 
> version 1.10.0 or 1.9.3d.
> 
> I make sure that commands over TCP are working (I mean not only the first 
> one) with the following sequence:
> 1) send GET command to client 1 that is listenning over TCP.
> 2) get GET response from client 1 over TCP.
> 3) send GET command to client 2 that is listenning over TCP.
> 4) get GET response from client 2 over TCP.
> 5) send GET command to client 3 that is listenning over TCP.
> 6) get GET response from client 3 over TCP.
> 7) send GET command to client 4 that is not listenning over TCP.
> 8) get java.net.ConnectExecption in DefaultTCPTransportMapping.
> 9) send GET command to client 1 again.
> 10) get java.nio.ClosedChannelExceptionin DefaultTCPTransportMapping.
> 
(Continue reading)

Vivi Zhang | 2 Oct 2009 03:31

Re: Problem with identical user name

Frank:

I am new to SNMP,  SNMPv3.  Guess I missed something here.

RFC 3415 defines AccessNotifyViewName as follwing:

vacmAccessNotifyViewName OBJECT-TYPE
    SYNTAX       SnmpAdminString (SIZE(0..32))
    MAX-ACCESS   read-create
    STATUS       current
    DESCRIPTION "The value of an instance of this object identifies
                 the MIB view of the SNMP context to which this
                 conceptual row authorizes access for notifications.

                 The identified MIB view is that one for which the
                 vacmViewTreeFamilyViewName has the same value as the
                 instance of this object; if the value is the empty
                 string or if there is no active MIB view having this
                 value of vacmViewTreeFamilyViewName, then no access
                 is granted.
                "
    DEFVAL      { ''H }   -- the empty string
    ::= { vacmAccessEntry 7 }

And it defines vacmBasicGroup which contains the field of 
vacmAccessNotifyViewName.

In the SNMP4J  TestAgent, a v3NotifyGroup is defined as:

    vacmMIB.addViewTreeFamily(new OctetString("fullNotifyView"), new 
(Continue reading)

wafae alami | 2 Oct 2009 13:25
Picon

Traps address source ?

Hi everyone ,

In a snmp4j agent  , how could I set an address source for my traps ?

Thanks in advance

ouafae
Vivi Zhang | 2 Oct 2009 15:29

Re: Problem with identical user name

Frank:

I am new to SNMP,  SNMPv3.  Guess I missed something here.

RFC 3415 defines AccessNotifyViewName as follwing:

vacmAccessNotifyViewName OBJECT-TYPE
    SYNTAX       SnmpAdminString (SIZE(0..32))
    MAX-ACCESS   read-create
    STATUS       current
    DESCRIPTION "The value of an instance of this object identifies
                 the MIB view of the SNMP context to which this
                 conceptual row authorizes access for notifications.

                 The identified MIB view is that one for which the
                 vacmViewTreeFamilyViewName has the same value as the
                 instance of this object; if the value is the empty
                 string or if there is no active MIB view having this
                 value of vacmViewTreeFamilyViewName, then no access
                 is granted.
                "
    DEFVAL      { ''H }   -- the empty string
    ::= { vacmAccessEntry 7 }

And it defines vacmBasicGroup which contains the field of
vacmAccessNotifyViewName.

In the SNMP4J  TestAgent, a v3NotifyGroup is defined as:

    vacmMIB.addViewTreeFamily(new OctetString("fullNotifyView"), new
(Continue reading)

Frank Fock | 2 Oct 2009 21:14
Favicon

Re: Traps address source ?

The source address is automatically determined by the
NotificationOriginatorImpl.

Frank

wafae alami wrote:
> Hi everyone ,
> 
> In a snmp4j agent  , how could I set an address source for my traps ?
> 
> Thanks in advance
> 
> ouafae
> _______________________________________________
> SNMP4J mailing list
> SNMP4J@...
> http://lists.agentpp.org/mailman/listinfo/snmp4j

--

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com

Gmane