重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
[root@rhevm ~]# wget -O rhevm.cer http://rhevm.example.com/ca.crt[root@rhevm ~]# rhevm-shell -c -l https://rhevm.example.com/api -u admin@internal-p password -A /root/rhevm.cer
or:
[root@rhevm~]# rhevm-shell -c -l https://rhevm.example.com/api -u admin@internal-p password -A /etc/pki/ovirt-engine/ca.pem
如下Beta版本没有问题:
rhel-x86_64-server-6-rhevm-3-beta/rhevm-cli-3.1.0.15-1.el6ev.noarch.rpm
Beta版本帮助文档:
[root@rhevm ~]# rhevm-shell -h
Usage: rhevm-shell [options]
rhevm-shell [options] command...
This program is a command-line interface to RHEVM Virtualization.
Options:
-h, --help show this help message and exit
-d, --debug enable debugging
-l URL, --url=URL specifies the API entry point URL
(http[s]://server[:port]/api) -u USERNAME, --username=USERNAME
connect as this user
-p PASSWORD, --password=PASSWORD
specify password
-K KEY_FILE, --key-file=KEY_FILE
specify client PEM key-file -C CERT_FILE, --cert-file=CERT_FILE
specify client PEM cert-file -A CA_FILE, --ca-file=CA_FILE
specify server CA cert-file -I, --insecure allow connecting to SSL sites without certificates
-F, --filter enables user permission based filtering
-P PORT, --port=PORT specify port
-T TIMEOUT, --timeout=TIMEOUT
specify timeout
-c, --connect automatically connect
-f FILE, --file=FILE read commands from FILE instead of stdin