E2E TS: Mass device install


Prerequisities

  • Installed Dwarfguard 1.0.0+ with CLI root access
  • At least 4 devices where agent can be installed
    • Out of that, at least two accessible using ssh password
    • Out of that, at least one accessible using ssh key
    • Out of that, at least one is Advantech router
    • Out of that, at least one is Teltonika router
    • Out of that, at least one is OpenWRT device
    • Out of that, at least one is Linux box


Steps

  1. Access CLI as root
  2. Switch to the agents/aad directory under the install root (use dwarfg_home under 2.0.0+)
  3. Execute ./push_agent.py to see the format for the device spec file
  4. Prepare the file for the devices test.txt, using
    1. at least 1 with direct password authentication (password directly in the spec file)
    2. at least 1 with indirect password authentication (password in a separate file)
    3. at least 1 with key-based authentication
  5. Execute push_agent_py --jobs 2 test.txt
    1. confirm agent is installed on all the devices
    2. confirm the push tool is handing two devices in parallel