I have been running into issues lately as to where I do an install for the KACE agent, the inventory doesn't happen.  I have the basic files, such as amp.conf, amp_auto.comf and the amp agent is even connected.  

What happens is the inventory.db and the inventory.xml files don't show up.  What I have normally done to fix this is to reinstall the agent.  This seems to fix the issue.  However, now it does not do anything except for install a few files.  

I have talked with support, but they don't seem to know what is going on.  Has anyone run into this issue, and what can I do to fix this?


Any help is greatly appreciated.
Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answer Chosen by the Author

0
at first:
Check if the amp.conf has the host=K1000 (assuming your K1000 is avaiable under this name in the network) in it.
Then go to c:\program files (x86)\dell\kace and run the runkbot -s 4 0 and check the results for errors.
If unsure, post them here.
Answered 02/22/2016 by: Nico_K
Red Belt

  • This did not work. Sorry I marked as best answer.
Please log in to comment

Answers

0
I figured out how to do this by adding my own portion to the batch file that KACE supplies to remove their agent.  Below is the guts from the batch file.  

The entries I added are highlighted in yellow:

START OF BATCH FILE
-------------------------------------------------------------------------------------------------------------------------------------------
@echo off
REM    Copyright 2012 Dell Inc.
REM    All rights reserved.
REM
REM    File: agent_msi_remove.bat
REM
REM    This bat controls K1000 Agent auto-removal
REM    This file should be located in the K1000
REM    client\agent_provisioning\window_platform
REM    shared directory.
REM
REM    Params:
REM      %1 - optional, if present and "1", then also removes all left-over config files
REM
echo [MSGCODE: 000] Begin agent_msi_remove.bat processing.
:: Set KProgramFiles to 32-bit dir on x64
SET KProgramFiles=%ProgramFiles(x86)%
IF NOT EXIST "%KProgramFiles%" SET KProgramFiles=%ProgramFiles%
:detected
REM *** K1000 AGENT REMOVAL (5.2 or later) ***
REM  Launch AMPTools.exe in uninstall mode
REM
IF NOT EXIST "%KProgramFiles%\Dell\KACE" goto 51agent
IF NOT EXIST "%KProgramFiles%\Dell\KACE\AMPTools.exe" goto 51agent
 
echo [MSGCODE: 005] K1000 Agent is detected.
echo [MSGCODE: 006] Removing K1000 Agent.
cd /D "%KProgramFiles%\dell\kace"
REM Change the dir since AMPTools can't remove current dir
cd ..
start /wait kace\AMPTools.exe -uninstall
C:\windows\system32\MsiExec.exe /X{01149449-7C06-4F41-AF11-7C5E2D4F1EF2} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{54DF169F-4A25-0394-DB51-781E9401C12A} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{6DF1480F-FC36-B0A4-3BDE-05228404E533} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{9A82E08C-0260-7D84-0A51-906963AFF6BC} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{F961FD45-52A4-4930-BD15-87E149101CA2} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{C80E28A9-0620-48D7-A015-099636FA6FCB} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
REM cleanup HKEY classes root leftover keys from previous agents
REM This removes verion 5.x.x
reg delete HKEY_CLASSES_ROOT\Installer\Products\54DF169F4A250394DB51781E9401C12A /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\54DF169F4A250394DB51781E9401C12A\SourceList /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\54DF169F4A250394DB51781E9401C12A\SourceList\Media /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\54DF169F4A250394DB51781E9401C12A\SourceList\Net /f
REM This removes verion 5.x.x
reg delete HKEY_CLASSES_ROOT\Installer\Products\6DF1480FFC36B0A43BDE05228404E533 /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\6DF1480FFC36B0A43BDE05228404E533\SourceList /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\6DF1480FFC36B0A43BDE05228404E533\SourceList\Media /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\6DF1480FFC36B0A43BDE05228404E533\SourceList\Net /f
REM This removes verion 5.x.x
reg delete HKEY_CLASSES_ROOT\Installer\Products\9A82E08C02607D840A51906963AFF6BC /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\9A82E08C02607D840A51906963AFF6BC\SourceList /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\9A82E08C02607D840A51906963AFF6BC\SourceList\Media /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\9A82E08C02607D840A51906963AFF6BC\SourceList\Net /f
REM This removes verion 5.x.x
reg delete HKEY_CLASSES_ROOT\Installer\Products\F961FD4552A44930BD1587E149101CA2 /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\F961FD4552A44930BD1587E149101CA2\SourceList /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\F961FD4552A44930BD1587E149101CA2\SourceList\Media /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\F961FD4552A44930BD1587E149101CA2\SourceList\Net /f
REM This removes verion 5.x.x
reg delete HKEY_CLASSES_ROOT\Installer\Products\C80E28A9062048D7A015099636FA6FCB\ /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\C80E28A9062048D7A015099636FA6FCB\SourceList\Media /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\C80E28A9062048D7A015099636FA6FCB\SourceList /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\C80E28A9062048D7A015099636FA6FCB\Net /f
 
REM Deleting Extra Keys that helps end inventory issues

reg delete HKEY_CURRENT_USER\Software\Dell /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Dell /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\ACUConfig /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\eventlog\Application\ACUConfig /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet\services\eventlog\Application\ACUConfig /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\AMPAgent /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\AMPWatchDog /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\konea /f
reg delete HKEY_USERS\.DEFAULT\Software\Dell /f


REM Deletes amp files to allow deleting of ProgramData Folders

CD \
CD ProgramData\Dell\KACE
DEL /F /Q AMP.CONF
DEL /F /Q AMP_AUTO.CONF
RD /S /Q USER
CD ..
RD /S /Q KACE
CD ..
RD /S /Q DELL
CD\


REM We need to wait 15 seconds for msiexec to complete agent uninstall
ping 127.0.0.1 -n 15 -w 1000 > nul
REM *** ADDITIONAL CLEANUP ACTIONS ***
REM  Remove any unused or unwanted files here
REM  Example: Remove any residual 5.2+ agent files
REM  rmdir /S /Q "%KProgramFiles%\Dell\KACE"
if "%1" == "1" echo [MSGCODE: 010] Removing all agent files.
if "%1" == "1" rmdir /S /Q "%KProgramFiles%\Dell\KACE"
REM Report if the agent is installed, so the K1000 provisioning system
REM can record success or failure.
REM The server will be looking for this string, so don't change it,
REM without changing it as well.
if exist "%KProgramFiles%\Dell\KACE\AMPTools.exe" echo [MSGCODE: 003] Uninstall failed: K1000 Agent NOT removed.
if not exist "%KProgramFiles%\Dell\KACE\AMPTools.exe" echo [MSGCODE: 004] K1000 Agent successfully uninstalled.
 
:51agent
REM *** K1000 AGENT REMOVAL (5.1 or earlier) ***
REM  Launch kinstaller.exe in UNINSTALL mode
REM  This uninstall call uses the existing
REM  kinstaller.exe in the K1000 program files
REM  directory to do all the work of
REM  uninstalling the K1000 agent
REM
IF NOT EXIST "%KProgramFiles%\kace\kbox" goto oldagent
IF NOT EXIST "%KProgramFiles%\kace\kbox\kinstaller.exe" goto oldagent
goto endExistsCheck
REM To remove any old agent installed at hard coded location  ...
:oldagent
IF NOT EXIST "%ProgramFiles%\kace\kbox" goto end
IF NOT EXIST "%ProgramFiles%\kace\kbox\kinstaller.exe" goto end
set KProgramFiles=%ProgramFiles%
:endExistsCheck
cd /D "%KProgramFiles%\kace\kbox"
start /wait kinstaller.exe -display_mode=silent -uninstall
 
C:\windows\system32\MsiExec.exe /X{01149449-7C06-4F41-AF11-7C5E2D4F1EF2} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{54DF169F-4A25-0394-DB51-781E9401C12A} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{6DF1480F-FC36-B0A4-3BDE-05228404E533} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{9A82E08C-0260-7D84-0A51-906963AFF6BC} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{F961FD45-52A4-4930-BD15-87E149101CA2} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
C:\windows\system32\MsiExec.exe /X{C80E28A9-0620-48D7-A015-099636FA6FCB} /qn
ping 127.0.0.1 -n 15 -w 1000 > nul
REM cleanup HKEY classes root leftover keys from previous agents
REM Look for uninstall key if exists remove itfor /f "delims=" %%a in ('reg query HKEY_CLASSES_ROOT\Installer\Products /s /f "Dell KACE Agent" ^| findstr /C:"Installer"') do @set agentRegKey=%%aif NOT %agentRegKey%=="" (reg delete %agentRegKey% /f /va)
REM  Remove any unused or unwanted files here
REM  Example: Remove any residual 1.x agent files
REM  rmdir /S /Q "%KProgramFiles%\KACE\KBOX-DM"
if "%1" == "1" echo [MSGCODE: 010] Removing all agent files
REM Change the dir since rmdir can't remove current dir
cd ..
if "%1" == "1" rmdir /S /Q "%KProgramFiles%\KACE\KBOX"
REM Remove C:/ProgramData/Dell/kace for win 7
rmdir /S /Q "C:\ProgramData\Dell\Kace\"
REM Remove Program Data for XP
rmdir /S /Q "C:\Documents And Settings\All Users\Dell\Kace
REM Report if the agent is installed, so the K1000 provisioning system
REM can record success or failure.
REM The server will be looking for this string, so don't change it,
REM without changing it as well.
if exist "%KProgramFiles%\kace\kbox\kboxclient.exe" echo [MSGCODE: 003] Uninstall failed: K1000 Agent NOT removed.
if not exist "%KProgramFiles%\kace\kbox\kboxclient.exe" echo [MSGCODE: 004] K1000 Agent successfully uninstalled.

:end
echo [MSGCODE: 100] End agent_msi_remove.bat processing.

--------------------------------------------------------------------------------------------------------------------------------------------
END OF BATCH FILE


You may ask why I deleted files manually instead of doing a RD /S /Q.  The reason why is that for some reason it didn't work.  It was actually in the original version of the batch file.  It didn't delete anything, so I added it step by step deletion of files and directories.

The reason why I believe this happened is that when I created an image I used KACE to install programs.  I ran the uninstall batch file from KACE before I uploaded the image.  The uninstall batch file did not take care of all the registry files that it needed to.  by searching and uninstalling the necessary files under ProgramData and the registry entries, I was able to get it to work.  


If anyone has any questions, feel free to add onto this thread.
Answered 02/22/2016 by: zgillette
Second Degree Blue Belt

Please log in to comment
0
I have been having the same issue.  Multiple calls to support have not been very successful.  However I have been told there is a known bug in 6.4 where the weburl line is missing from amp_auto.conf.  I have added this line where it was missing and have had some of the machines start working again.

Uninstall/Re-Install  does not fix this problem.

This is supposed to be fixed in the upcoming 6.4 sp2 release.
Answered 02/22/2016 by: glapolla
White Belt

  • Mine went a little deeper than that. If you want to try the batch file that I have rewritten and see if it works.
Please log in to comment
Answer this question or Comment on this question for clarity