File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / ntpsnmpd / README
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 7 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    1: NTP SNMP subagent for Net-SNMP
    2: 
    3: Installation Guides:
    4: 
    5: - install net-snmp from source (configure, make;, make install)
    6: - edit the snmpd configuration file (/usr/local/share/snmp/snmpd.conf):
    7:   add the lines
    8:    master agentx
    9:    agentXSocket   tcp:localhost:705
   10:   and check which read-only community is configured (should be "rocommunity  public")  
   11: - start snmpd (sudo /usr/local/sbin/snmpd) and check that it is running correctly by running the command
   12:   snmpwalk -v2c -c public localhost
   13:   (which should output a lot of data values for the supported built-in MIBs of net-snmp)
   14: - build the libntpq and the libntp library
   15: - build the ntpsnmpd application (make) and run it (./ntpsnmpd)
   16: - now you can run 
   17:    snmpwalk -v2c -c public localhost enterprises.5597.99
   18:   which should give you a list of all currently supported NTP MIB objects and their current values
   19:   
   20: Please note that currently I use a private MIB OID (enterprises.5597 is the Meinberg top level OEM OID and 99 is my temporary working space for this project). 
   21: The final OID has to be registered with IANA and this is done by the RFC Editor when the NTPv4 MIB RFC is standardized. 
   22: I will try to do this earlier in order to be able to have a working solution at the end of this project.
   23: 
   24: In its current state the daemon supports these objects:
   25: 
   26: ntpEntSoftwareName
   27: ntpEntSoftwareVersion
   28: ntpEntSoftwareVersionVal
   29: ntpEntSoftwareVendor
   30: ntpEntSystemType
   31: ntpEntTimeResolution
   32: ntpEntTimeResolutionVal
   33: ntpEntTimePrecision
   34: ntpEntTimePrecisionVal
   35: ntpEntTimeDistance
   36: 
   37: They all use the libntpq library to access information from the ntpd instance with mode 6 packets.
   38: 
   39: Next step is to implement the status section of the MIB (section 2). 
   40: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>