Troubleshooting¶
PATH: 'nw' not found¶
- Check:
command -v nw(Linux/macOS) orwhere nw(Windows) - If using pipx: ensure PATH is set, then reload shell
- Linux/macOS: add user bin to PATH if needed
- Windows (native, best-effort): prefer WSL2; if native, run
pipx ensurepathand restart the terminal
Authentication and credentials¶
- Ensure
NW_USER_DEFAULTandNW_PASSWORD_DEFAULTare set, or use a.envfile. - Device-specific overrides:
NW_{DEVICE}_USER,NW_{DEVICE}_PASSWORD. - See: Environment variables, Interactive credentials.
SSH host key verification failures¶
Default behavior: BALANCED - Networka uses accept-new mode by default, which automatically accepts new host keys but verifies existing ones. This provides security against MITM attacks on known hosts while allowing easy onboarding of new devices.
If you see "Host key verification failed" errors (existing key changed):
Option 1: Fix the host key (RECOMMENDED)¶
Clear the old key and accept the new one:
Option 2: Completely disable verification per-command (INSECURE - lab only)¶
nw run router1 '/system/identity/print' --no-strict-host-key-checking
nw cli router1 --no-strict-host-key-checking
Option 3: Enable strict mode globally (maximum security)¶
Configuration precedence:
- Default:
accept-newmode (accept new keys, verify existing ones) - Config file:
ssh_strict_host_key_checking: false= accept-new,true= strict - CLI override:
--no-strict-host-key-checking= completely disable all verification - CLI flags take precedence over configuration file settings
Timeouts and connectivity¶
- Verify device is reachable (ping/ssh).
- Increase
general.timeoutin config. - Check
device_typematches the platform. - See: Transport, Platform compatibility.
Windows notes¶
- Prefer WSL2 (Ubuntu) for Scrapli-based transport.
- Native Windows may work but is best-effort.
- See: Platform compatibility.
Configuration loading¶
- Check files are in the correct directories under
config/. - For CSV, ensure headers match the documented schema.
- See: Configuration (CSV).
Output formatting and results¶
- Use
--output-modeto adjust styling. - Use
--store-resultsand--results-formatto save outputs. - See: Output modes, Results.