docs/doc/source/fault-mgmt/kubernetes/cli-commands-and-paged-output.rst
Stone e60b972a04 Directory reorganization for FM
This update brings FM in line with directory and index structure of other content.

Signed-off-by: Stone <ronald.stone@windriver.com>
Change-Id: If730098dc3eb119defa89647b04ac9f7c8717992
2021-03-25 09:04:59 -04:00

1.3 KiB

CLI Commands and Paged Output

There are some CLI commands that perform paging, and you can use options to limit the paging or to disable it, which is useful for scripts.

CLI fault management commands that perform paging include:

  • fm event-list
  • fm event-suppress
  • fm event-suppress-list
  • fm event-unsuppress
  • fm event-unsuppress-all

To turn paging off, use the --nopaging option for the above commands. The --nopaging option is useful for bash script writers.

Examples

The following examples demonstrate the resulting behavior from the use and non-use of the paging options.

This produces a paged list of events.

~(keystone_admin)$ fm event-list

This produces a list of events without paging.

~(keystone_admin)$ fm event-list --nopaging

This produces a paged list of 50 events.

~(keystone_admin)$ fm event-list --limit 50

This will produce a list of 50 events without paging.

~(keystone_admin)$ fm event-list --limit 50 --nopaging