On some Unix/Linux computers the Software inventory is not complete. Some software are not detected.
Client Automation 14.0 SP2 or lower on Unix/Linux
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.
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