[pmg-devel] [PATCH pmg-api] report: add `date -R` to general system info section

Lukas Wagner l.wagner at proxmox.com
Thu Feb 23 16:37:52 CET 2023


Sometimes it can be quite useful to know when exactly a system report
was generated. Adds the following output quite prominently in the
beginning:

 # date -R
 Thu, 23 Feb 2023 16:21:12 +0100

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 src/PMG/Report.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PMG/Report.pm b/src/PMG/Report.pm
index 5e06b68..aeda802 100644
--- a/src/PMG/Report.pm
+++ b/src/PMG/Report.pm
@@ -15,6 +15,7 @@ my $report_def = {
 	title => 'general system info',
 	cmds => [
 	    'hostname',
+	    'date -R',
 	    'pmgversion --verbose',
 	    'cat /etc/hosts',
 	    'cat /etc/resolv.conf',
-- 
2.30.2





More information about the pmg-devel mailing list