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.
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 Chosen by the Author
Create an online script that does the following.
Windows
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.
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
Comments