From 002cef3eddc288352d0b92f6272fbd2e85280e6e Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Sun, 31 May 2015 16:17:40 +0200 Subject: [ptp] Add new plugin for Precision time protocol Partially resolves #570 Signed-off-by: Pavel Moravec --- sos/plugins/ptp.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sos/plugins/ptp.py diff --git a/sos/plugins/ptp.py b/sos/plugins/ptp.py new file mode 100644 index 00000000..a6ac6487 --- /dev/null +++ b/sos/plugins/ptp.py @@ -0,0 +1,36 @@ +# Copyright (C) 2015 Pavel Moravec + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin + + +class Ptp(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): + """Precision time protocol + """ + + plugin_name = "ptp" + profiles = ('system', 'services') + + packages = ('linuxptp',) + + def setup(self): + self.add_copy_spec([ + "/etc/ptp4l.conf", + "/etc/timemaster.conf", + "/sys/class/ptp" + ]) + +# vim: et ts=4 sw=4 -- cgit