Deploying artifacts and other metadata using the command line

You deploy specific artifacts and metadata from a source MashZone NextGen Server to a target MashZone NextGen Server using the export and import commands.

Important: You cannot use export and import commands when the MashZone NextGen version for the source and target MashZone NextGen Servers are different:

In addition to the basic metadata for an artifact, a successful deployment must include related metadata, related files, extensions the artifact may use and any other artifacts that the artifact depends on.

The export and import commands automate deployment for most of this data, with some specific limitations that require manual deployment steps.

Procedure

  1. Export the specific artifacts that you want to deploy to another MashZone NextGen Server and any artifacts that they may use.

    See the following topic for instructions using these MashZone NextGen export commands:

    Export users, groups, and role assignments

    Export dashboards

    Export data feeds

    Export aliases

  2. Copy the files for any extensions used by the exported artifacts from the MashZoneNG-config folder for the source MashZone NextGen Server to the MashZoneNG-config folder for the target MashZone NextGen Server.

    Note: The MashZoneNG-config folder may be an external configuration folder outside of the source and target MashZone NextGen Servers or it may be in the default locations. See Setting Up an External MashZone NextGen Configuration Folder for more information on MashZoneNG-config locations.

  3. Define datasources in the Admin Console for the target MashZone NextGen Server with matching names and JDBC drivers to the datasources in the source MashZone NextGenMashZone NextGen Server.

    See Manage data sources and drivers for instructions.

  4. Use the export files created earlier to import dashboards and data feeds, users, groups and user group assignments from the source MashZone NextGen Server.

    See the following topics for information on using these commands:

    Import dashboards

    Import data feeds

    Import users, user metadata and groups

    Import aliases

Table 1. Known Export/Import Limitations

 

Exported

Not Exported

Related Metatdata/ User Metadata

  • Users, groups and user group assignments if this data is tracked in the default MashZone NextGen User Repository and not in your LDAP Directory.
  • Datasources and their JDBC drivers that are used by dashboards and data feeds.
  • Datasources must be added to the target MashZone NextGen Server before you import any artifacts that use them or the import will fail.

MashZone NextGen Server Configuration

 

Configuration for the MashZone NextGen Server.