ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Missing Software in Software inventory

book

Article ID: 241501

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation - Asset Management CA Client Automation

Issue/Introduction

On some Unix/Linux computers the Software inventory is not complete. Some software are not detected.

Cause

The file l000*.xml under /opt/CA/DSM/Agent/AM/data/work has a number higher that current number in a new DOMAIN

Example :
There is this file /opt/CA/DSM/Agent/AM/data/work/l0000252.xml
But in scalability server the latest file under C:\Program Files (x86)\CA\DSM\ServerDB\SECTOR\SSFU is L000056.xml


On old version of Agent, amagent does not download the file from scalablity server as number is lower than current file.

Environment

Client Automation 14.0 SP2 or lower on Unix/Linux

Resolution

1- Open DSM Explorer and go under Computers and Users/All Computers/{Group Details}/Jobs
2- Right click on Jobs and select "Create Asset Job" in popup menu.
3- In listbox select script
4- Click NEXT and put a name for the job (eg : "Delete l000.XML")
5- Click NEXT and enter this in the text box :
 
 
Dim fileName As String
Dim iHandle As Integer
Dim Path As String
Dim Filter As String

IF (OSTYPE >= 0x50000 AND OSTYPE<=0x5FFFF) Then 'Windows
   Path=LocalPath
   Filter="\W0??????.XML"
ELSE
   IF ((OSTYPE >= 0x70000 AND OSTYPE<=0x7FFFF) OR (OSTYPE >= 0x80000 AND OSTYPE<=0x8FFFF) OR (OSTYPE >= 0x90000 AND OSTYPE<=0x9FFFF) OR (OSTYPE >= 0x170000 AND OSTYPE<=0x17FFFF)) Then 'HP Solaris AIX Linux
      Path=LocalPath+"/../work/"
      Filter="l0??????.xml"
   END IF
END IF

iHandle = FindFirstFile(Path+Filter, fileName)

If iHandle <> 0 Then
   Repeat
     deletefile(Path+"\"+fileName)
   Until Not(FindNextFile(iHandle, fileName))
   FindClose(iHandle)
END IF

 

6- Click NEXT and click on "Set Scheduling" button
7- In Scheduling tab, select "Run only once"
8- In Miscellaneous tab, select "This job is allowed to run unattended"
 
9- Click OK button, you should see this current scheduling :
Generally scheduled to run once.
Run unattended.
 
10- Click on Finish button