[SNMP4J] Extracting Trap properties via SMI-PRO

Frank Fock fock at agentpp.com
Thu Jul 2 00:07:59 CEST 2015


Hi René,

The notification objects retrieval is not supported yet in version 1.6.0 
or earlier.
It will be added in version 1.7.0 which will be available as a free 
upgrade to
all 1.x users on next Monday (July 6th).

Hope this helps.

Best regards,
Frank

Am 01.07.2015 um 19:18 schrieb René Scholl:
> Dear all,
>
>   
>
> I am using SNMP4J - SMI -PRO within my application to compile MIB files and
> gather properties of managed objects specified within these files.
>
>   
>
> Whenever I look up a specific OID and it happens to be of type
> 'OBJECT_TYPE_SCALAR' or 'OBJECT_TYPE_COLUMN' I can cast it to
> 'SmiObjectType' or 'SmiValueType' and access the methods those interfaces
> offer.
>
>   
>
> I run into problems when the SmiObject  is of  SMI-Type 'TRAP_TYPE' or
> 'NOTIFICATION_TYPE'.  If I inspect such a before mentioned SmiObject -
> instance in a debugger,  I can see it contains an MIBNotifyType - Object
> offering the trap's enterprise attribute and contained varbinds.
>
>   
>
> However I cannot figure out how to access these information. I tried to cast
> the SmiObject to MibNotifyType without success. More over I did not find out
> any other interface or class I can utilize.
>
>   
>
> My goal is to extract  the trap's varbinds to gather further information on
> their syntax, potential range etc.
>
> How can i do that ?
>
>   
>
> Thank you in advance and kind regards,
>
> René
>
>   
>
>
> This email has been protected by YAC (Yet Another Cleaner) http://www.yac.mx
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://oosnmp.net/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list