How to add WOL command to 'Device Actions' drop down in Kace 6.0
I want to add this option to a list of functions I already have in this feature which then can exectuted from the devices listing. Going to the distribution, wake on LAN feature takes too much time as I have to go back and forth every time I want to wake up a machine. Having this as one of the drop down items would be awesome!
2 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
SMal.tmcc
10 years ago
One way you can get this to work
1.Run the kace admin from servers browsers
2. On that server, have a third party wol.exe on it. Then under settings - control panel - general settings - device actions create a new custom action to call that exe with the kace variables.
3. have the subnets trunked to that server that the machines are on that you want to wake up.
We use our dchp servers to do this trick since they are vlan'd for DHCP.
1.Run the kace admin from servers browsers
2. On that server, have a third party wol.exe on it. Then under settings - control panel - general settings - device actions create a new custom action to call that exe with the kace variables.
3. have the subnets trunked to that server that the machines are on that you want to wake up.
We use our dchp servers to do this trick since they are vlan'd for DHCP.
Comments:
-
Not sure if we can do this from the kbox server itself as we access the appliance admin log on using the workstation browsers. - bnerison 10 years ago
-
We use RDC to get to the servers and run the browser on the server. (we have 5 sites and a server at each site for this)
That is gotcha with this approach. You have to give rights to logon to the server to your staff. We set up an IT group that cannot mess up the server, just use remote desktop login and run the programs and access the directory the wol.exe is in. - SMal.tmcc 10 years ago-
Here are a couple of DOS commands that I have working but only works if I enter in mac for the machine. The kace variables don't work from DOS so I supplement them when adding as device action but still no go...will keep trying!
Thanks,
Brad
runas /user:XXX\admin "c:\psexec.exe -acceptula -s \\server C:\temp\WMOL_1_61\WakeMeOnLan.exe /wakeup 00:18:8B:2B:35:0B"
and
"\\server\share\wol\wakemeonlan\WakeMeOnLan.exe" /wakeup 00:18:8B:2B:35:0B - bnerison 10 years ago -
Have not tried this myself but you may be able to use "for do set" command to create the mac as dos variable by reading the kace mac in a custom action batch file to a set dos variable then you can use that variable in the rest of the batch file.
https://www.google.com/search?q=for+do+command&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=fflb#channel=fflb&q=for+do+dos+command&rls=org.mozilla:en-US:official
One other thought is to create a custom software inventory that stores the mac address, and use that as the variable to wake the machine.
this is from the help on device actions for version 6.0, it shows you can use a custom inventory task as a variable by naming it in your command.
Device actions can be executed against known unmanaged and managed systems. During execution of a device action, the K1000 will replace action variables with their respective values. Currently supported variables are:
KACE_HOST_IP
KACE_HOST_NAME
KACE_CUSTOM_INVENTORY_*
The * should be replaced with the software name which has a custom inventory rule. Upon performing Device Action, the name is replaced with the custom inventory rule value for the device. The software name should be added in upper case. Only allowed characters are [A-Z0-9.-]."
so you could then have the third party wol.exe on workstations or have the stations mapped to the share that you want to use to wake the others from and when you use the browser to call that device action it will pass that variable to your command. - SMal.tmcc 10 years ago
Rumor has it they are looking to add WOL as a option from the "Chose Action" drop down like they did with force inventory.
If I am wrong, I would love seeing a work around from someone else that has come up with using the KBOX WOL option.
you may have seen this already
http://www.itninja.com/question/configure-wol-machine-action - nshah 10 years ago
The server and workstations are on same LAN but not sure if the location for the .exe is accessible to all...will try to run from a public share. - bnerison 10 years ago