This article mainly introduces how to install the xenserverxe command line in centos. if you need it, refer to the following tag: CentOS
To install the xe command line on centos, you don't need to talk about it. First, find the xe command rpm Package (under the client_install directory) in the xenserver installation iso, and then copy it to centos. If you install the xe-cli-6.1.0-59235p.i686.rpm package directly with the rpm command, a dependency error is prompted. In this case, use the yum command to install it. it will automatically help us handle dependencies.
Copy codeThe code is as follows:
[Root @ cloudstack-ms ~] # Rpm-ivh xe-cli-6.1.0-59235p.i686.rpm
Error: Failed dependencies:
Libc. so.6 is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.1) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.1.2) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.2) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.3) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.3.2) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.3.4) is needed by xapi-xe-0.2-5181.i686
Libc. so.6 (GLIBC_2.4) is needed by xapi-xe-0.2-5181.i686
Libdl. so.2 is needed by xapi-xe-0.2-5181.i686
Libdl. so.2 (GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
Libdl. so.2 (GLIBC_2.1) is needed by xapi-xe-0.2-5181.i686
Libm. so.6 is needed by xapi-xe-0.2-5181.i686
Libm. so.6 (GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
Libpthread. so.0 is needed by xapi-xe-0.2-5181.i686
Libpthread. so.0 (GLIBC_2.0) is needed by xapi-xe-0.2-5181.i686
Libpthread. so.0 (GLIBC_2.1) is needed by xapi-xe-0.2-5181.i686
Libpthread. so.0 (GLIBC_2.2) is needed by xapi-xe-0.2-5181.i686
Libpthread. so.0 (GLIBC_2.3.2) is needed by xapi-xe-0.2-5181.i686
[Root @ cloudstack-ms ~] #
In this case, we use yum to install it. it will automatically help us solve the dependency problem.
Copy codeThe code is as follows:
Yum install xe-cli-6.1.0-59235p.i686.rpm
After installation, run the xe command. If an error is reported
Copy codeThe code is as follows:
Unhandled exception
File "stunnel. ml", line 137, characters 20-25: Pattern matching failed
To install the stunnel package, run the following command:
Copy codeThe code is as follows:
Yum install stunnel
After installation, you can run the xe command normally. The basic usage is as follows:
Copy codeThe code is as follows:
Xe-s ip-u username-pw password command param
-S option specifies the IP address of the xenserver server
-U option indicates the username of the XenServer server
-Pw indicates the user password
Command is a xe sub-command, such as host-list.
Param is a command parameter, such as uuid = xxxxx.