mail

Operations with the mail notifications.

Except for the show subcommand, the commands listed in this chapter require superuser privileges.

# xicli mail <subcommand> <args> [optional_args]

Subcommands for the mail command:

add

Set the receiver’s email and the notification level.

remove

Remove the email from the list of email notifications.

show

Show the list of the email notifications.

add

Warning:

When you change any parameter of the xicli mail add command, the xiraid-mail.service restarts.

Set the receiver’s email and the notification level.

# xicli mail add <args>
Table 1. Arguments for the add subcommand

Required arguments

-a

--address

Receiver’s email.

-l

--level

The notification level.

Possible values:

  • info – Info notifications;
  • warning – Error and Warning notifications;
  • error – Error notifications.

remove

Warning:

When you change any parameter of the xicli mail remove command, the xiraid-mail.service restarts.

Remove the email from the list of email notifications.

# xicli mail remove <arg>
Table 2. Argument for the remove subcommand

Required argument

-a

--address

The email address to remove from the notifications.

show

Show the list of the email notifications.

# xicli mail show
Table 3. Argument for the show subcommand

Optional argument

-f

--format

Output format:

  • table;
  • json;
  • prettyjson – human-readable json.

The default: table.