Terminal & Self-Repair

Command reference

Every command a customer can run at the appliance console, with syntax, example and expected result.

3 min read
On this page

Run these commands at the local console of the appliance. They need administrator rights (sudo). Over SSH the same actions are in the menus shown in brackets.

Updates and synchronisation

CommandPurposeChanges the system
sudo hossidark update statusInstalled release and content, last checkNo
sudo hossidark update now --checkAsk Hossidark whether an update existsNo
sudo hossidark update nowDownload, verify and install the released updateYes
sudo hossidark update diagnoseExplain why updates cannot reach HossidarkNo
sudo hossidark update verify <file.hdpkg>Check an offline package before importing itNo

Menu: 5 Updates.

sudo hossidark update status

sudo hossidark update now --check

When an update fails, the diagnosis runs by itself and ends with NEXT ACTION:

sudo hossidark update diagnose

sudo hossidark update verify

Licence

CommandPurposeChanges the system
sudo hossidark licence activate <KEY>Activate a licence keyYes
sudo hossidark licence import <signed-licence.json>Install a signed licence file (offline sites)Yes
sudo hossidark licence lease request [file]Write an offline lease requestNo
sudo hossidark licence lease import <file>Install the lease returned by HossidarkYes
sudo hossidark licence transfer preparePrepare moving the licence to another applianceYes

Menu: 4 Services → Licence. Every activation runs the same eight checks; nothing is stored unless all pass. Five attempts are allowed per 15 minutes.

sudo hossidark licence activate

sudo hossidark licence lease request

Connection to Hossidark

CommandPurposeChanges the system
sudo hossidark connect <licence key>Register the appliance and run the first synchronisationYes

Menu: 1 Communication → Test communication with Hossidark.

sudo hossidark connect

SSH terminal access

CommandPurposeChanges the system
sudo hossidark-sysctl ssh-doctorRead-only checklist of SSH access, one fix per failureNo
sudo hossidark-sysctl ssh-repairRestore SSH access in one step, then re-run the checklistYes
sudo hossidark-sysctl ssh-unban <IP>Lift the automatic ban of one address after failed sign-insYes

sudo hossidark-sysctl ssh-doctor

sudo hossidark-sysctl ssh-repair

sudo hossidark-sysctl ssh-unban

Services and system checks

CommandPurposeChanges the system
systemctl is-active hossidark hossidark-collector hossidark-sensorState of the platform servicesNo
sudo systemctl restart hossidarkRestart the console serviceYes
sudo journalctl -u hossidark -n 80 --no-pagerLast messages of the console serviceNo
timedatectl statusClock and time synchronisationNo
df -h /var/lib/hossidarkSpace used by evidence and dataNo

Menu: 4 Services → Platform services.

service restart

journalctl

These are available in the menus and have no separate command:

ActionMenu
Back up settings or the whole system, test, verify, restore4 Services → Backups
Export support bundleCommand palette → support bundle
Full health report1 Communication
Management address, capture interface, connectivity test2 Network
Update or roll back signatures, measure capture visibility3 Capture
Change terminal password, SSH keys6 Security
Restart or shut down the appliance4 Services → Power

Related: Error messages · Diagnose a problem