Hi,
We have Kbox running since last 3 years, it is on DNS [kbox.mycompany.com] and recently we have upgraded it to 5.3 Server and Agents.
Now due to some infrastructure changes we need to change the IP address of Kbox. it looks simple since kbox is on DNS.
However, some of our Technicians have previously installed the Kbox agent manually using the IP address at the installation dialog box. I don’t know how many of these agents were initially installed with IP address, Now we have upgraded most of the agents with 5.3 using auto upgrade feature of Kbox.
I have , checked on some test PCs by manually installing the Agent using IP address and have found the amp.conf file keep the IP address there, Would appreciate if someone can tell me how can i check or replace the IP address entry with the DNS name in the connected Agent.

Regards,
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Afzal,

I think you can do this in a number of ways, 2 of which are:
1. Create a File Synchronization to ensure that the amp.conf files are consistent
2. Create a script that parses through the amp.conf files looking for the "host=xxx" line. If that line contains an IP address, mark it as one that needs a change.

In all likelihood, there should not be many agents with IP addresses, as they get their config form the K1 itself. You can verify these settings in the K1000 Network Settings under the Support tab.

HTH
Answered 02/23/2012 by: scottlutz
Orange Senior Belt

Please log in to comment
2
Hey Afzal,

To reset any agents you find, you can use the command line: amptools.exe -resetconf host=yourhost.

I believe something like this should work to detect the agents and repair them (Please test first):

@echo off
findstr /m "host=123.123.123.123" C:\ProgramData\Dell\KACE\amp.conf
if %errorlevel% == 0 (
amptools.exe -resetconf host=yourhost
)

Casey
Answered 02/23/2012 by: cmccracken
Orange Senior Belt

Please log in to comment
0
ORIGINAL: cmccracken

amptools.exe -resetconf host=yourhost.


Or of course, you can use amptools (LOL)

Nice one Casey :)
Answered 02/23/2012 by: scottlutz
Orange Senior Belt

Please log in to comment
0
Thank you Very much for both of you. This is something new to me . Just let me now wthere to put this, I know how to execute the VB scripts with Kbox but this looks like a Bat file.

Regards,
Answered 02/23/2012 by: afzal
Fourth Degree Green Belt

Please log in to comment
0
It is probably pretty similar to executing the VBScript.

My thought was to make a batch file with the above code (ex. fix.bat) then add it as a dependency to a kscript. Then you can set the verify step to fail and remediation to run a program. The directory should be $(KACE_DEPENDENCY_DIR) and the file would be fix.bat.

If you apply the script to all PCs, then set it not to run on a schedule but "Also Run Once at next Client Checkin" and "Allow Run While Logged Off" you should be set.

I don't do too many kscripts, so please be sure to test before you let it go on all your PCs :)

Casey
Answered 02/24/2012 by: cmccracken
Orange Senior Belt

Please log in to comment
0
It was lot simpler than i thought. I just duplicated the Debug Log Disable Script and changed it as under.
Thank You.



Answered 02/24/2012 by: afzal
Fourth Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity