Scripting Question

I am trying to swap a few machines from our main Kace server to the test Kace server so I can use them for my test environment.

10/04/2019 572 views

I was thinking of copying amp.conf file and changing the server name in the to server name spots, and then using file synchronizations to distribute it to the specific machines.. So far I found how to setup the file sync (I think) but I know there is a step I am missing. Could someone please point me in the right direction because I have not been able to find what steps i am missing? My Google-Fu is failing me on this one. Thank you in advance.

Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author


Create an online script that does the following.


On Success, Launch a program..

Directory - $(KACE_APP_DIR)

File - AMPTools.exe

Parameters - host=[yourserveraddress]

Make sure that Wait for completion is not checked as the agent will be swapping servers and unable to report back success after the command has ran.

Task is similar for OSX with the exception that .exe is removed from the end of AMPTools

Create a companion script on your test server for moving systems back to the production appliance once done with testing.

Answered 10/06/2019 by: Kiyolaka
Blue Belt

All Answers


If the Agent is already installed.  You can run AMPTools.exe from the \ProgramFiles..\Quest\KACE with the option host=<SMA Hostname>

No need to copy or edit the amp.conf.

AMPTools.exe host=myappliance

Answered 10/04/2019 by: KevinG
8th Degree Black Belt

  • Would I have to do that on every machine? Or is there a way to have Kace that run script on all 25 machines that I want to put in my test pool?
    • That command stops the Agent services, modifies the amp.conf and restarts the Agent services. So yes, you will need to run it on each machine that you would like to have the Agent talk to a different appliance.
      • but yes, you can use a script in the appliance to do so.
    • apply label to the machines and run script against label
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