Symantec Management Platform (Notification Server)

 View Only
  • 1.  The altiris agent does not correctly detect the number of processor cores.

    Posted Jul 16, 2021 04:14 AM
    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?


  • 2.  RE: The altiris agent does not correctly detect the number of processor cores.

    Posted Jul 17, 2021 04:40 AM

    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
    ------------------------------



  • 3.  RE: The altiris agent does not correctly detect the number of processor cores.

    Posted Jul 17, 2021 01:39 PM
    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
    or vHWProcessor



    let's assume that the server \ agent does not support Red Hat 6.9. Here is the data from the Red Hat 5.4 server



    How can I fix this ?



  • 4.  RE: The altiris agent does not correctly detect the number of processor cores.

    Broadcom Employee
    Posted Jul 19, 2021 04:18 AM

    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.
    ------------------------------



  • 5.  RE: The altiris agent does not correctly detect the number of processor cores.

    Posted Jul 19, 2021 06:45 AM
    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)



  • 6.  RE: The altiris agent does not correctly detect the number of processor cores.

    Broadcom Employee
    Posted Jul 19, 2021 01:07 PM
    Edited by Igor Perevozchikov Jul 20, 2021 02:58 AM

    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.
    ------------------------------



  • 7.  RE: The altiris agent does not correctly detect the number of processor cores.

    Posted Jul 22, 2021 08:59 AM
    Configured according to your recommendations, created a rule for collection and execution. But another problem arose, we have two Altiris servers and replication is configured between them, and new data does not come to the second server


  • 8.  RE: The altiris agent does not correctly detect the number of processor cores.

    Broadcom Employee
    Posted Jul 22, 2021 09:09 AM

    Custom data class is created on Parent NS server and is replicated to Child NS server?

    By default in hierarchy, we don't auto-apply custom data classes (data) replication UP or DOWN so you will need to manually create replication rule on Parent NS

    Example of such rule creation: (You can choose computers, virtual machines resource type or choose a resource target which contains only required custom inventoried Linux machines)



    Thanks,
    IP.



    ------------------------------
    Software QA Engineer
    Broadcom Inc.
    ------------------------------



  • 9.  RE: The altiris agent does not correctly detect the number of processor cores.

    Posted Jul 23, 2021 08:09 AM
    thank you, it helped me