System default data classes can't be used for custom inventory
Better to create own custom Data Class like on pic below
Create Run script task, choose there UNIX script and put this
## Sample script for Unix, Linux and Macintosh custom inventory
. `aex-helper info path -s INVENTORY`/lib/helpers/custominv_inc.sh
# The custominv_inc.sh inclusion is required at the begin of the script, prior to any other custom inventory logic.
# The following comment/label is also required to mark the beginning of the custom inventory logic.
# SCRIPT_BEGINS_HERE
#!/bin/sh
echo FORLINUXCPUCORES
echo "Delimiters="
echo string50
echo NumberOfCPUCores
grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}'
After task is executed on client PC, this data will be available
Using custom Data Class and other default data classes, you can combine and create own custom report to include there information about CPUCores amount (In this report will be shown computers which have data in custom data class so all others will not be shown)
For example
SELECT DISTINCT
vc.Name,
vc.[IP Address],
vc.[OS Name],
vc.[OS Version],
cdc.[NumberOfCPUCores] AS CPUCores,
vHW.Description,
vHW.[Device Class],
vHW.Manufacturer,
vHW.Model,
vHW.Architecture,
vHW.[Max Clock Speed (Mega-hertz)],
vHW.Version
FROM [Symantec_CMDB].[dbo].[Inv_FORLINUXCPUCORES] cdc
JOIN vHWProcessor vHW ON cdc.[_ResourceGuid] = vHW.[_ResourceGuid]
JOIN vComputer vc ON cdc.[_ResourceGuid] = vc.Guid
ORDER BY CPUCores
ASC
Thanks,
IP.
------------------------------
Software QA Engineer
Broadcom Inc.
------------------------------
Original Message:
Sent: 07-19-2021 06:45 AM
From: na
Subject: The altiris agent does not correctly detect the number of processor cores.
is it possible to use standard data classes in Custom inventories scripts?
Example:
#! / bin / sh
echo HW_Processor.NumberOfCores
echo "Delimiters = \" \ ""
echo int
cpu_cores=`grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}'`
printf ("HW_Processor.NumberOfCores =% s \ n", $ cpu_cores)
Original Message:
Sent: 07-19-2021 04:17 AM
From: Igor Perevozchikov
Subject: The altiris agent does not correctly detect the number of processor cores.
Hi Sergey!
As far as I see, that was an issue in 7.5 version (for Linux machines with CPU that support Hyper-threading) and should be fixed in 7.6 release.
Looks like you need to upgrade your environment to 7.6 version, then upgrade ULM Agent and Inventory Agent and rerun Full Inventory task on affected machines (Seems like there is no point fix available for 7.5 version so upgrade to 7.6 version is the way to fix this)
Or try a custom inventory data class and own script to gather information about CPU on affected Linux machines https://knowledge.broadcom.com/external/article/178432/introduction-to-custom-inventory-in-noti.html . Once custom inventory data will be gathered, then need to create a custom report to see CPU information.
Thanks,
IP.
------------------------------
Software QA Engineer
Broadcom Inc.
Original Message:
Sent: 07-17-2021 01:39 PM
From: na
Subject: The altiris agent does not correctly detect the number of processor cores.
All data on processors from agents is collected in the Iv_HW_Processor table, right ? and if you look at the data in it, you can see that the error is still present
Original Message:
Sent: 07-17-2021 04:40 AM
From: Ricky van Diepen
Subject: The altiris agent does not correctly detect the number of processor cores.
The spec-sheet of E5-2690 v2 at Intel also show 10 cores but 20 threads.
So there might be confusion there as the CPU clearly has physically only 10 cores, which result in 20 threads if Hyper-Threading is enabled.
Looking at my own environment I also only see counts for the physical cores, no matter which operating system (Windows/Red Hat/CentOS/Ubuntu/Debian/...)
However in Resource Manager > View > Inventory > Hardware > HW Processor you should be able to see the Number of Logical Processors which in your case should be 20.
So this is more a matter of reporting which data: physical or logical cores.
By the way if you are still running on 7.5 you will at least need to upgrade to 8.1 RU3 or preferably higher 8.5 or 8.6 to have a supported situation for RHEL 6.9
According to the platform support matrix RedHat 6.9 is fully supported as from 8.1 RU3.
See also Red Hat Enterprise Linux 6.9 and CentOS 6.9 Client Full Support statement
------------------------------
Contrinity
Original Message:
Sent: 07-16-2021 04:14 AM
From: na
Subject: The altiris agent does not correctly detect the number of processor cores.
The altiris agent does not correctly detect the number of processor cores. Instead, it returns the number of Threads.
Software 7.5
The agent works in OS RedHat 6.9, Processor E5-2690 v2 returns 20 cores to 10 cores
How can you fix it?