/build/static/layout/Breadcrumb_cap_w.png

Kbox - Change in IP Address

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

Answers (6)

Posted by: cmccracken 12 years ago
Orange Senior Belt
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
Posted by: scottlutz 12 years ago
Orange Senior Belt
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
Posted by: scottlutz 12 years ago
Orange Senior Belt
0
ORIGINAL: cmccracken

amptools.exe -resetconf host=yourhost.


Or of course, you can use amptools (LOL)

Nice one Casey :)
Posted by: afzal 12 years ago
Fourth Degree Green Belt
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,
Posted by: cmccracken 12 years ago
Orange Senior Belt
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
Posted by: afzal 12 years ago
Fourth Degree Green Belt
0
It was lot simpler than i thought. I just duplicated the Debug Log Disable Script and changed it as under.
Thank You.



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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ