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

Comments

Please log in to comment

Community Chosen Answer

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.

Answered 02/09/2013 by: mpace
Red Belt

  • I'm pretty sure zero is the time when the script should run, or in other words, the zero means now.
    • Not according to a K1 engineer, but I may have received bad info.
Please log in to comment

Answers

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:

Answered 02/10/2013 by: jknox
Red Belt

Please log in to comment
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.

Answered 02/08/2013 by: Timi
Seventh Degree Black Belt

Please log in to comment
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. 

Answered 02/08/2013 by: nshah
Red Belt

Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

Answer this question or Comment on this question for clarity