[SNMP4J] SnmpNotificationMIB corrections

Joakim Althini joakim.althini at symsoft.com
Tue May 27 08:08:28 CEST 2008


I was using 1.2RC1, missed that you had released 1.2... 

Best regards

/Joakim


-----Original Message-----
From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
Behalf Of Frank Fock
Sent: den 26 maj 2008 23:17
To: Joakim Althini
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] SnmpNotificationMIB corrections

Hi Joakim,

As far as I know, these corrections are already included
in SNMP4J-Agent 1.2. Are you referring to that version?

Please always include the version you are using!

Regards,
Frank

Joakim Althini wrote:
> Hi, I've been using notification filters and had to make some corrections 
> 
> to SnmpNotificationMIB  to make it work. The first fix was suggested by 
> 
> Frank Fock (thanks), the rest are my own conclusions:
> 
>  
> 
> @@ -290,7 +290,8 @@
> 
>      MOTableRowFilter activeFilter =
> 
>          new
> RowStatus.ActiveRowsFilter(idxSnmpNotifyFilterProfileRowStatus);
> 
>      List profiles =
> 
> -        snmpNotifyFilterProfileEntryModel.getRows(paramsIndex,
paramsIndex,
> 
> +        snmpNotifyFilterProfileEntryModel.getRows(paramsIndex, 
> 
> +
paramsIndex.successor(),
> 
>                                                    activeFilter);
> 
>      if (profiles.size() == 0) {
> 
>        // no profile -> passes filter
> 
> @@ -298,8 +299,8 @@
> 
>      }
> 
>      OctetString profileName = (OctetString)
> 
>  
> ((MOTableRow)profiles.get(0)).getValue(idxSnmpNotifyFilterProfileName);
> 
> -    OID profileNameOID = profileName.toSubIndex(true);
> 
> -    OID profileNameOIDNext = profileNameOID.successor();
> 
> +    OID profileNameOID = profileName.toSubIndex(false);
> 
> +    OID profileNameOIDNext = null;
> 
>      activeFilter = new
> RowStatus.ActiveRowsFilter(idxSnmpNotifyFilterRowStatus);
> 
>      List filters =
> 
>          snmpNotifyFilterEntryModel.getRows(profileNameOID,
> 
>  
> 
>  
> 
> Best regards
> 
>  
> 
> /Joakim Althini, Symsoft
> 
> _______________________________________________
> 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
_______________________________________________
SNMP4J mailing list
SNMP4J at agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j



More information about the SNMP4J mailing list