[SNMP4J] FW: READ-CREATE issue
Frank Fock
fock at agentpp.com
Mon May 12 13:04:50 CEST 2008
Hi Rachel,
AgenPro 2.7 generates ospfIfAuthType constants as:
public static final int colOspfIfAuthType = 20;
public static final int idxOspfIfAuthType = 19;
Have you manually modified the template or value
in the Java code? Are you using a pre 2.7 version?
If yes, which one?
Thanks in advance,
Frank Fock
Larson, Michelle R wrote:
> I figured out the solution to the problem I've been having. The MIB I'm
> parsing is the OspfMib contained in rfc1850.
>
> The ospfIfAuthType object is given the column number 20 for the
> ospfIfEntry and position 15 in the ospfIfGroup. When this gets
> generated by AgenPro, it has index value 15 and column value 20.
>
> Then when I do a createAndWait" and an snmpwalk, this is what I get:
> (A.B.C.D just represents some ip address)
>
> SNMPv2-SMI::mib-2.14.7.1. 3 .A.B.C.D.10 = IpAddress: 0.0.0.0
> SNMPv2-SMI::mib-2.14.7.1. 5 .A.B.C.D.10 = INTEGER: 1
> SNMPv2-SMI::mib-2.14.7.1. 6 .A.B.C.D.10 = INTEGER: 1
> SNMPv2-SMI::mib-2.14.7.1. 7 .A.B.C.D.10 = INTEGER: 1
> SNMPv2-SMI::mib-2.14.7.1. 8 .A.B.C.D.10 = INTEGER: 5
> SNMPv2-SMI::mib-2.14.7.1. 9 .A.B.C.D.10 = INTEGER: 10
> SNMPv2-SMI::mib-2.14.7.1. 10 .A.B.C.D.10 = INTEGER: 40
> SNMPv2-SMI::mib-2.14.7.1. 11 .A.B.C.D.10 = INTEGER: 120
> SNMPv2-SMI::mib-2.14.7.1. 12 .A.B.C.D.10 = INTEGER: 1
> SNMPv2-SMI::mib-2.14.7.1. 13 .A.B.C.D.10 = IpAddress: 0.0.0.0
> SNMPv2-SMI::mib-2.14.7.1. 14 .A.B.C.D.10 = IpAddress: 0.0.0.0
> SNMPv2-SMI::mib-2.14.7.1. 20 .A.B.C.D.10 = INTEGER: 0
>
> It seems to not know how to walk 15, 16, 17, 18, and 19. I can do
> snmpgets just fine on those OIDs. To fix the problem, made the index
> and column values for that field 19 and 20.
>
> Thanks
>
> Rachel
>
> -----Original Message-----
> From: Larson, Michelle R
> Sent: Wednesday, April 30, 2008 1:40 PM
> To: SNMP4J at agentpp.org
> Subject: [SNMP4J] FW: READ-CREATE issue
>
>
>> Hi-
>> I'm using SNMP4j-Agent version 1.1.4. I have two issues.
>>
>> First, the SNMPv2MIB.java that is included in this delivery does not
>> unregister the sysORLastChange MO, making it difficult for me to bring
>
>> down my agent and bring it back up again in the same JVM.
>>
>> The second issue I'm having is related to a READ-CREATE item in my
>> table. Column 17 in my table allows my manager to set createAndGo,
>> createAndWait, destroy, etc. If I set createAndGo or createAndWait on
>
>> the agent as the MIB is generated, it seems to create columns 2-16 in
>> the table. But it doesn't create column 17 or column 1. I try to use
>
>> an MO Change Listener on my table to add this column after the row is
>> created, but the change gets fired before the row is created, so I
>> can't add that column. Am I approaching this the wrong way? How do I
>
>> add column's 1 and 17? Could this be an indication of an issue in my
>> MIB?
>>
>> Thanks!
>>
>> Rachel
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list