How can i add additional details from the registry to the computer inventory in CA Client Automation?

Document ID : KB000026093
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:

Often you may want to include registry values within a computer's inventory.
This document detail the steps how this can be done using a MIF file in conjunction with dmscript. A sample script is provided.

 

Environment:

CA Client Automation all versions

Windows agents

 

Instructions:

You will need to write a dmscript and link it to the agents.

The script will obtain the correct registry information and write it to a MIF file,

then send it to the Scalability server where it will be picked up by the engine and stored in the database (under the unit->Inventory->Additional in the DSM Explorer).

Extensive information about MIF files is in the Inside Guides\ Unicenter Asset Management\Management Information Format (MIF) File

The shortcut for the dmscript editor is within the DSM program group.

If you start it and press F1, you will find all information you'll need about writing and debugging scripts.

 

As an example a script is included that retrieves the agent's UUID (from the registry key (HKLM\SOFTWARE\ComputerAssociates\HostUUID) and writes
it to a MIF file

********************************************************************************
DIM RegKey1, index1 as integer
Dim HostUUID as String
RegKey1 = regopenkey(HKEY_Local_Machine,
"Software\ComputerAssociates\HostUUID")
If Regkey1 <> 0 then
RegQueryVariable(Regkey1, "HostUUID", HostUUID, Index1)
End If
 
CreateMifFile("C:\Program Files\CA\DSM\Agent\units\00000001\uam\" +
"uuid.mif", "UUID Information", "")
CreateMifGroup("C:\Program Files\CA\DSM\Agent\units\00000001\uam\" +
"uuid.mif", "UUID Details", "", "")
CreateMifString("C:\Program Files\CA\DSM\Agent\units\00000001\uam\" +
"uuid.mif", "UUID Details","UUID" ,hostuuid , "")
********************************************************************************

Additional Information:

Additional information regarding the use and creation of  MIF files and dmscript usage can be found in the CA Client Automation Implementation guide and the CA Client Automation Asset Management Administration Guide.