The CLI provides an option to paginate the displayed output. With pagination, you can control the number of items that are displayed in the output for all objects.
To enable pagination, use the argument --limit <limit_value>
in the get command for the required object. This option allows you to retrieve only the number of items that you specify.
Argument definition
- limit_value
- The number of items to be retrieved in the output. If the value is less than or equal to zero, all items are retrieved. The default value is 10.
Example
If you have on-boarded four servers to Bare Metal Orchestrator and want to retrieve the first two servers, run the following command:
bmo get server --limit 2
The CLI returns the first two servers in the output.
Press enter to retrieve the next set of server objects.
Example Output
The following is an example output for bmo get server --limit 2.
bmo get server --limit 2
NAME POWER STATUS PROVISIONING STATUS COMMAND EXECUTING SITE LOCATION AGE
server1 On Ready gc 117s
server2 On Ready gc 81s
Press enter to continue. Press q or Q or CTRL + C to exit.
NAME POWER STATUS PROVISIONING STATUS COMMAND EXECUTING SITE LOCATION AGE
server3 On Ready gc 55s
server4 Busy CollectingInventory gc 20s