Client Management Suite

 View Only

Windows System Assessment Scan fails with Exit Code 7 

Feb 25, 2014 11:18 AM

Issue:

The scheduled Windows System Assessment Scan Policy or Task for PatchManagement Fails with Exit code 7

Error:

The error can be located here C:\ProgramData\Symantec\Symantec Agent\Logs

 

<event date='02/22/2014 08:00:17.2070000 -05:00' severity='2' hostName='ComputerName' source='AeXNSEvent::raw_SendQueued' module='AeXNSEvent.dll' process='AexPatchAssessment.exe' pid='5404' thread='5968' tickCount='816960219' >

 <![CDATA[Error loading type library/DLL. (0x80029C4A)]]>

</event>

<event date='02/22/2014 08:00:17.2080000 -05:00' severity='1' hostName=‘ComputerNmae’source='Utils::ComException::ComException' module='AexPatchAssessment.exe' process='AexPatchAssessment.exe' pid='5404' thread='5968' tickCount='816960219' >

  <![CDATA[HR=0x80029C4A, MSG='Inventory::InventorySender::Send()- Error loading type library/DLL.']]>

</event>

<event date='02/22/2014 08:00:17.2200000 -05:00' severity='1' hostName=‘ComputerNmae’source='Utils::ApplicationException::ApplicationException' module='AexPatchAssessment.exe' process='AexPatchAssessment.exe' pid='5404' thread='5968' tickCount='816960235' >

  <![CDATA[Message='Cannot send inventory' (ExitCode=7).]]>

</event>

<event date='02/22/2014 08:00:17.2270000 -05:00' severity='1' hostName=‘ComputerNmae’source='BaseApplication::Run' module='AexPatchAssessment.exe' process='AexPatchAssessment.exe' pid='5404' thread='5968' tickCount='816960235' >

  <![CDATA[Application exception caught: Cannot send inventory]]>

</event>

<event date='02/22/2014 08:00:17.2320000 -05:00' severity='4' hostName=‘ComputerNmae’source='BaseApplication::Run' module='AexPatchAssessment.exe' process='AexPatchAssessment.exe' pid='5404' thread='5968' tickCount='816960235' >

  <![CDATA[Deinitializing environment...]]>

</event>

<event date='02/22/2014 08:00:17.2360000 -05:00' severity='4' hostName=‘ComputerNmae’source='ProgramExec' module='smfagent.dll' process='AeXNSAgent.exe' pid='4556' thread='4528' tickCount='816960250' >

  <![CDATA[Program 'Windows System Assessment Scan' completed. Exit code=7]]>

</event>

It’s important to understand that two inventory files (Notification Server Event (NSE) are created during the Windows System Assessment Scan (WSAS) 

One for reporting and one for patch data.

Failed data is reported in the Console

Home> No Scan Data Reported

Report.jpg

If you want to trap the inventory files follow this article: http://www.symantec.com/docs/HOWTO4191

 

Environment:

Clients - Windows Server 2008 R2

 

Cause:

There are conflicting DLL’s installed on the endpoint due to a previous Altiris Agent installation (Version 6.x) and the AeXAgentUtil.exe /clean not removing the DLL’s or the Registry entries.

AeXAgentUtil.exe  switches http://www.symantec.com/docs/HOWTO5511

 

Switches.jpg

 

Solution 1:

1.       Utilizing AeXAgentUtil.exe run the UninstallAgents switch

2.       Utilizing AeXAgentUtil.exe run the clean switch

If you do not know or are not sure what registry entries belong to Altiris or if you do not have permissions to the registry you can utilize the script attached. Do not delete any registry keys you are not sure of.

3.       Open Regedit on the affected endpoint, click on Computer and search for Altiris

Caution should be taken when removing Registry entries.

4.       Right click the Registry key and click Delete.

5.       Continue through the Registry

6.       Scroll back to the top and click on Computer and search for AEX.

7.       Right click the Registry key and click Delete.

8.       Continue through the registry.

9.       Ensure all file directories have been cleaned.

10.   Install the Altiris Agent. 

11.   Allow time for the agent to check in and install plugins.

Solution 2: 

1.       Download the attached scripts to C:\Windows\Source\Altiris7Migration

2.       Change agent_clean.txt file extension to batch file or .bat

3.       Change launchclean.txt file extension to visual basic script or .vbs

4.       Right click on agent_clean.bat and click edit

5.       Scroll to the bottom and replace:

ns=”your notification server name”

nsweb=” http://your notification server name/Altiris"

C:\WINDOWS\SOURCE\Altiris7Migration\aexnsc.exe /install /ns=" your notification server name " /nsweb="http:// your notification server name /Altiris" NOTRAYICON /s  >> C:\Windows\Source\Altiris7Migration\myaexnsc.log

6.       Copy  \NSCap\bin\Win32\X86\NS Client Package\ AeXNSC.exe from the Notification Server to the affected endpoint C:\Windows\Source\Altiris7Migration.

7.       Right click and Open launchclean.vbs

launchclean.vbs will create a log file (myaexnsc.log)       

                logs completion of tasks

launchclean.vbs  will execute agent_clean.bat

                agent_clean.bat will remove directories, files, registry keys and install the Altiris agent.

8.       Allow time for the agent to check in and install plugins.

 

Related KBs  http://www.symantec.com/docs/TECH196681

 

 

Statistics
0 Favorited
0 Views
2 Files
0 Shares
0 Downloads
Attachment(s)
txt file
agent_clean.txt   28 KB   1 version
Uploaded - Feb 25, 2020
txt file
launchclean.txt   803 B   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.