Wiki source code of What is the difference between SNMP4J-SMI and SNMP4J-SMI-PRO?
Last modified by Frank Fock on 2024/05/25 21:07
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | (% style="text-align: left;" %) |
2 | The differences between the two APIs are | ||
3 | |||
4 | 1. the license model | ||
5 | 1. the features | ||
6 | |||
7 | === License Model === | ||
8 | |||
9 | 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. | ||
10 | |||
11 | The SNMP4J-SMI-PRO license is a development site license for all employess at a specific company site (= postal address). | ||
12 | |||
13 | For both licenses, there are no runtime fees. | ||
14 | |||
15 | === Features === | ||
16 | |||
17 | 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. | ||
18 | |||
19 | SNMP4J-SMI-PRO includes all features of SNMP4J-SMI plus full access to all MIB information, including description, object syntax, default values, etc. | ||
20 | |||
21 | |=((( | ||
![]() |
3.1 | 22 | Functions (of the SmiManager class) |
![]() |
2.1 | 23 | )))|=((( |
24 | Description | ||
25 | )))|=((( | ||
26 | SNMP4J-SMI | ||
27 | )))|=((( | ||
28 | SNMP4J-SMI-PRO | ||
29 | ))) | ||
30 | |((( | ||
![]() |
3.1 | 31 | **[[compile>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#compile(java.io.File)]]**([[File>>url:http://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true]] textOrZipFile) |
![]() |
2.1 | 32 | |
![]() |
3.1 | 33 | **[[compile>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#compile(com.snmp4j.smi.NamedInputStream)]]**([[NamedInputStream>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/NamedInputStream.html]] mibFile) |
![]() |
2.1 | 34 | |
![]() |
3.1 | 35 | **compile**([[NamedInputStream>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/NamedInputStream.html]][] files, |
36 | [[CompilationMonitor>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/CompilationMonitor.html]] compilationMonitor, | ||
37 | [[SmiCompiler.TargetMode>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiCompiler.TargetMode.html]] compilerTargetMode, | ||
38 | [[SmiCompiler.OverwriteMode>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiCompiler.OverwriteMode.html]] overwriteMode, | ||
39 | [[SmiCompiler.Strictness>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiCompiler.Strictness.html]] strictness) | ||
40 | )))|Compile one or more MIB specification files into the internal MIB repository (memory or persistent cache).|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]]|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
41 | |**[[deleteModule>>url:file:///D:/source/svn/SNMP4J-SMI-PRO/target/site/apidocs/com/snmp4j/smi/SmiManager.html#deleteModule(java.lang.String,%20boolean)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] moduleName, boolean forceDeletion)|Remove a MIB module from the internal MIB repository (cache)|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]]|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
42 | |**[[listModules>>url:file:///D:/source/svn/SNMP4J-SMI-PRO/target/site/apidocs/com/snmp4j/smi/SmiManager.html#listModules()]]**()|List all available MIB modules in the internal MIB repository (cache)|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]]|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
![]() |
2.1 | 43 | |((( |
![]() |
3.1 | 44 | **[[loadModule>>url:file:///D:/source/svn/SNMP4J-SMI-PRO/target/site/apidocs/com/snmp4j/smi/SmiManager.html#loadModule(java.lang.String)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] moduleName) |
![]() |
2.1 | 45 | |
![]() |
3.1 | 46 | **[[unloadModule>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#unloadModule(java.lang.String)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] moduleName) |
47 | )))|Load/unload a MIB module from the MIB repository into the SmiManager memory (i.e., activate a MIB module for usage by the API)|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]]|[[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
![]() |
2.1 | 48 | |((( |
![]() |
3.1 | 49 | **format**(int[] value) |
![]() |
2.1 | 50 | |
![]() |
3.1 | 51 | **formatForRoundTrip**(int[] value) |
![]() |
2.1 | 52 | |
![]() |
3.1 | 53 | **[[format>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#format(org.snmp4j.smi.OID,%20org.snmp4j.smi.Variable,%20boolean)]]**([[OID>>url:http://www.snmp4j.org/doc/org/snmp4j/smi/OID.html?is-external=true]] instanceOID, [[Variable>>url:http://www.snmp4j.org/doc/org/snmp4j/smi/Variable.html?is-external=true]] variable, boolean withOID) |
![]() |
2.1 | 54 | )))|((( |
55 | Format an numeric OID value to a human readable object identifier with object name prefix. | ||
56 | |||
57 | |||
58 | Format a SNMP value to a human readable string using MIB information associated with the given OID. | ||
![]() |
3.1 | 59 | )))|((( |
![]() |
2.1 | 60 | |
61 | |||
![]() |
3.1 | 62 | [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] |
63 | )))|((( | ||
![]() |
2.1 | 64 | |
65 | |||
![]() |
3.1 | 66 | [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] |
![]() |
2.1 | 67 | ))) |
![]() |
3.1 | 68 | |(% colspan="1" %)((( |
69 | **[[parse>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#parse(java.lang.String)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] text) | ||
![]() |
2.1 | 70 | |
![]() |
3.1 | 71 | **[[parse>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#parse(int,%20java.lang.String)]]**(int smiSyntax, [[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] text) |
![]() |
2.1 | 72 | |
![]() |
3.1 | 73 | **[[parse>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#parse(org.snmp4j.smi.OID,%20java.lang.String)]]**([[OID>>url:http://www.snmp4j.org/doc/org/snmp4j/smi/OID.html?is-external=true]] classOrInstanceOID, [[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] text) |
![]() |
2.1 | 74 | |
![]() |
3.1 | 75 | **[[parseVariableBinding>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#parseVariableBinding(java.lang.String)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] text) |
76 | )))|(% colspan="1" %) Parse an OID string or variable string to an OID value and VariableBinding respectively.|(% colspan="1" %)((( | ||
![]() |
2.1 | 77 | |
78 | |||
![]() |
3.1 | 79 | [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] |
80 | )))|(% colspan="1" %)((( | ||
![]() |
2.1 | 81 | |
82 | |||
![]() |
3.1 | 83 | [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] |
![]() |
2.1 | 84 | ))) |
![]() |
3.1 | 85 | |(% colspan="1" %)**[[getIndexVariables>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#getIndexVariables(org.snmp4j.smi.OID,%20org.snmp4j.smi.OID)]]**([[OID>>url:http://www.snmp4j.org/doc/org/snmp4j/smi/OID.html?is-external=true]] table, [[OID>>url:http://www.snmp4j.org/doc/org/snmp4j/smi/OID.html?is-external=true]] index)|(% colspan="1" %)Gets the index Variable array for the sub-index values of a SNMP table from the given index OID (suffix).|(% colspan="1" %) [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]]|(% colspan="1" %) [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] |
86 | |(% colspan="1" %)((( | ||
87 | **[[findSmiObject>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#findSmiObject(org.snmp4j.smi.OID)]]**([[OID>>url:http://www.snmp4j.org/doc/org/snmp4j/smi/OID.html?is-external=true]] oid) | ||
![]() |
2.1 | 88 | |
![]() |
3.1 | 89 | **[[findSmiObject>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#findSmiObject(java.lang.String,%20java.lang.String)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] moduleName, [[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] objectName) |
90 | )))|(% colspan="1" %)Find and return the [[SmiObject>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiObject.html]] with the given object name in the given MIB module or by the given OID.|(% colspan="1" %) |(% colspan="1" %) [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
91 | |(% colspan="1" %)**[[findSmiModule>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#findSmiModule(java.lang.String)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] moduleName)|(% colspan="1" %)Find and return the [[SmiModule>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiModule.html]] with the specified name. |(% colspan="1" %) |(% colspan="1" %) [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
92 | |(% colspan="1" %)**[[findSmiObject>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiManager.html#findSmiObject(java.lang.String,%20com.snmp4j.smi.SmiObjectFilter)]]**([[String>>url:http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true]] moduleName, [[SmiObjectFilter>>url:http://ww.snmp4j.org/smi/doc/com/snmp4j/smi/SmiObjectFilter.html]]<S> filter) |(% colspan="1" %)Find a [[SmiObject>>url:http://www.snmp4j.org/smi/doc/com/snmp4j/smi/SmiObject.html]] by the given filter.|(% colspan="1" %) |(% colspan="1" %) [[image:https://doc.snmp.app/s/-yxgr8m/9012/8yg2g7/_/images/icons/emoticons/check.svg||alt="(tick)"]] | ||
![]() |
2.1 | 93 | |
![]() |
3.1 | 94 | (% class="auto-cursor-target" %) |
![]() |
2.1 | 95 |