search cancel

AMAgent : "Error writing inventory file to sector" or "Error writing scan result file to sector"


Article ID: 8726


Updated On:


CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager


In TRC_AMAGENT*.log error like "Error writing scan result file to sector" and/or "Error writing inventory file to sector" appears.

Hardware and Software Inventory are not reported to DOMAIN Manager. The status of collect tasks are OK with a current date/time but the inventory remains empty or not refreshed.


Example :

Software Inventory Configuration is in status OK with recent date/time

<Please see attached file for image>


But the Software Inventory remains empty

<Please see attached file for image>



In TRC_AMAGENT*.log following error could appears :


091117-14:53:59.4354108L|001532|00000870|amagent   |amagent         |SVCSPECS.CPP        |000463|INFO   | Writing scan result to sector

091117-14:53:59.9871399L|001532|00000870|amagent   |amagent         |SVCSPECS.CPP        |000562|ERROR  | Error writing scan result file to sector.


091117-14:54:17.3157387L|001532|00000870|amagent   |amagent         |SVCSPECS.CPP        |000463|INFO   | Inventory delta processor run. Writing result to sector.

091117-14:54:17.8546089L|001532|00000870|amagent   |amagent         |SVCSPECS.CPP        |000562|ERROR  | Error writing inventory file to sector.



Release: UASIT.99000-12.8-Asset Intelligence


In order to transfer the inventory files to Scalability server, AM Agent generates a temp file under %windir%\temp (eg: c:\windows\temp).

The filename is : tmpxxxx.tmp

xxxx is a hexadecimal number from 1 to 0xFFFF (so it is 65535 possible files)

ex: tmp1.tmp, tmp2.tmp, tmp1A2C.tmp, tmp8F05.tmp



The temporary file created is deleted when transfer is done.

If the directory c:\windows\temp contains already 65535 files with name from tmp1.tmp to tmpFFFF.tmp, the creation of new temp file is not possible and error "Error writing scan result file to sector" and/or "Error writing inventory file to sector" occurs.




Delete all tmp*.tmp files under %windir%\temp


Example :

- Open a command prompt with Administrative rights and execute following commands :

cd %windir%\temp

del tmp*.tmp

<Please see attached file for image>

src="/servlet/servlet.FileDownload?file=0150c000004AKM4AAO" alt="Capture3.JPG" width="297" height="126">



1558700721822000008726_sktwi1f5rjvs16p6j.jpeg get_app
1558700720091000008726_sktwi1f5rjvs16p6i.jpeg get_app
1558700718272000008726_sktwi1f5rjvs16p6h.jpeg get_app