Command Central Developer Reference : Using the Command Line Interface : Diagnostics Logs Commands : sagcc get diagnostic logs export file
sagcc get diagnostic logs export file
Exports one or more log files for a specified run-time component in a zip archive file.
Syntax
*Command Central syntax:
*To export log(s) for a specified run-time component:
sagcc get  diagnostics logs  node_alias runtime_componentid 
[logid+logid...]  export -o file  [options]
*To export all available logs for a specified run-time component:
sagcc get  diagnostics logs  node_alias runtime_componentid 
export -o file  [options]
*To export logs for all run-time components:
sagcc get  diagnostics logs  node_alias export -o file  [options]
*Not supported by Platform Manager.
  
 options:     
[{--debug | -d}]     
[{--error | -r} file]     
[{--format | -f} file]     
[{--log | -l} file]     
[{--password | -p} password]     
[{--quiet | -q}]     
[{--server | -s} url]     
[{--username | -u} user_name]
Arguments and Options
Argument or Option
Description
node_alias
Required. Specifies the alias name of the Platform Manager that manages the run-time component for which you want to retrieve information.
runtime_componentid
Required. Specifies the ID of the run-time component for which you want to retrieve information.
You can determine the IDs for run-time components using sagcc list inventory components.
[logid+logid...]
A list of IDs for the log(s) that you want to export. Use the + sign as separator.
You can determine the IDs for logs using sagcc list diagnostics logs.
-o file
Required. Specifies the name of the output file. If the file you specify does not exist, the command creates it.
For more information about the output file command, see output.
[options]
Optional. Refer to the command syntax for a list of the options the command supports. For a description of the options, see Common Options.
Examples When Executing on Command Central
*The run-time component with ID “OSGI-SPM” is managed by the Command Central registered as “is-dev”. The run-time component has logs with IDs “error.log” and “default.log”. Use the following command to export the two logs to a zip archive file with name “test.zip”.
sagcc get diagnostics logs  is-dev OSGI-SPM error.log+default.log export 
-o test.zip
*The run-time component with ID “OSGI-SPM” is managed by the Command Central registered as “is-dev”. Use the following command to export all available logs for the “OSGI-SPM” component to a zip archive file with name “test.zip”.
sagcc get diagnostics logs  is-dev OSGI-SPM export -o test.zip
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback