Bug 866853
| Summary: | RHEVM-CLI: disable output pagination via config file | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ilia Meerovich <iliam> | |
| Component: | ovirt-engine-cli | Assignee: | Michael Pasternak <mpastern> | |
| Status: | CLOSED ERRATA | QA Contact: | Ilia Meerovich <iliam> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | low | |||
| Version: | 3.1.0 | CC: | aburden, bazulay, cboyle, dyasny, ecohen, edolinin, iheim, italkohe, jmann, oramraz, Rhev-m-bugs, sgordon, sgrinber, ykaul | |
| Target Milestone: | --- | Keywords: | FutureFeature | |
| Target Release: | 3.2.0 | Flags: | dyasny:
Triaged+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | infra | |||
| Fixed In Version: | SF4 | Doc Type: | Enhancement | |
| Doc Text: |
A new feature has been added that allows output pagination to be disabled. This has been done to assist with automation and testing.This is done by adding 'autopage = False' value in the .rhevmshellrc file.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 877151 891722 (view as bug list) | Environment: | ||
| Last Closed: | 2013-06-10 20:28:06 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | 891722 | |||
| Bug Blocks: | 875920, 877151 | |||
|
Description
Ilia Meerovich
2012-10-16 07:48:27 UTC
it's disabled by default when executing script (-f/--file) which is works for your use-case. "-f FILE, --file=FILE read commands from FILE instead of stdin" is not enought, please provide an example how can I use it when I will need to do query, process information and put it back. for example: how can i write script that do query, getting need information and running command with this information by using this option? rhevm-shel is combined rhevm & linux shell environment, you can use linux tools to filter and process the output at runtime: 1. run rhevm command and process the output saving it in to data holder ==============================================================+======== [RHEVM shell (connected)]# list vms | grep name > vms.txt 2. create new script at runtime =============================== [RHEVM shell (connected)]# !less vms.txt | sed s/'name :'/'action vm'/ | sed -e 's/$/ start/' > new_script_to_run.txt 2. invoke new script at runtime =============================== [RHEVM shell (connected)]# file new_script_to_run.txt * see the files output in shell during dev as "!less new_script_to_run.txt" * i believe it answers all your (and users) needs for testing and scripting i've created wiki example [1] using mentioned above. [1] http://wiki.ovirt.org/wiki/CLI#Run_all_vms Thanks Michael. from my experience with cli (it comes from embedded systems like switches) I can tell you that many users would like to use expect with scripting language that will be readable days after that script was written. Also If company already uses/develops some king of framework, it will use perl/python/tcl stuff rather bash stuff and it means using expect All what i'm asking is to give user option to disable paging so he will be able to use any language that he wants. For example: Now I should write wrapper for bash in python. Why you are insisting so mach? (In reply to comment #5) > Thanks Michael. > > from my experience with cli (it comes from embedded systems like switches) I > can tell you that many users would like to use expect with scripting > language that will be readable days after that script was written. > > Also If company already uses/develops some king of framework, it will use > perl/python/tcl stuff rather bash stuff and it means using expect > > All what i'm asking is to give user option to disable paging so he will be > able to use any language that he wants. > > For example: Now I should write wrapper for bash in python. > Why you are insisting so mach? insist?, ilia, i just replied to your RFE Description and Comment 2 (that enduser have to deal with file output redirection in scripts), saying that it's disabled by default during script execution. this RFE should be called "disable output redirection to ease testing efforts" To sum up what I'm acking: Disabling auto scrolling via configuration. Default value as today for backwards compatibility ec069fc807716e065b8eb3c8d626ae87810513b0 paging disabling is done via 'no_paging = True' configuration value. 1. run shell to update configuration file with new key 2. modify ~/.ovirtshellrc or ~/.rhevmshellrc (depends on your distribution). verified with rhevm-cli-3.2.0.3-1.el6ev.noarch the configuration key of this feature was eventually renamed to 'autopage' Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0890.html |