X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fdoc%2Flctl-get_param.8;h=9ea1529e6a9c3e82f750fbf9d7f1cb1a4f4f597a;hb=955e38051765609fe3a661035c0fab2cfca733ce;hp=e1c992d05963ea443ef4b63962f21359324425ad;hpb=c5bec6a88a927506df5edaaec5a24602b32c6360;p=fs%2Flustre-release.git diff --git a/lustre/doc/lctl-get_param.8 b/lustre/doc/lctl-get_param.8 index e1c992d..9ea1529 100644 --- a/lustre/doc/lctl-get_param.8 +++ b/lustre/doc/lctl-get_param.8 @@ -3,7 +3,7 @@ lctl-get_param \- retrieve configuration parameters .SH SYNOPSIS .br -.IR "\fBlctl get_param " [ -F "] [" -n | -N "] [" -R "] <" parameter ...> +.IR "\fBlctl get_param " [ -F "] [" -H "] [" -n | -N "] [" -R "] <" parameter ...> .br .SH DESCRIPTION Get the value of the named Lustre or LNet @@ -36,6 +36,11 @@ parameters, respectively. is equivalent to .BR "lctl list_param -F" . .TP +.B -H +Prefix each parameter value line with the parameter name, as a header. It +also print a line for empty values. It could be useful when wildcards are +used and filtering the output. +.TP .B -n Print only the parameter value and not parameter name. This may be confusing if multiple parameter names are specified, as the parameters are not @@ -47,6 +52,12 @@ useful when using patterns. .TP .B -R Recursively show all of the parameter names below the specified name. +.TP +.B -y +Some paramters can be presented in a YAML format but are not by default. This +will format the parameter data in YAML. If the YAML provides a source: field +it can be suppressed with the -n option. + .SH EXAMPLES .B $ lctl get_param osc.*.max_pages_per_rpc .br @@ -73,6 +84,26 @@ osc.testfs-OST0000-osc-ffff8803c9c0f000.max_rpcs_in_flight=8 osc.testfs-OST0001-osc-ffff8803c9c0f000.max_rpcs_in_flight=8 .br osc.testfs-OST0002-osc-ffff8803c9c0f000.max_rpcs_in_flight=8 +.br +.B $ lctl get_param -n devices +.br + 0 UP osd-ldiskfs MGS-osd MGS-osd_UUID 4 +.br +.B $ lctl get_param -y devices +.br +devices: +.br +- index: 0 +.br + status: UP +.br + type: osd-ldiskfs +.br + name: MGS-osd +.br + uuid: MGS-osd_UUID +.br + refcount: 4 .SH SEE ALSO .BR lustre (7), .BR lctl (8),