summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorOleksandr Kuchmystyi <o.kuchmystyi@vyos.io>2026-07-09 11:16:09 +0300
committerViacheslav Hletenko <v.gletenko@vyos.io>2026-08-20 13:35:07 +0000
commit2054c3c53f8bc83733c8ef81c2cc57f4e6b27f5a (patch)
treedd42f9a7d6d3c60cf3662c1c456c6c17b310fd44 /interface-definitions
parent79e70fbfe0c4b5b33c5c707f0b0fee904fedd79f (diff)
downloadvyos-1x-2054c3c53f8bc83733c8ef81c2cc57f4e6b27f5a.tar.gz
vyos-1x-2054c3c53f8bc83733c8ef81c2cc57f4e6b27f5a.zip
kdump: T8868: Implement kernel crash dump support
Add new CLI subtree 'system option kdump' with memory reservation and local dump path configuration. Also add 'show system kdump' and 'show system kdump dumps' operation mode commands to get status of the configuration and list of dumps. Extend 'show tech-support report' and 'generate tech-support archive' with kdump service status, active config files and the recently kernel dump file.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/system_option.xml.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/interface-definitions/system_option.xml.in b/interface-definitions/system_option.xml.in
index a87bee1a9..beeca74c6 100644
--- a/interface-definitions/system_option.xml.in
+++ b/interface-definitions/system_option.xml.in
@@ -413,6 +413,44 @@
#include <include/source-interface.xml.i>
</children>
</node>
+ <node name="kdump">
+ <properties>
+ <help>Kernel crash dump (kdump) settings</help>
+ </properties>
+ <children>
+ <leafNode name="memory">
+ <properties>
+ <help>Amount of memory to reserve for the crash kernel</help>
+ <valueHelp>
+ <format>auto</format>
+ <description>Automatically determine memory reservation</description>
+ </valueHelp>
+ <valueHelp>
+ <format>u32:128-1048576</format>
+ <description>Memory size in megabytes</description>
+ </valueHelp>
+ <constraint>
+ <regex>(auto)</regex>
+ <validator name="numeric" argument="--range 128-1048576"/>
+ </constraint>
+ </properties>
+ <defaultValue>auto</defaultValue>
+ </leafNode>
+ <leafNode name="dump-path">
+ <properties>
+ <help>Local directory to store kernel crash dumps</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Absolute path to crash dump directory</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-path" argument="--strict --directory --parent-dir /"/>
+ </constraint>
+ </properties>
+ <defaultValue>/var/crash</defaultValue>
+ </leafNode>
+ </children>
+ </node>
<leafNode name="startup-beep">
<properties>
<help>plays sound via system speaker when you can login</help>