code: def get_ntp_stats(self):
          
          ntp_stats = []
  
          command = "show ntp associations"
          output = self._send_command(command)
  
          for line in output.splitlines():
              # Skip first two lines and last line of command output
              if line == "" or "address" in line or "sys.peer" in line:
                  continue
  
              if "%NTP is not enabled" in line:
                  return []
  
              elif len(line.split()) == 9:
                  address, ref_clock, st, when, poll, reach, delay, offset, disp = (
                      line.split()
                  )
                  address_regex = re.match(r"(\W*)([0-9.*]*)", address)
              try:
                  ntp_stats.append(
                      {
                          "remote": py23_compat.text_type(address_regex.group(2)),
                          "synchronized": ("*" in address_regex.group(1)),
                          "referenceid": py23_compat.text_type(ref_clock),
                          "stratum": int(st),
                          "type": "-",
                          "when": py23_compat.text_type(when),
                          "hostpoll": int(poll),
                          "reachability": int(reach),
                          "delay": float(delay),
                          "offset": float(offset),
                          "jitter": float(disp),
                      }
                  )
              except Exception:
                  continue
  
          return ntp_stats
docs: Implementation of get_ntp_stats for IOS.