# xcat-inventory import -h
usage: xcat-inventory import [-t <type>] [-o <name>] [-f <path>]
[-d <directory>] [-s <version>] [--dry] [-c]
[-e <env_var>] [--env-file <env_file>]
Import inventory file to xcat database
Arguments:
-t <type>, --type <type>
comma "," delimited types of the objects to import,
valid values: node,credential,passwd,prodkey,site,netw
orkconn,network,zone,route,osimage,policy. If not
specified, all objects in the inventory file will be
imported
-o <name>, --objects <name>
names of the objects to import, delimited with
Comma(,). If not specified, all objects of the
specified type in the inventory file will be imported
-f <path>, --path <path>
path of the inventory file to import
-d <directory>, --dir <directory>
path of the inventory directory
-s <version>, --schema-version <version>
schema version of the inventory file. Valid schema
versions: latest,1.0. If not specified, the "latest"
schema version will be used
--dry Dry run mode, nothing will be commited to xcat
database
-c, --clean clean mode. IF specified, all objects other than the
ones to import will be removed
-e <env_var>, --env <env_var>
the values of variables in object definitions(only
available for osimage object), syntax: "<variable
name>=<variable value>" , this option can be used
multiple times to specify multiple variables
--env-file <env_file>
the variable file to set values for variables in
inventory file during import. When specified multiple
times, the variables in the variable file will
overwrite any existing variable. When used with
-e option together, the variable value specified
with -e will take precedence.
149
UT:
Load yaml file failed:
Run with
-e
option: