myarmexport
myarmexport -- exports ARM data to a database or file
The myarmexport command line tool is used to export any ARM data from one database type to another, to a XML or a MyARM data file.
Command line options
Usage:
myarmexport [options] export-url [appName][:tranName] [appName2][:tranName2]
- export-url
- URL-like database specification where to export the data to. See appendix "Database URL notation".
- appName:tranName, appName2:tranName2
- If specified, only export instances and/or definitions of ARM applications which match this application and/or transaction name. For details about specifying application and/or transaction names read the section "Application and transaction names".
In addition to the options listed below, the myarmexport command supports standard options described in appendix "Standard options" and the constraint options in appendix "Constraints options".
Entity selection options
With one or more of the following entity selection options entities are selected for exporting. If a name is omitted all instances of the appropriate entity are exported. Otherwise only the instances with the name(s) provided are exported.
- -a, --apps
- selects application instances to be exported.
- -t, --trans
- selects transactions instances to be exported.
- -m, --metrics
- selects system addresses to be exported.
- -u, --users
- selects users to be exported.
- -s, --systems
- selects system addresses to be exported.
- -r, --rts
- selects real time statistics (RTS) data to be exported.
- -e, --rte
- selects real time events to be exported.
- -l, --logs
- selects log messages to be exported.
- -c, --cfg
- selects runtime configuration to be exported.
Other options
- --all
- selects all ARM data to be exported.
- -d, --defs
- selects only ARM definitions for export. Without this option both definitions and instances are exported.
- -e name, --engine name
- selects the storage engine to use for the created database. Currently this is only supported for the MySQL database.
Example
ruppert@myarm /opt/myarm/data $ myarmexport --all myarm:///data.myarm Exported entities: Applications: Definitions 1 (Properties 0), Instances 4 (Properties 0) Transactions: Definitions 3 (Properties 0), Instances 40 (Properties 0) Metrics : Definitions 0, Instances 0 Systems : 1 Users : 0 Logs : 236 ruppert@myarm /opt/myarm/data $ ls -l data.myarm -rw-r--r-- 1 ruppert ruppert 33541 May 12 13:51 data.myarm
See Also
myarmoptions
,
myarmimport
,
myarmdefinition
,
myarmquery
, myarmconfig
, myarmmisc