Snapin downloads
-
made a simple cmd file that just does an ifconfig and pipes it to a text file
ipconfig >c:\ip.txtfile runs fine manually. I am trying to push it out via a snapin. The fog.log show it as downloaded. Then it shows it as starting install, but never does anything after that. I dont think it actually installs. Any ideas?
-
i assume that this is a .bat file
make sure that a space or carriage return follows the last command in the file. -
yes it is a bat file. It did not have a carriage return. Trying again now.
-
I put a carriage return at the end of the file. Same results. Last line says
Starting Fog Snapin Installation
and nothing after that. -
when you installed the client service, did you “run as administrator” to install it? did you install for all users?
-
I believe we did both. The client does work to rename the PC and to deploy printers.
-
after you edited the file, did you try uploading it with the same name as before? if so, it’s likely that it didn’t upload at all as the the web server doesn’t have rights to overwrite files in that directory.
-
No, I gave it a new name.
-
i’m not sure why it’s not working then
the following is what i use as a test snapin
[CODE]@echo off
echo “HELLO I INSTALLED SNAPIN1 ON MY SYSTEM” > C:\installedSnapin1.txt
[/CODE] -
Me either. Does this look right (see attached img) ?
also my scrip is simply
cd
ipconfig /all >c:\ip.txt[url=“/_imported_xf_attachments/1/1197_Capture.JPG?:”]Capture.JPG[/url]
-
I tried it on my home fog server. Got the same issue. Least I consistently fail. Here is the fog.log
[CODE]7/23/2014 11:08 PM FOG::ClientUpdater Client update process complete, exiting…
7/23/2014 11:11 PM FOG::SnapinClient Attempting to connect to fog server…
7/23/2014 11:11 PM FOG::SnapinClient Module is active…
7/23/2014 11:11 PM FOG::SnapinClient Snapin Found:
7/23/2014 11:11 PM FOG::SnapinClient ID: 1
7/23/2014 11:11 PM FOG::SnapinClient RunWith: c:\windows\system32\cmd.exe
7/23/2014 11:11 PM FOG::SnapinClient RunWithArgs:
7/23/2014 11:11 PM FOG::SnapinClient Name: IPV1
7/23/2014 11:11 PM FOG::SnapinClient Created: 2014-07-24 03:01:34
7/23/2014 11:11 PM FOG::SnapinClient Args:
7/23/2014 11:11 PM FOG::SnapinClient Reboot: No
7/23/2014 11:11 PM FOG::SnapinClient Starting FOG Snapin Download
7/23/2014 11:11 PM FOG::SnapinClient Download complete.
7/23/2014 11:11 PM FOG::SnapinClient Starting FOG Snapin Installation.[/CODE] -
HOLY @#$%@$# I got it to work. i added the /c in the argument parameters. I will try to duplicate tomorrow and report back.
-
yep have to add the /c in the “snapin run with arguments” box . It is not optional.
-
What if you remove the /c argument AND the run with cmd.exe argument?
-
I think it fails with the same above error. I will verify tonite. Thanks again for your time and effort.
-
Tom,
If I left those two fields blank, the snapin seems to run just fine.