Machine Configuration Command: machine
List all machine configurations: ls
Entry:
lbg machine ls
Summary:
usage: lbg machine ls [-h] [-cpu] [-gpu] [-p PLATFORM] [-s SORT] [-d]
[--csv] [--json] [--yaml] [--table] [--noheader]
options:
-h, --help show this help message and exit
-cpu only show cpu machine
-gpu only show gpu machine
-p PLATFORM, --platform PLATFORM
show only this platform
-s SORT, --sort SORT sort with value, split by ",". default: id
-d, --descending sort with descend value
--csv output with csv format
--json output with json format
--yaml output with yaml format
--table output with table format
--noheader does not print header information
Parameter Description:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
-cpu | - | Only display cpu models | No |
-gpu | - | Only display gpu models | No |
--sort | -s | Sort by field, separated by ','. Default is id | No |
--descending | -d | In reverse order | No |
Example:
$ lbg machine ls --yaml # View all configurations and output in yaml format
$ lbg machine ls -cpu # View all cpu nodes
$ lbg machine ls -s cpu,memory -d -p sugon # Display all Sugon platform models, sorted in descending order by cpu and memory