CA Client Automation

  • 1.  ITCM - identity computer model

    Posted Jan 18, 2018 01:28 AM

    Is is possible to identity the computer model and put the info in one of the 4 user data fields?



  • 2.  Re: ITCM - identity computer model
    Best Answer

    Posted Jan 18, 2018 06:08 AM

    Software delivery Agent is required to populate user data field, refer to:
    https://docops.ca.com/ca-client-automation/14-0/en/additional-product-documentation/desktop-and-server-management/agent-best-practices/common-components/ca-software-delivery/user-parameters

     

    In windows environment, this can be done with a batch script using wmic to get model type and then sd_acmd command to set user data field.


    This is an example of the batch script:


    SETLOCAL
    for /F "tokens=1,2 delims==" %%a in ('WMIC COMPUTERSYSTEM GET MODEL /format:Textvaluelist.xsl ^| find "="') do set CPMMODEL=%%b

    sd_acmd UserInfo USER="%CPMMODEL%"

    caf register all

    ENDLOCAL


    In Linux environment, you can use dmidecode command to get model "dmidecode -s system-product-name" and use a similar script to populate user data field.

     

    Hope this will help.



  • 3.  Re: ITCM - identity computer model

    Posted Jan 18, 2018 06:25 AM

    Hero of the day!! Worked a treat! Thx a lot!