跳到主要内容

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:

ParameterAbbreviationDescriptionRequired
-cpu-Only display cpu modelsNo
-gpu-Only display gpu modelsNo
--sort-sSort by field, separated by ','. Default is idNo
--descending-dIn reverse orderNo

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