export

Export configurations, data, logs and stack-traces.

export config

Export configuration properties for a member or members. If you do not specify any parameters, all member configuration will be exported.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
export config [--member=value(,value)*] [--group=value(,value)*] 
[--dir=value] 
member Name/Id of the member(s) whose configuration will be exported.
group Group(s) of members whose configuration will be exported.
dir Directory to which the exported configuration files will be written.
Example Commands:
export config
export config --member=member1
Sample Output:
gfsh>export config --member=member1
Downloading Cache XML file: c:\PivotalGemFire70\Latest\.\member1-cache.xml
Downloading properties file: c:\PivotalGemFire70\Latest\.\member1-gf.properties

export data

Export user data from a region to a file.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
export data --region=value --file=value --member=value 
region Required. Region from which data is to be exported.
file Required. File to which the exported data is to be written. The file must have an extension of ".gfd".
member Required. Name/Id of a member that hosts the region. The data will be exported to the specified file on the host where the member is running.
Example Commands:
export data --region=region2 --file=region2_20121001.gfd --member=server2
 
Sample Output:
 gfsh>export data --region=region2 --file=region2_20121001.gfd --member=server1
Data succesfully exported from region : region2 to file : C:\PivotalGemFire70\
Latest\server1\region2_20121001.gfd on host : 192.168.129.129
 

export logs

Export/dump logs to a given directory.

All files that have logs in the specified time range will be exported. If no time range is specified, all logs will be exported.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
export logs --dir=value [--group=value(,value)*] [--member=value] [--log
-level=value] [--only-log-level=value] [--merge-log=value] [--start-time=value]
[--end-time=value]
dir Required. Directory to which log files will be written.
group Group of members whose log files will be exported.
member Name/Id of the member whose log files will be exported.
log-level Minimum level of log entries to export. Valid values are: none, error, info, config, fine, finer and finest. The default is "info".
only-log-level Whether to only include those entries that exactly match the --log-level specified.
merge-log Whether to merge logs after exporting to the target directory.
start-time Log entries that occurred after this time will be exported. The default is no limit. Format: yyyy/MM/dd/HH/mm/ss/SSS/z OR yyyy/MM/dd
end-time Log entries that occurred before this time will be exported. The default is no limit. Format: yyyy/MM/dd/HH/mm/ss/SSS/z OR yyyy/MM/dd
Example Commands:
export logs --dir=data/logs
Sample Output:
gfsh>export logs --dir=data/logs
Successfully exported to directory data/logs

export stack-traces

Export the stack trace for a member or members.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
export stack-traces --file=value [--member=value] [--group=value]
file Required. Filename to which the stack-traces will be written.
member Name/Id of the member whose log files will be exported.
group Group of members whose log files will be exported.
Example Commands:
export stack-traces --file=stack.txt
Sample Output:
gfsh>export stack-traces --file=stack.txt
stack-trace(s) exported to file: C:\PivotalGemFire70\Latest\locator1\stack.txt
On host : GemFireStymon