[sos-devel] [PATCHv2] [plugin] Add Dell OMSA systems management info

Charles_Rose at dell.com Charles_Rose at dell.com
Tue Sep 15 15:59:48 UTC 2015


On 09/01/2015 03:26 PM, Charles Rose wrote:
> Add plugin to collect logs and hardware health from Dell OpenManage
> Server Administrator (OMSA).
>
> Dell OMSA is an OS application used to manage Dell PowerEdge Server
> hardware.
>
> Signed-off-by: Charles Rose <charles_rose at dell.com>
> ---
>   sos/plugins/omsa.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 51 insertions(+)
>   create mode 100644 sos/plugins/omsa.py
>
> v2: Add the plugin to relevant profiles
>
> diff --git a/sos/plugins/omsa.py b/sos/plugins/omsa.py
> new file mode 100644
> index 0000000..ef80f94
> --- /dev/null
> +++ b/sos/plugins/omsa.py
> @@ -0,0 +1,51 @@
> +# Copyright (C) 2015 Dell, Inc. Charles Rose <charles_rose at dell.com>
> +# 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 omsa(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
> +    '''Dell OpenManage Server Administrator (OMSA)
> +    '''
> +
> +    plugin_name = 'omsa'
> +    profiles = ('hardware', 'debug')
> +
> +    files = ('/opt/dell/srvadmin/bin/omreport',)
> +    packages = ('srvadmin-omacore',)
> +
> +    omreport = '/opt/dell/srvadmin/bin/omreport'
> +
> +    def setup(self):
> +        self.add_copy_spec([
> +            "/var/log/dell/updatepackage/log/support",
> +            "/opt/dell/srvadmin/var/log/openmanage/Inventory.xml*",
> +            "/opt/dell/srvadmin/etc/omreg.cfg",
> +            "/opt/dell/srvadmin/etc/openmanage/oma/ini",
> +            "/opt/dell/srvadmin/etc/srvadmin-deng/ini",
> +            "/opt/dell/srvadmin/etc/srvadmin-isvc/ini/d*ini",
> +        ])
> +
> +        self.add_cmd_output([
> +            "{0} system alertaction".format(self.omreport),
> +            "{0} system alertlog".format(self.omreport),
> +            "{0} system cmdlog".format(self.omreport),
> +            "{0} system pedestinations".format(self.omreport),
> +            "{0} system platformevents".format(self.omreport),
> +            "{0} system summary".format(self.omreport),
> +            "{0} system events".format(self.omreport),
> +            "{0} chassis info".format(self.omreport),
> +        ], timeout=30)
> +
> +# vim: et ts=4 sw=4
>

Bryn/List,

Request your review of this patch and inclusion in sos.

--
Thanks,
Charles Rose




More information about the sos-devel mailing list