Use > JMX Reference > Administration Methods > Package Manager JMX Methods

Package Manager JMX Methods

How to Deploy a Package

Follow these steps to deploy a package using the JMX console.

  1. Launch your Web browser and enter the following address: https://<server_name>:8443/jmx-console, where <server_name> is the name of the machine on which Universal CMDB is installed.

  2. Under UCMDB, click UCMDB:service=Packaging Services to open the JMX MBEAN View page.

  3. Locate deployPackages.

  4. In the Value box for the parameter customerID, enter the <customer id>.

  5. In the Value box for the parameter dir, enter the name of the folder that contains the package's zip file. Ensure that you include the full path to the folder.

  6. Note To deploy the package from the basic_packages directory, leave this box empty.

  7. In the Value box for the parameter packagesNames, enter the name of the packages. For details, see Package Manager JMX Methods.

  8. Select True to override job configurations changed in Universal Discovery. For details, see Discovery Modules/Jobs Window.

  9. Click Invoke to deploy the package.

How to View Package Deployment History

Each time you deploy packages, a report is created displaying the deployment status of those packages. Use the JMX console to view the deployment status report.

  1. Launch the Web browser and navigate to: http://<server_name>:8443/jmx-console, where <server_name> is the name of the machine on which Universal CMDB is installed.

  2. Under UCMDB, click UCMDB:service=Packaging Services to open the JMX MBEAN View page.

  3. Locate displayResourcesDeploymentHistory.

  4. In the Value box for the parameter customerID, enter the <customer id>.

  5. In the Value box for the parameter reportNum, enter the number of the report you want to view.

  6. Click Invoke to view the deployment status report of the packages.

How to Undeploy a Package

Follow these steps to undeploy a package using the JMX console.

  1. Launch the Web browser and navigate to: https://<server_name>:8443/jmx-console, where <server_name> is the name of the machine on which Universal CMDB is installed.

  2. Under UCMDB, click UCMDB:service=Packaging Services to open the JMX MBEAN View page.

  3. Locate undeployPackages.

  4. In the Value box for the parameter customerID, enter the <customer id>.

  5. In the Value box for the parameter packagesNames, enter the name of the package you want to remove. For details, see Package Manager JMX Methods.

  6. Click Invoke to undeploy the package.

How to Display Currently Deployed Packages

Follow these steps to display currently deployed packages using the JMX console.

  1. Launch the Web browser and navigate to: https://<server_name>:8443/jmx-console, where <server_name> is the name of the machine on which Universal CMDB is installed.

  2. Under UCMDB, click UCMDB:service=Packaging Services to open the JMX MBEAN View page.

  3. Locate displayDeployedPackages.

  4. In the Value box for the parameter customerID, enter the <customer id>.

  5. In the Value box for the parameter packagesNames, specify the names of the packages you want to display. For details, see Package Manager JMX Methods.

  6. Click Invoke to display the packages that are currently deployed.

How to Export Packages

Follow these steps to export resources from the CMDB to the server on which Universal CMDB is installed using the JMX console.

  1. Launch the Web browser and navigate to: https://<server_name>:8443/jmx-console, where <server_name> is the name of the machine on which Universal CMDB is installed.

  2. Under UCMDB, click UCMDB:service=Packaging Services to open the JMX MBEAN View page.

  3. Locate exportPackages.

  4. In the Value box for the parameter customerID, enter the <customer id>.

  5. In the Value box for the parameter packagesName, enter the name of the package you want to export. For details, see Package Manager JMX Methods.

  6. In the Value box for the parameter outputDir, enter the name of the folder on the Universal CMDB server to which you want to export the package's zip file. Ensure that you include the full path to the folder.

  7. In the Value box for the parameter userOnly, select one of the following:

    • True. Export only the custom packages.

    • False. Export both custom and factory packages.

  8. Click Invoke to export the package.