Searching for Packages
You can search for specific packages using the OSGi diagnostic tool.
- Procedure
- In ActiveMatrix Administrator, select Infrastructure > Diagnostic Console.
- Under Select node, select the required node.
- Click Packages Search Utility.
- In the search field, enter the package name or bundle ID and click
.
The details of the package are displayed as shown below:
Exporting the Search Results to a JSON File
You can export the search results (details of package and imported data) to a .json file. After the search results are displayed, click Export to JSON.
A.json
file is created, as shown below:
[ {"packageName": "org.eclipse.osgi.framework.internal.protocol.bundleentry", "symbolicName": "org.eclipse.osgi", "bundleId": "0", "version": "0.0.0", "state": "ACTIVE", "importedData": [] }, {"packageName": "org.eclipse.osgi.framework.internal.protocol", "symbolicName": "org.eclipse.osgi", "bundleId": "0", "version": "0.0.0", "state": "ACTIVE", "importedData": [] }, {"packageName": "org.eclipse.osgi.framework.internal.core", "symbolicName": "org.eclipse.osgi", "bundleId": "0", "version": "0.0.0", "state": "ACTIVE", "importedData": [ {"bundleId": 155, "importingBundles": [], "name": "<imports>", "removalPending": null, "version": "1.5.0.001", "state": "ACTIVE", "symbolicName": "com.tibco.amf.hpa.tibcohost.jca" }, {"bundleId": 559, "importingBundles": [], "name": "<imports>", "removalPending": null, "version": "1.7.0.002", "state": "ACTIVE", "symbolicName": "com.tibco.amf.runtime.implementationtype.
webapp" } ] }, {"packageName": "org.eclipse.osgi.framework.internal.protocol.reference", "symbolicName": "org.eclipse.osgi", "bundleId": "0", "version": "0.0.0", "state": "ACTIVE", "importedData": [] }, {"packageName": "org.eclipse.osgi.framework.internal.reliablefile", "symbolicName": "org.eclipse.osgi", "bundleId": "0", "version": "0.0.0", "state": "ACTIVE", "importedData": [] } ]
Exporting the Hierarchy of All Packages
You can export the hierarchy of all the OSGi packages to a .json file. After the search results are displayed, click Export All to JSON.
The hierarchy is exported to a JSON file, in a compressed format. The name of the compressed file has the following format:
AllOSGIPackageHierarchy-<node name>-<ID>.json
For example:
AllOSGIPackageHierarchy-SystemNode-1533724625946.json