System software version
It could be nice to report system software version for things like Uptime. We already report manufacturer/model, so reporting the OS version as software version makes sense, IMO.
Generic
Python platform
System | platform.platform() | platform.release() |
---|---|---|
OG RPi | Linux-5.10.92+-armv6l-with-glibc2.31 |
5.10.92+ |
hallmonitor-pi | Linux-5.10.63-v7+-armv7l-with-debian-10.11 |
5.10.63-v7+ |
TinyPilot | Linux-5.10.63-v7l+-armv7l-with-debian-10.11 |
5.10.63-v7l+ |
PiKVM | Linux-5.10.52-14-ARCH-armv7l-with-glibc2.32 |
5.10.52-14-ARCH |
ThreadReaper | Linux-5.11.22-1-pve-x86_64-with-glibc2.31 |
5.11.22-1-pve |
Reaper-3900X | Windows-10-10.0.19041-SP0 |
10 |
Legion | Windows-2012ServerR2-6.3.9600-SP0 |
2012ServerR2 |
HTPC | Windows-7-6.1.7601-SP1 |
7 |
Linux
/etc/os-release
System | PRETTY_NAME |
---|---|
OG RPi | Raspbian GNU/Linux 11 (bullseye) |
hallmonitor-pi | Raspbian GNU/Linux 10 (buster) |
TinyPilot | Raspbian GNU/Linux 10 (buster) |
PiKVM | Arch Linux ARM |
ThreadReaper | Debian GNU/Linux 11 (bullseye) |
/proc/version
System | /proc/version |
---|---|
OG RPi | Linux version 5.10.92+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1514 Mon Jan 17 17:35:21 GMT 2022 |
hallmonitor-pi | Linux version 5.10.63-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1459 SMP Wed Oct 6 16:41:10 BST 2021 |
TinyPilot | Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1459 SMP Wed Oct 6 16:41:57 BST 2021 |
PiKVM | Linux version 5.10.52-14-ARCH (alarm@74b3ee2007b0) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP Thu Dec 2 09:40:42 MSK 2021 |
ThreadReaper | Linux version 5.11.22-1-pve (build@proxmox) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PVE 5.11.22-2 (Fri, 02 Jul 2021 16:22:45 +0200) |
uname -a
System | uname -a |
---|---|
OG RPi | Linux OG-RPi 5.10.92+ #1514 Mon Jan 17 17:35:21 GMT 2022 armv6l GNU/Linux |
hallmonitor-pi | Linux hallmonitor-pi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux |
TinyPilot | Linux TinyPilot 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux |
PiKVM | Linux PiKVM 5.10.52-14-ARCH #1 SMP Thu Dec 2 09:40:42 MSK 2021 armv7l GNU/Linux |
ThreadReaper | Linux ThreadReaper 5.11.22-1-pve #1 SMP PVE 5.11.22-2 (Fri, 02 Jul 2021 16:22:45 +0200) x86_64 GNU/Linux |
Windows
WMIC
System | wmic os get caption |
wmic os get version |
---|---|---|
Legion | Microsoft Windows Server 2012 R2 Datacenter |
6.3.9600 |
Reaper-3900X | Microsoft Windows 10 Enterprise |
10.0.19044 |
HTPC | Microsoft Windows 7 Enterprise |
6.1.7601 |
Registry
(Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('DisplayVersion')
(Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('ReleaseID')
System | ReleaseID | DisplayVersion |
---|---|---|
Legion | None | None |
Reaper-3900X | 2009 |
21H2 |
HTPC | None | None |
Edited by David G. Martin IV