Skip to content

Commit f032159

Browse files
bmr-cymruTurboTurtle
authored andcommitted
[snapm] add new plugin
Add a plugin for the snapm snapshot manager tool: https://github.com/snapshotmanager/snapm Collect: * /etc/snapm configuration directory * snapm snapset list * snapm snapshot list * snapm plugin list * snapm schedule list * snapm -vv --debug=all snapset show N.b: the /etc/snapm directory and the 'snapm schedule list' command are part of the v0.5.0 release currently in testing. Earlier releases lack these files/subcommands: https://github.com/snapshotmanager/snapm/releases/tag/v0.5.0 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
1 parent 20c776f commit f032159

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

sos/report/plugins/snapm.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (C) 2025 Red Hat, Inc., Bryn M. Reeves <bmr@redhat.com>
2+
# This file is part of the sos project: https://github.com/sosreport/sos
3+
#
4+
# This copyrighted material is made available to anyone wishing to use,
5+
# modify, copy, or redistribute it subject to the terms and conditions of
6+
# version 2 of the GNU General Public License.
7+
#
8+
# See the LICENSE file in the source distribution for further information.
9+
10+
from sos.report.plugins import Plugin, RedHatPlugin
11+
12+
13+
class Snapm(Plugin, RedHatPlugin):
14+
15+
short_desc = 'Snapsot manager'
16+
17+
plugin_name = 'snapm'
18+
profiles = ('boot', 'system', 'storage')
19+
20+
packages = (
21+
'python3-snapm',
22+
'snapm',
23+
)
24+
25+
def setup(self):
26+
self.add_copy_spec([
27+
"/etc/snapm",
28+
])
29+
30+
self.add_cmd_output([
31+
"snapm snapset list",
32+
"snapm snapshot list",
33+
"snapm plugin list",
34+
"snapm schedule list",
35+
"snapm -vv --debug=all snapset show",
36+
])
37+
38+
# vim: set et ts=4 sw=4 :

0 commit comments

Comments
 (0)