History inventory of connected monitors
search cancel

History inventory of connected monitors

book

Article ID: 374562

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

A laptop is moving and is connected to different screen monitors. In AM Hardware Inventory only the latest connected monitor appear.
How to keep the history of all connected monitors ?

Environment

Client Automation - All Version

Resolution

There is no history of monitors inventory.
But with a DMS script it is possible to create a txt file containing the history of connected monitors and generate a MIF file from this history to create an additional inventory

Example :

 

How to implement the script :

  1. Download attached script monitor.dms

  2. In DSM Explorer, right click on Jobs/Asset Jobs and select New.
    Select the Job Type = Script



  3. Click Next. Give a Name for the job (ex: Monitor).
    Click Next
    Copy/Paste the content of attached file monitor.dms into the text field :




  4. Click Next. Click on "Set Scheduling" button.
    Go in tab "Miscellaneous" and check the option "This job is allowed to run unattended" :




  5. Click OK and Finish.
    Then link this Job to Computers or Group

When AM Agent will be executed on the machine, the script is executed and the file C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\Monitor.txt is created or updated with the current connected monitor.
Then the MIF file C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\Monitor.MIF is generated

Additional Information

The script generate a log file monitor.log under C:\Program Files (x86)\CA\DSM\logs

Example :

-----------------------------------------------------------------
08/13/2024 15:53:46 - START C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\UMSCR.SCR
08/13/2024 15:53:46 - Computer = <COMPUTERNAME>
08/13/2024 15:53:46 - User = <USERNAME>
08/13/2024 15:53:46 - Version = 1.0
08/13/2024 15:53:46 - ITCM Log Path = C:\Program Files (x86)\CA\DSM\logs\
08/13/2024 15:53:46 - UAM Agent Path = C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam
08/13/2024 15:53:46 - File C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\Monitor.txt does not exist.
08/13/2024 15:53:46 - Found 1 monitor(s) in file C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\IG40.INV
08/13/2024 15:53:46 -   ---> Generic Non-PnP Monitor|(Standard monitor types)|N/A|2024-08-13
08/13/2024 15:53:46 - Add new monitor : Generic Non-PnP Monitor - (Standard monitor types) - N/A
08/13/2024 15:53:46 - New number of monitors in monitor.txt file = 1
08/13/2024 15:53:46 -   ---> Generic Non-PnP Monitor|(Standard monitor types)|N/A|2024-08-13
08/13/2024 15:53:46 - Update file C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\Monitor.txt
08/13/2024 15:53:46 - END C:\Program Files (x86)\CA\DSM\Agent\units\00000001\uam\UMSCR.SCR
----------------------------------------------------------------------

Attachments

Monitor.dms get_app