Command not found: nmcli

I have installed HAOS on dedicated x64 machine and it is running rock solid.

I need to run “nmcli” command but get “command not found: nmcli” message.

I have installed “Advanced SSH & Web Terminal” Home Assistant Community add-on and disabled protection mode.

I tried using “login” command in the terminal from sidebar and entered username and password specified in the configuration of the add-on.
I still get command not found: nmcli error.

I also tried Putty and I get the same error message.

I looked at /usr/bin/ and there seems to be no nmcli.

What am i doing wrong? How can I use nmcli command?

By logging into the console (keyboard and monitor) or enabling the SSH server on port 22222

1 Like

You are in a docker container, not the host OS.

You have a couple of options.

First option, and what I would suggest, enabling ssh to the actual OS using one of 2 methods

  1. The officially documented method: Debugging the Home Assistant Operating System | Home Assistant Developer Docs
  2. The “easy button”: :new:[add-on] HassOS SSH port 22222 Configurator - Installation / Home Assistant OS - Home Assistant Community

Why?

Most of the settings can be done with the GUI through Settings → System → Network.

https://xyproblem.info/

nmcli and nmtui can also be added to the SSH addon via apk add networkmanager-cli/apk add networkmanager-tui. Also read the network docs here.
In general you should either use the GUI or the ha network command.
We can indeed better help if we know what you want to do with it.

I would like to enable Wake-on-Lan or at least to find out whether WoL is enabled.

It is enabled in the BIOS but the network driver must be configured properly to enable WoL to my knowledge.

Did you try WOL already ?

Thank you. The add-on did the trick.

1 Like

Your server should be on 24/7. There is no need for WoL.

In case of power loss, Nut turns of my servers after 10 minutes. In case the power comes backup up after 10 minutes, but before the UPS has totally run out, I use WOL to turn them back on.