Bug 535464 (RHQ-2157)

Summary: Be able to direct output to a file with various output options
Product: [Other] RHQ Project Reporter: Simeon Pinder <spinder>
Component: CLIAssignee: John Sanda <jsanda>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.3Keywords: SubTask
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-2157
Whiteboard:
Fixed In Version: 1.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 535941    

Description Simeon Pinder 2009-06-16 21:05:00 UTC

Comment 1 Simeon Pinder 2009-06-16 21:18:05 UTC
Given the limited screen real estate, not all of the commands returned content is displayed to the screen. 
In other words, details are truncated on display.  

Command input/output logging needs to be enabled so that all the operations and times for the operations is logged to a file of the users choosing. 

The file destination should be changeable from the settings command page. 

Comment 2 Jay Shaughnessy 2009-06-30 19:41:46 UTC
The summary fields for a service, if defined, will be set in the cli config.  When displaying back to the screen only the summary fields will be displayed.  We may also want to be able to set field exclusions for any output destination, some fields may just not be suitable for display.

finally, when directing to a file we may want to be able to specify a CSV format be used for easy import into a spreadsheet.

Comment 3 John Sanda 2009-09-03 13:21:01 UTC
Added support for file export in revs 4557 and 4567 with the new class Exporter. The class allows for results to be exported to a CSV file or a plain text file with the text being in tabular format. An instance of this class is made available to scripts as an implicit variable named exporter. Some examples of usage can be found at http://www.jopr.org/confluence/display/JOPR2/Running+the+Jopr+CLI#RunningtheJoprCLI-Exporter

Comment 4 Red Hat Bugzilla 2009-11-10 20:58:57 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2157