Skip to main content
Version: 2.1.0

Admin

enable/disable the admin panel, reset password, add admin users, etc.

Usage: hitechcloudcli admin <command> [options]

Commands:
on Enable and start the HiTechAdmin service.
off Stop and disable the HiTechAdmin service.
log Display the last 25 lines of the HiTechAdmin error log.
logs Display live logs for all HiTechAdminn services.
list List all current admin users.
new <user> <pass> Add a new user with the specified username and password.
password <user> <pass> Reset the password for the specified admin user.
update <user> --allowed_plans=[] --max_accounts=<int> --max_disk_blocks=1000000 Assign plans and set limits for reseller.
rename <old> <new> Change the admin username.
suspend <user> Suspend admin user.
unsuspend <user> Unsuspend admin user.
notifications <command> <param> [value] Control notification preferences.

Notifications Commands:
check Check and write notifications.
get <param> Get the value of the specified notification parameter.
update <param> <value> Update the specified notification parameter with the new value.

Examples:
hitechcloudcli admin on
hitechcloudcli admin off
hitechcloudcli admin log
hitechcloudcli admin logs
hitechcloudcli admin list
hitechcloudcli admin new stefan SuperStrong1
hitechcloudcli admin password stefan SuperStrong2
hitechcloudcli admin rename stefan pejcic
hitechcloudcli admin suspend pejcic
hitechcloudcli admin unsuspend pejcic
hitechcloudcli admin notifications check
hitechcloudcli admin notifications get ssl
hitechcloudcli admin notifications update ssl true

Check Status

Check if admin panel is enabled or disabled and display link on which the HiTechAdmin is accessibe:

hitechcloudcli admin

Example:

# hitechcloudcli admin
● HiTechAdmin is running and is available on: https://server.hitechcloud.co:2087/

Enable / Disable HiTechAdmin

HiTechAdmin can run in headless mode, that is to say without a front-end UI. This can further save on memory requirements and keep your server secure.

To disable access to the HiTechAdmin panel:

hitechcloudcli admin off

To enable access to the HiTechAdmin panel:

hitechcloudcli admin on

List Admin users

To view all admin accounts:

hitechcloudcli admin list

Create new Admin

To create new admin accounts:

hitechcloudcli admin new <username> <password>

Create new Reseller

To create new reseller accounts:

hitechcloudcli admin new <username> <password> --reseller

Reset Admin Password

To reset the password for an admin user:

hitechcloudcli admin password <username> <new_password>

Rename Admin User

To rename an existing admin user:

hitechcloudcli admin rename <old_username> <new_username>

Suspend Admin User

To suspend an existing admin user:

hitechcloudcli admin suspend <username>

Unsuspend Admin User

To unsuspend an existing admin user:

hitechcloudcli admin unsuspend <username>

Delete Admin User

To rename an existing admin user:

hitechcloudcli admin delete <username>
INFORMATION

Note: User with 'admin' role can not be deleted.

Notifications

hitechcloudcli admin notifications allows you to change the notification preferences.

Settings are stored in /etc/hitechcloud/hitechadmin/config/notifications.ini file. However, it is recommended not to modify this file directly. Instead, it's best to utilize the hitechcloudcli commands. This way, any changes made are immediately applied, and the admin service is automatically restarted only when necessary.

Get

The get parameter allows you to view current notification settings.

hitechcloudcli admin notifications get <OPTION>

Example:

# hitechcloudcli admin notifications get reboot
yes

Update

The update parameter allows you to change the notification settings.

hitechcloudcli admin notifications update <OPTION> <NEW-VALUE>

Example:

hitechcloudcli admin notifications update load 10
Updated load to 10

Options

Currently available options for notifications are:

  • reboot
  • attack
  • limit
  • update
  • load
  • swap
  • cpu
  • ram
  • du

View HiTechAdmin logs

To multitail all HiTechAdmin logs:

hitechcloudcli admin logs

To tail HiTechAdmin error log:

hitechcloudcli admin log