1. 11 Aug, 2016 27 commits
  2. 05 Aug, 2016 1 commit
  3. 26 Jul, 2016 1 commit
    • Adam Wujek's avatar
      serspace/host_tools: add snmp_graph.sh · 72a0f118
      Adam Wujek authored
      Add a script to gather data via SNMP in the given interval, store it a file
      and draw a graph.
      
      Example use:
      ./snmp_graph.sh -f oids_temp_ip.txt --ip 192.168.1.10
      ./snmp_graph.sh -f oids_temp.txt --ip 192.168.1.12 --mibs-path "/var/lib/mibs/ietf:../snmpd" --mibs-load WR-SWITCH-MIB"
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      72a0f118
  4. 20 Jul, 2016 8 commits
  5. 19 Jul, 2016 3 commits
    • Adam Wujek's avatar
      userspace/snmpd: fix handling of 64bit objects · f9332f2d
      Adam Wujek authored
      snmp_set_var_typed_value function does not epxect counter64 values as a
      uint64_t, but as a struct counter64. Their binary representation differs by
      order of 32bit words. By this it was wrongly seen as a endianess problem.
      Since some status objects use 64bit values for calculations it is more
      convenient to use uint64_t in our structures, then convert to struct counter64
      just before passing data to the SNMP engine.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      f9332f2d
    • Adam Wujek's avatar
    • Adam Wujek's avatar
      userspace/snmpd: fix update of wrsNetworkingStatusGroup · 6c42c982
      Adam Wujek authored
      There was a special case when there was no update of pstats, but status was
      recalculated. Since counters were not updated then deltas of counters were
      within limits. It could happen that counters are growing, but statuses are
      returning "ok".
      
      For example problem was in the case, when object wrsPstatsHCRXDropRTUFull.1 was
      increasing at every read:
      $ snmpget WR-SWITCH-MIB::wrsPortStatusSfpError.1 # this triggers a read of
      status ports
      $ sleep 2
      WR-SWITCH-MIB::wrsPortStatusSfpError.1 = INTEGER: sfpOk(1)
      $ snmpget WR-SWITCH-MIB::wrsRTUStatus.0 # triggers only read of pstats, values
      of status ports are cached (only 2 seconds elapsed)
      WR-SWITCH-MIB::wrsRTUStatus.0 = INTEGER: error(2)
      $ sleep 4
      $ snmpget WR-SWITCH-MIB::wrsRTUStatus.0 # pstats value are cached, but deltas
      are re-calculated and are equal to 0. This sould report error as well.
      WR-SWITCH-MIB::wrsRTUStatus.0 = INTEGER: ok(1)
      After the code is fixed the last one returns error(2)
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      6c42c982