[SNMP4J] OID change

2010-03-04 Thread Fokusas
Hi,

I am writing subagent. I find only one way to send info to master agent:
Value = Test data;
subagent.addAgentCaps(session, new OctetString(), null,new
OctetString(Value));
But i can't change OID. How can i change OID?

Fokusas
___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


[SNMP4J] Subagent notify

2010-03-02 Thread Fokusas
Hi,

Like in agentx testagent i am traying to set value for 1.3.6.1.2.1.1.6.1:
subagent.notify(null, SnmpConstants.warmStart,
new VariableBinding[] {
new VariableBinding(new OID(1.3.6.1.2.1.1.6.1),
new
OctetString(SNMP4J-AgentX_Test-Subagent)) });
But when i check with snmpwalk -v 2c -c monitor localhost 1.3.6.1.2.1.1.6.1
i got this answer:
SNMPv2-MIB::sysLocation.1 = No Such Instance currently exists at this OID
What did i have to do to create new OID? Where is a problem?

Fokusas
___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


[SNMP4J] AgentX TestSubagent

2009-12-14 Thread Fokusas
Hi,

I want to set value for any OID like sysName (1.3.6.1.2.1.1.5.0). What
functions do i need to use or code to add in testsubagent?

Fokusas
___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


[SNMP4J] AgentX problem

2009-11-30 Thread Fokusas
Hi,

When i try to register OID with subagent, and master agent shows me this
message:
*SEVERE: ASN.1 parse error (message is not a sequence)
Nov 30, 2009 9:57:32 AM org.snmp4j.log.JavaLogAdapter log
SEVERE: java.io.IOException: Unexpected end of input stream at position 2
*
What does it mean?

Fokusas
___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Re: [SNMP4J] AgentX problem

2009-11-30 Thread Fokusas
I am trying master agent and subagent from agentX library:
http://www.snmp4j.org/snmp4j-agentx-1.2.2.zip. Compiled them with Eclipse.
MasterAgent starting parameters: tcp:127.0.0.1/705 udp:127.0.0.1/705,
subagents starting parameters: 127.0.0.1/705
I am working on Win 7 OS.

**

2009/11/30 Frank Fock f...@agentpp.com

 It means, someone send an incorrect message format.
 If you need more information, please provide more
 (i.e., versions, software you used for master and
 subagent, configuration..)

 Fokusas wrote:

 Hi,

 When i try to register OID with subagent, and master agent shows me this
 message:
 *SEVERE: ASN.1 parse error (message is not a sequence)
 Nov 30, 2009 9:57:32 AM org.snmp4j.log.JavaLogAdapter log
 SEVERE: java.io.IOException: Unexpected end of input stream at position 2
 *
 What does it mean?

 Fokusas
 ___
 SNMP4J mailing list
 SNMP4J@agentpp.org
 http://lists.agentpp.org/mailman/listinfo/snmp4j


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


___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j