Block a user
getting os details with /api/os
Instead of directly falling to "other", maybe we can use id of ubuntu if exact name not found and if it's ubuntu, similarly for other OSes. For final fallback we can have "other" or "custom".
getting os details with /api/os
os.uname().sysname
provides the generic name of the operating system, not the specific distribution name or version.
getting os details with /api/os
This will not work. You should create a dedicated method in the ServerManager and use existing send_request
.
75744e0010
Get nvme devices inside /sys/block/ instead of /dev
2c19f2eefc
Added nvme details
ea4675a56c
updated get_ram_and_disk method
Added nvme details
Added SATA details in note
bd6ecc3519
Added SATA details in note
54d0b0decd
disk space calculation using /sys/block/
Updated ecc logic, added RAM configured speed
6b50978097
Add Notes API
c66312c6f2
Add colocated server type
162b708dbf
Fix API /os
25ff23d98d
Update README.md
6df8b27337
Merge pull request #103 from HRA42/main
Added note and refactor code
Example output:
root@test2:~# sudo dmidecode -t17
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
Handle 0x005D, DMI type 17, 34 bytes
Memory Device
Array…
Added note and refactor code
I did some reading on this. TotalWidth is DataWidth + (any extra bits for error correction). So it doesn't matter what the exact number of the TotalWidth is, at least in theory. However, common…