/build/static/layout/Breadcrumb_cap_w.png

Execute/pass variables to a KACE script externally?

We are interested in using a KACE script to open a message window for all agent-installed systems. We've created the script easily enough. However, we would like to execute this script remotely, without having to log into the KACE appliance to send it. Does anyone know if this is possible? Is there an API that I can use to hook into the KACE script and pass it the message we want to broadcast, and then execute it? Calling it from a batch or shell script on another system, perhaps. 


0 Comments   [ + ] Show comments

Answers (4)

Posted by: mpace 11 years ago
Red Belt
2

I may be misunderstanding your need, but you can call specific scripts from the client side. To run a specific script from a client computer you can use runkbot:

C:\Program Files\Dell\KACE\runkbot.exe script_ID_# 0

"script_ID_#" should be replaced with the ID number of the script as it is listed in the K1 admin gui. To find the ID number, hover over the script name and view the link path (ex: http://k1000/adminui/kbot.php?ID=13). So to force script 13 to run on a client machine my command would be:

runkbot 13 0

0 here is the version of the script. Since there is never a version 0 this will always run the latest version.

Of course you will still have to use a mechanism to execute this command from each client so it might be easier to do it via the WebUI unless you already have something like psexec in place.


Comments:
  • I'm pretty sure zero is the time when the script should run, or in other words, the zero means now. - jknox 11 years ago
    • Not according to a K1 engineer, but I may have received bad info. - mpace 11 years ago
Posted by: jknox 11 years ago
Red Belt
1

It is possible.

I had never tried, but this works in 5.4 without having an alert configured in the K1000.  It probably will work in earlier versions, but I don't have one handy to test with.

So, if you had something that could run a command line instruction, you could send an alert.

C:\Program Files (x86)\Dell\KACE\KUserAlert.exe -name=test -message=message -title=test

Returns:

 

Options for the message:

Posted by: Timi 11 years ago
7th Degree Black Belt
1

I am not aware that you can do that but it might be possible.  Have you tried the alert under the reporting module?  You can schedule an alert to be sent out.

Posted by: nshah 11 years ago
Red Belt
1

As Timi indicated, there is no need for a script as the KBOX has an alert option that can go out to all machines with an agent installed on them. As long as they are online or come online before the time out setting. 

 

If you are thinking like a on-demand kind of alert, then no, I don' t think you can do that and there are no API in the KBOX for alert. THey just introduced one for agent information with the 5.4 release but doubt that can be used for anything other then grabbing information on systems. 

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