[LU-12841] Add ability for lctl get_param to get subfield of YAML output Created: 09/Oct/19 Updated: 13/Apr/21 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | James A Simmons |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
It would be useful to allow "lctl get_param" to extract a subfield from a YAML-formatted output, such as "osc.*.import:max_brw_size" instead of having to use awk. I think "lctl get_param <param>:<key>" would work to print only the associated value for "<key>". There are not currently any parameters that contain a ':'. |