diff --git a/lib/microwaveprop/commercial/snmp_client.ex b/lib/microwaveprop/commercial/snmp_client.ex index 1a97cc20..558e490e 100644 --- a/lib/microwaveprop/commercial/snmp_client.ex +++ b/lib/microwaveprop/commercial/snmp_client.ex @@ -54,7 +54,7 @@ defmodule Microwaveprop.Commercial.SnmpClient do def poll_af11x(host, community) do oids = Map.keys(@af11x_oids) - args = ["-v2c", "-c", community, "-t", "5", "-r", "1", host | oids] + args = ["-v1", "-c", community, "-t", "5", "-r", "1", host | oids] case run_cmd("snmpget", args) do {output, 0} -> @@ -69,10 +69,10 @@ defmodule Microwaveprop.Commercial.SnmpClient do def poll_af60(host, community) do static_oids = Map.keys(@af60_static_oids) - static_args = ["-v2c", "-c", community, "-t", "5", "-r", "1", host | static_oids] + static_args = ["-v1", "-c", community, "-t", "5", "-r", "1", host | static_oids] station_oids = Enum.map(Map.keys(@af60_station_cols), &"#{@af60_base}.3.1.#{&1}") - station_args = ["-v2c", "-c", community, "-t", "5", "-r", "1", host | station_oids] + station_args = ["-v1", "-c", community, "-t", "5", "-r", "1", host | station_oids] with {static_out, 0} <- run_cmd("snmpget", static_args), {station_out, 0} <- run_cmd("snmpgetnext", station_args) do