Skip to content

Support collecting system information on Windows #6980

Open
@nazar-pc

Description

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Motivation

We have ~61% of consensus nodes running Windows right now and have no idea what systems they are running it on.

Currently Substrate only collects system information on Linux systems, which is a problem:

/// Gathers information about node's hardware and software.
pub fn gather_sysinfo() -> SysInfo {
#[allow(unused_mut)]
let mut sysinfo = SysInfo {
cpu: None,
memory: None,
core_count: None,
linux_kernel: None,
linux_distro: None,
is_virtual_machine: None,
};
#[cfg(target_os = "linux")]
crate::sysinfo_linux::gather_linux_sysinfo(&mut sysinfo);
sysinfo
}

Request

Collect system information on Windows similarly to how it is done on Linux.

There is unfortunately a hardcoded notion of "Linux Kernel" and "Linux Distro", would be nice to convert it to "OS kernel" and "OS Version" or something like that to be able to distinguish Windows versions as well (10 vs 11 vs various server editions, maybe Home/Pro/Enterprise flavors).

Solution

No response

Are you willing to help with this request?

Maybe (please elaborate above)

Metadata

Assignees

No one assigned

    Labels

    I5-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions