• India
  • Joined on 2022-03-05
swapnil commented on pull request Sysdeploy/idlers-agent#16 2024-06-26 04:46:32 +02:00
Added note and refactor code

Even this part of the code assumes multiple sections with 'DMIType' 4. But only gets 'Version' from the first section. Since you've said "they always have the same processor model", I assume…

swapnil commented on pull request Sysdeploy/idlers-agent#16 2024-06-26 04:43:26 +02:00
Added note and refactor code

Please share a sample sudo dmidecode -t1 output. Here's what I see on test2:

root@test2:~# sudo dmidecode -t1
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

…
swapnil commented on pull request Sysdeploy/idlers-agent#15 2024-06-25 14:25:46 +02:00
disk space calculation using /sys/block/

Maybe we should fallback to /proc/diskstats if /sys/block is not available, @PeterSurda ?

swapnil pushed to main at swapnil/idlers-agent 2024-06-25 14:15:20 +02:00
61909258a0 Added RAM info in notes
swapnil commented on pull request Sysdeploy/idlers-agent#15 2024-06-25 13:53:14 +02:00
disk space calculation using /sys/block/

We shouldn't log it, just skip it, or we should first test if the file exists or is readable to filter the obvious exceptions.

swapnil commented on pull request Sysdeploy/idlers-agent#15 2024-06-25 13:52:43 +02:00
disk space calculation using /sys/block/

Indentation error

swapnil pushed to main at swapnil/idlers-agent 2024-06-25 12:05:44 +02:00
c5474b1f3c refactor - remove server_id from create_note_data
swapnil pushed to main at swapnil/idlers-agent 2024-06-25 12:03:01 +02:00
f10d0b53b0 minor fixes
3940cbdbde refactor: encaps create/update logic in upsert
Compare 2 commits »
swapnil created pull request Sysdeploy/idlers-agent#16 2024-06-25 11:32:46 +02:00
main
swapnil pushed to main at swapnil/idlers-agent 2024-06-25 11:22:45 +02:00
fa67103b20 Added chachis and processor info in note
swapnil pushed to main at swapnil/idlers-agent 2024-06-25 09:56:07 +02:00
064d781607 Create function to create note data
swapnil pushed to main at swapnil/idlers-agent 2024-06-24 16:36:30 +02:00
52ecd2dc53 Use parsed data in cpu count
swapnil created pull request Sysdeploy/idlers-agent#14 2024-06-24 16:31:46 +02:00
Parse dmidecode output
swapnil pushed to main at swapnil/idlers-agent 2024-06-24 16:29:33 +02:00
a13977d237 Use parsed data in cpu count
swapnil pushed to main at swapnil/idlers-agent 2024-06-24 16:27:54 +02:00
1b2769996a Added function to parse dmidecode output
swapnil commented on pull request Sysdeploy/idlers-agent#13 2024-06-24 05:07:21 +02:00
updated cpu_count - use dmidecode

Hi, what does it mean by "generalise the approach" in this case? Where would we be needing to copy-paste this function? Mutiple matches for "Core Count" and "Thread Count" you mean?

swapnil pushed to main at swapnil/idlers-agent 2024-06-23 11:04:39 +02:00
bd9a848737 updated cpu_count - use dmedecode
7ab3d18ae9 Add note support
Compare 2 commits »
swapnil pushed to main at swapnil/idlers-agent 2024-06-23 10:57:08 +02:00
0e996333b2 updated cpu_count - use dmedecode
f73823cd07 removed show_public from non updatable keys
Compare 2 commits »
swapnil closed pull request Sysdeploy/idlers-agent#12 2024-06-20 06:12:47 +02:00
removed show_public from non updatable keys
swapnil pushed to main at Sysdeploy/idlers-agent 2024-06-20 06:10:26 +02:00
f73823cd07 removed show_public from non updatable keys