aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/ntp.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sos/plugins/ntp.py b/sos/plugins/ntp.py
index 929e3d13..f928a8ee 100644
--- a/sos/plugins/ntp.py
+++ b/sos/plugins/ntp.py
@@ -32,9 +32,15 @@ class Ntp(Plugin):
])
self.add_cmd_output([
"ntptime",
- "ntpq -p"
+ "ntpq -pn",
+ "ntpq -c as"
])
+ ids = self.get_command_output('ntpq -c as')
+ if ids['status'] == 0:
+ for asid in [i.split()[1] for i in ids['output'].splitlines()[3:]]:
+ self.add_cmd_output("ntpq -c 'rv %s'" % asid)
+
class RedHatNtp(Ntp, RedHatPlugin):