How to reboot clients?
-
OK.
I created a batch file with the command “echo” in it (like yours, but I’m not on a domain yet so echo seemed more appropriate). I added it to the snapins. I went into Hosts, chose my host, clicked Snapins, and added the echo snapin to the host. I edited the config.ini to force reboots. No luck. When I open fog.log, there is a line that reads, “FOG::TaskReboot No task found for client.” I also tried going to Task Management > List All Hosts > choose host > Single Snapin, but I get an error reading, “Failed to create deploy task. Snapins Are already deployed to this host.” Am I doing something wrong? -
when you created the snapin, did you check the “[FONT=Ubuntu][COLOR=#555555]Reboot after install” [/COLOR][/FONT]checkbox[FONT=Ubuntu][COLOR=#555555]?[/COLOR][/FONT]
-
Yes, I did.
-
when you installed the client service, did you run as administrator and install for all users?
-
This post is deleted! -
This post is deleted! -
I wasn’t sure, so I just uninstalled, reinstalled as admin for all users, and rebooted. While it was rebooting, I went into Host management and removed the snapin and let it check in once. Then I added the snapin to the host again. Same problem.
fog.log shows four lines concerning the reboot task:
[QUOTE]FOG::TaskReboot Attempting to connect to fog server…
FOG::TaskReboot Module is active…
FOG::TaskReboot Attempting to connect to fog server…
FOG::TaskReboot No task found for client.[/QUOTE] -
Those lines are referring to a Task on the server. Such as an image upload, image download task. They’re not referring to a system reboot after snapin task.
Those would be in the snapin lines of the FOG Log.
-
So it’s not just rebooting after the task I’m having a problem with. The task is not running at all. I created a new batch file and had it create a file after it ran, but that file still does not exist. The recent snapin items in the log file:
[QUOTE]FOG::SnapinClient Attempting to connect to fog server…
FOG:SnapinClient Module is active…[/QUOTE] -
I just tried setting up a different snapin. The Fog documentation links to a youtube video for how to use SFX to create an Office installer. I created and tested that and set it up as a snapin. Then I went to Hosts > my hosts > Snapins and added it. Still nothing. Is there a different way I should be pushing snapins to hosts? The fog service is running (installed as administrator) and the fog.log file shows nothing happening but regular checkins with the server.
-
have you scheduled a snapin deploy?
-
I tried, but it fails. I am going to Task Management > List All Hosts > choose my host > Advanced Deployment (gear icon) > Single Snapin. The only thing that shows up is, “Failed to create deploy task. Snapins Are already deployed to this host.”
-
is anything listed under “Active Snapin Tasks” ?
-
No. “No results found.”
-
The original question I asked in this thread has been answered. My question was, “How do I push a reboot?” The answer is to create a batch file that does something trivial, make a snapin from that script, and configure the snapin reboot the client. I am still having snapin problems, but I will open another thread to address that.
Tom & Junkhacker, thank you for your help.
-
batch file should have:
shutdown /r
This will notify all users logged on that in 1 minute the computer will reboot … snapin executes with exit 0