export metaspace

Exports the definitions for the metaspace and its spaces (if any are currently defined) to a designated text file or to the screen.

Syntax

export metaspace [to <filepath>]

Remarks

The file that is created can be used as a parameter when invoking as-admin with the -i parameter, as shown below.

Example Using as-admin

Export a metaspace to a file by invoking export metaspace, including ’to’ and a filepath parameter. Use single- or double-quotes around the filepath:
   as-admin> export metaspace to 'C:\temp3\saved_metaspace.txt'
Quit as-admin:
   as-admin> quit
Launch as-admin with the -i flag and the filepath (no quotation marks):
   <TIBCO_HOME>\as\<version>\bin>as-admin.-i
   C:\temp3\saved_metaspace.txt

The output will indicate that the metaspace has been recreated and as-admin is now connected to this newly-created metaspace:

   Connected to metaspace ms

Parameters

The table shows parameters for this command.

export metaspace Parameters
Parameter Description
filepath Optional. The path to a location where the text file will be saved. If no filepath is given, the metaspace information is displayed on the screen.