On 22/03/2024 14:59, Alexander Zeidler wrote:
> While using `/proc/cmdline` would already provide an initial info for
> debugging passthrough and similar, the use of `dmesg` is an easy way
> to get the boot date as an absolute value for free (additional to the
> relative value in `uptime` from `top`).
> 
> Signed-off-by: Alexander Zeidler <a.zeid...@proxmox.com>
> ---
>  PVE/Report.pm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/PVE/Report.pm b/PVE/Report.pm
> index 53ffdcbb..d4191769 100644
> --- a/PVE/Report.pm
> +++ b/PVE/Report.pm
> @@ -31,6 +31,7 @@ my $init_report_cmds = sub {
>           cmds => [
>               'hostname',
>               'date -R',
> +             'dmesg -T | head | grep Command',

Meh, I'd rather get the command line explicitly and the last boots
using:

journalctl --list-boots


As here you get much more info, e.g. about (recent) frequent reboots.

Please remember to add this also to the PMG and PBS reports. 

>               'pveversion --verbose',
>               'cat /etc/hosts',
>               'pvesubscription get',



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to