What is the difference between SNMP4J-SMI and SNMP4J-SMI-PRO?

Version 2.1 by Admin on 2018/12/12 14:15

The differences between the two APIs are

  1. the license model
  2. the features

License Model

The SNMP4J-SMI license is an user license intended for personal use for individuals (not for companies). Although the 1.x license covers also the usage for comany employees, this will be changed with the 2.0 release.

The SNMP4J-SMI-PRO license is a development site license for all employess at a specific company site (= postal address).

For both licenses, there are no runtime fees.

Features

SNMP4J-SMI is designed for easy integration into SNMP4J and provides basic OID to object name and variable value to human readable string conversion based on (runtime) MIB information.

SNMP4J-SMI-PRO includes all features of SNMP4J-SMI plus full access to all MIB information, including description, object syntax, default values, etc.

Functions (of the SmiManager class)

Description

SNMP4J-SMI

SNMP4J-SMI-PRO

compileFile( textOrZipFile)

compileNamedInputStream( mibFile)

compileNamedInputStream
CompilationMonitor
SmiCompiler.TargetMode
SmiCompiler.OverwriteMode
SmiCompiler.Strictness([] files,  compilationMonitor,  compilerTargetMode,  overwriteMode,  strictness)

Compile one or more MIB specification files into the internal MIB repository (memory or persistent cache).

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

deleteModuleString

( moduleName, boolean forceDeletion)

Remove a MIB module from the internal MIB repository (cache)

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

List all available MIB modules in the internal MIB repository (cache)

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

loadModuleString( moduleName)

unloadModuleString( moduleName)

Load/unload a MIB module from the MIB repository into the SmiManager memory (i.e., activate a MIB module for usage by the API)

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

format(int[] value) 

formatForRoundTrip(int[] value)

formatOIDVariable( instanceOID,  variable, boolean withOID)

Format an numeric OID value to a human readable object identifier with object name prefix.

 

Format a SNMP value to a human readable string using MIB information associated with the given OID. 

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

parseString( text)

parseString(int smiSyntax,  text)

parseOIDString( classOrInstanceOID,  text)

parseVariableBindingString( text) 

 Parse an OID string or variable string to an OID value and VariableBinding respectively.

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

getIndexVariablesOIDOID

( table,  index)

Gets the index Variable array for the sub-index values of a SNMP table from the given index OID (suffix).

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

findSmiObjectOID( oid)

findSmiObjectStringString( moduleName,  objectName)

Find and return the SmiObject with the given object name in the given MIB module or by the given OID.

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

findSmiModuleString

( moduleName)

Find and return the SmiModule with the specified name. 

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg

findSmiObjectStringSmiObjectFilter

( moduleName, <S> filter)

  

Find a  SmiObject by the given filter.

 

 https://doc.snmp.app/s/en_GB/7901/04c8b7bf0a5b4889210956b8230224e43d124b25/_/images/icons/emoticons/check.svg