Using xicli
Manage your software Xinnor xiRAID in Linux by using the xicli program.
Most of the commands listed in this document require superuser privileges. Please log in as an administrator or root to run these. However, the following commands can be run without superuser privileges: all commands with the show subcommand (raid show, config show, drive faulty-count show, settings eula show, license show etc), setting eula modify, and any command with the --help parameter.
Command-Line Interface (CLI) Overview
Item format | Description |
---|---|
item |
A required item (command, subcommand, argument, option). |
<item> |
A placeholder variable. |
[item] |
An optional item. |
In the CLI, enter commands in the following format:
# xicli <command> <subcommand> <required_args> [optional_args]
To show the full list of commands, run
# xicli -h
To show the xicli version, run
# xicli -v
CLI syntax specifics:
- Type the arguments of the subcommands in one line.
- Subcommand arguments are separated by spaces.
- Use short or long forms of subcommand argument options.
-
To get the list of all subcommands and arguments, add the -h option::
# xicli <command> <subcommand> -h
config |
Operations with the configuration file. |
drive |
Operations with the drives. |
license |
Operations with the license. |
log |
Operations with the event log. |
|
Operations with the mail notifications. |
pool |
Operations with the spare pools. |
raid |
Operations with the RAIDs. |
settings |
Operations with the additional settings of the xicli program. |
update | Operations with the Update Check service. |
Accepting EULA
The first time after the installation you run any xicli command (except settings eula modify, settings eula show), you will be prompted to accept the EULA.
After accepting the EULA, the ran command executes, and you can use Xinnor xiRAID 4.0.1.
Commands related to the EULA don’t require running xiraid.target service.
To change the acceptance status of the EULA, run
# xicli settings eula modify
Required argument |
||
-s |
--status |
The status of the EULA acceptance. Possible values: accepted, not_accepted. |
To view the acceptance status of the EULA, run
# xicli settings eula show
Optional argument |
||
-f |
--format |
Output format:
The default: table. |
License
You can manage the license with the command
# xicli license <subcommand>
Subcommands for the license command:
delete |
Delete the current license. |
show |
Show info on the current license. |
update |
Update the current license. |
To start working with the system, add the valid license file on each node. To do so, you need the hardware key (hwkey) which can be found by running the command:
# xicli license show
Command output example when no license was added:
Command output example when a license was added:
Kernel version |
Kernel version. |
hwkey |
Hardware key. |
license_key |
License key. |
version |
Software version. |
crypto_version |
Version of crypto-API for the license generator. |
created |
The date when the license was created. |
expired |
License expiration date. |
disks |
Maximum number of drives. |
levels |
Maximum RAID level. RAID levels from minimal to maximal: 0, 1, 10, 5, 6, 7 (stands for 7.3), 50, 60, 70 (includes N+M). |
type |
Drive type. |
disks in use |
Number of used drives in the system. |
status |
License state. |
You can save the command output as a text file by running the command:
# xicli license show > license_request.txt
To get your license key, send your hardware key to the Xinnor support team at support@xinnor.io.
After you get your license file, copy it to the system, and apply the license key by running the command:
# xicli license update -p </path/to/>license.txt
To check the applied license, run:
# xicli license show