Listing more than 20 Lifecycle Environments with hammer
For organizations with more than 20 lifecycle environments, does anyone know a way to force hammer to display more than 20?
Example:
# hammer lifecycle-environment list --organization-label MLB_BNSF
---|---------------------|--------
ID | NAME | PRIOR
---|---------------------|--------
62 | MLB_BNSF_SI_G54_ZAB | Library
50 | MLB_BNSF_SI_G54_TST | Library
78 | MLB_BNSF_SI_G54_RMP | Library
58 | MLB_BNSF_SI_G54_RHS | Library
66 | MLB_BNSF_SI_G54_ORA | Library
74 | MLB_BNSF_SI_G54_OEM | Library
54 | MLB_BNSF_SI_G54_MGT | Library
70 | MLB_BNSF_SI_G54_MDB | Library
46 | MLB_BNSF_SI_G54_JHQ | Library
42 | MLB_BNSF_SI_G54_JDC | Library
38 | MLB_BNSF_SI_G54_APP | Library
61 | MLB_BNSF_SI_G53_ZAB | Library
49 | MLB_BNSF_SI_G53_TST | Library
77 | MLB_BNSF_SI_G53_RMP | Library
57 | MLB_BNSF_SI_G53_RHS | Library
65 | MLB_BNSF_SI_G53_ORA | Library
73 | MLB_BNSF_SI_G53_OEM | Library
53 | MLB_BNSF_SI_G53_MGT | Library
69 | MLB_BNSF_SI_G53_MDB | Library
45 | MLB_BNSF_SI_G53_JHQ | Library
---|---------------------|--------
We have way more than what hammer is showing us.
Andy
Responses
Interesting.. the command will tell you to use --per-page, but those options aren't available
# hammer lifecycle-environment list --organization-id 1
---|---------|--------
ID | NAME | PRIOR
---|---------|--------
3 | PROD | LAB
1 | Library |
2 | LAB | Library
12 | 9 | Library
11 | 8 | Library
10 | 7 | Library
9 | 6 | Library
8 | 5 | Library
7 | 4 | Library
6 | 3 | Library
5 | 2 | Library
22 | 19 | Library
21 | 18 | Library
20 | 17 | Library
19 | 16 | Library
18 | 15 | Library
17 | 14 | Library
16 | 13 | Library
15 | 12 | Library
14 | 11 | Library
---|---------|--------
Page 1 of 2 (use --page and --per-page for navigation)
# hammer --per-page 100 lifecycle-environment list --organization-id 1
Error: Unrecognised option '--per-page'
See: 'hammer --help'
Nice catch.. It's in the docs as well.. Just found it https://access.redhat.com/documentation/en/red-hat-satellite/6.2/single/hammer-cli-guide/#sect-CLI_Guide-Configuring_Hammer
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
