BES Duplicate Computer removal Acivity

Hello All,

I am trying to automate Duplicate computer removal task using Fixlet but it is not working.
Please suggest if any modification is required in below action script.

delete __createfile
dos mkdir “C:\Audit”

// CREATEFILE
CreateFile until END_OF_FILE

@echo off
if %1==payload goto :payload

:getadmin
echo %~nx0: elevating self
set vbs=%temp%\getadmin.vbs
echo Set UAC = CreateObject^(“Shell.Application”^) >> "%vbs%“
echo UAC.ShellExecute “%~s0”, “payload %~sdp0 %*”, “”, “runas”, 1 >> “%vbs%”
”%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
goto :eof

:payload

chdir /d D:\Program Files (x86)\BigFix Enterprise\BES Server
BESComputerRemover-3.0.1.164.exe -D -u xdc-p xdc
echo %errorlevel% > D:\Manish\errorlev.txt

END_OF_FILE

delete Database.bat
move __CreateFile Database.bat
move “Database.bat” "C:\Audit\Database.bat"
waithidden C:\Audit\Database.bat
folder delete C:\Audit

What version of Bigfix are you running? Current versions should use the BESAdminTool Cleanup tab to schedule computer removals.

I’m not sure which versions of BES Server are supported by the removal tool, but I expect it would also need to authenticate to the root server when it runs…

2 Likes

For reference to what Jason is describing, please see the following:

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Tivoli%20Endpoint%20Manager/page/BES%20Computer%20Remover

https://www.ibm.com/support/knowledgecenter/en/SSQL82_9.5.0/com.ibm.bigfix.doc/Platform/Installation/c_clean_up_computer.html

1 Like

Hi Jason,

Please see the below detail
BigFix Version :- 9.5.13
Database :- Remote Server
BESComputerRemover is kept on BigFix Root Server

This fixlet I’m executing on Root Server but not able to delete the not reporting duplicate computers.
Yes I can schedule it via BigFix Admin tool but here I have created a baseline with the start and end notification So, that all the stackholder are aware that duplicate computers has been removed from BigFix Console.

Query
When you say removal tool need to authenticate with Root Server, So, do I need to authenticate it via IEM CLI ?

The removal tool is not supported on your version of Bigfix. I’d avoid running it entirely as it may well cause new issues for you, and the maintenance built in to the BESAdminTool is much more thorough.

2 Likes

For monitoring purposes, note that the Cleanup Functions of BESAdmin are logged. Please see the following for reference:

https://www.ibm.com/support/knowledgecenter/en/SSQL82_9.5.0/com.ibm.bigfix.doc/Platform/Installation/c_logging_clean_up.html

1 Like

Thanks Aram, This is really useful.