E2E TS: SNMP Gateway


Prerequisities

  • Install package for Dwarfguard 2.0.0+ (BETA2 1.3.0+)
  • Access to an Advantech v1 router device with enabled SNMP.


Steps

  1. Install Dwarfguard without using any extra option
  2. Execute dwarfg_inst_pyext
  3. Verify that the service is listed as running under System -> Status (SNMP Gateway Service Status is shown as Active)
  4. Confirm that Tools -> SNMP Gateway is enabled
  5. Use "Add new SNMP device" button to add the Advantech router address
  6. Wait 10 minutes
  7. Verify the device appears - the column "Device" in the SNMP table is populated by DevID and that DevID is clickable, leading to the Device Details
  8. Verify the device appears in the Devices tables and its type is 'SNMP Device'
  9. Visit System -> Settings -> General and visit that

    1. SNMP Subtype column is selectable and once selected, the added device shows "Advantech router" in the column in the Devices table.
    2. The settings page contains "SNMP Gateway settings" section listing options: Threads, Batch, Timeout, Retrie, Interval, Log level, Enforced SSL mode
  10. Uninstall Dwarfguard

  11. Install Dwarfguard again, using "--nondeb" option.

  12. Verify that SNMP Gateway is accessible

  13. Stop the SNMP Gateway Service

  14. Execute following (on the server where Dwarfguard is installed including the SNMP Gateway, under root user:

    1. dwarfg_home
    2. . python_venv/bin/activate
    3. ./dwarfg_snmp_gw.py --help
      1. Check that the SNMP Gateway is runnable and shows the help
  15. Start the SNMP Gateway Service, check it is shown as Active