gpssnmp.adoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. = gpssnmp(1)
  2. :date: 2 March 2021
  3. :keywords: gps, gpsd, gpssnmp
  4. :manmanual: GPSD Documentation
  5. :mansource: GPSD Version {gpsdver}
  6. :robots: index,follow
  7. :sectlinks:
  8. :toc: macro
  9. :type: manpage
  10. :webfonts!:
  11. include::../www/inc-menu.adoc[]
  12. == NAME
  13. gpssnmp - SNMP helper client for gpsd
  14. == SYNOPSIS
  15. *gpssnmp* -h
  16. *gpssnmp* -g OID
  17. *gpssnmp* -V
  18. == DESCRIPTION
  19. *gpssnmp* is a *gpsd* client that works as an SNMP helper for *MRTG*.
  20. *gpssnmp* does not require root privileges. It will also run fine as root.
  21. == OPTIONS
  22. *-?*, *-h*, *--help*::
  23. Print a summary of options and then exit.
  24. *-g OID*::
  25. Get the specified OID. Supported OID values are:
  26. *.1.3.6.1.2.1.25.1.31*;; OID_VISIBLE, Number of visible GNSS satellites
  27. *.1.3.6.1.2.1.25.1.32*;; OID_USED, Number of GNSS satellites used.
  28. *.1.3.6.1.2.1.25.1.33*;; OID_SNR_AVG, Average of all used SNRs.
  29. *-V*, *--version*::
  30. Print the package version and exit.
  31. == EXAMPLES:
  32. To get OID_VISIBLE:
  33. ----
  34. $ gpssnmp -g .1.3.6.1.2.1.25.1.31
  35. .1.3.6.1.2.1.25.1.31
  36. gauge
  37. 13
  38. ----
  39. To get OID_USED:
  40. ----
  41. $ gpssnmp -g .1.3.6.1.2.1.25.1.32
  42. .1.3.6.1.2.1.25.1.32
  43. gauge
  44. 4
  45. ----
  46. To get OID_SNR_AVG:
  47. ----
  48. $ gpssnmp -g .1.3.6.1.2.1.25.1.33
  49. .1.3.6.1.2.1.25.1.33
  50. gauge
  51. 22.250000
  52. ----
  53. == RETURN VALUES
  54. *0*:: on success.
  55. *1*:: on failure
  56. == SEE ALSO
  57. *cgps*(1), *gegps*(1), *gpsctl*(1), *gps*(1), gpsprof*(1), *gpsfake*(1),
  58. *gpscat*(1), *gpspipe*(1), *gpsmon*(1), xgps*(1). *xgpsspeed*(1)
  59. *libgps*(3), *libgpsmm*(3)
  60. *gpsd*(8)
  61. == RESOURCES
  62. *Project web site:* {gpsdweb}
  63. == COPYING
  64. This file is Copyright 2013 by the GPSD project +
  65. SPDX-License-Identifier: BSD-2-clause