Printer Deployment
-
Hi All,
I’m working on integrating FOG printer management into our FOG scheme here. So far what I have done is download the handy FOG Printer Manager Helper tool to determine exact settings for printer. That works very well. Thanks @Wayne-Workman! I have successfully created a printer in FOG. Next I created a script to push printer drivers to hosts in a snapin. This works successfully. Finally, I add the said printer to each host in my group. I set the management level for the host to FOG managed. Everything appears to be normal there. No errors on the GUI. But when I go to the host and check to see what printers it has installed, I don’t find any printers.
Which service does FOG use to push printers?
Where could I find a log file for printer deployment?
Any advice is appreciated.
Cheers,
Joe
-
The file would be
c:\fog.log
The service used would be the FOGService. And thank @Senior-Developers for printers. -
Thanks Wayne!
Here is the fog.log found on one of the hosts…
------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:53 AM Client-Info Client Version: 0.11.2 7/11/2016 7:53 AM Client-Info Client OS: Windows 7/11/2016 7:53 AM Client-Info Server Version: 7/11/2016 7:53 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:53 AM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:53 AM Client-Info Client Version: 0.11.2 7/11/2016 7:53 AM Client-Info Client OS: Windows 7/11/2016 7:53 AM Client-Info Server Version: 7/11/2016 7:53 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:53 AM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:53 AM Client-Info Client Version: 0.11.2 7/11/2016 7:53 AM Client-Info Client OS: Windows 7/11/2016 7:53 AM Client-Info Server Version: 7/11/2016 7:53 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:53 AM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:53 AM Client-Info Client Version: 0.11.2 7/11/2016 7:53 AM Client-Info Client OS: Windows 7/11/2016 7:53 AM Client-Info Server Version: 7/11/2016 7:53 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:53 AM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:53 AM Client-Info Client Version: 0.11.2 7/11/2016 7:53 AM Client-Info Client OS: Windows 7/11/2016 7:53 AM Client-Info Server Version: 7/11/2016 7:53 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:53 AM Middleware::Response ERROR: Object reference not set to an instance of an object. 7/11/2016 7:53 AM Middleware::Communication URL: http://172.16.1.17/fog/management/index.php?sub=requestClientInfo&configure&newService&json 7/11/2016 7:53 AM Middleware::Communication ERROR: Could not contact FOG server 7/11/2016 7:53 AM Middleware::Communication ERROR: Unable to connect to the remote server 7/11/2016 7:53 AM Middleware::Response Success 7/11/2016 7:53 AM Service Sleeping for 60 seconds 7/11/2016 7:54 AM Middleware::Communication URL: http://172.16.1.17/fog/management/index.php?sub=requestClientInfo&mac=C8:1F:66:3F:69:34||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService&json 7/11/2016 7:54 AM Middleware::Authentication Waiting for authentication timeout to pass 7/11/2016 7:56 AM Middleware::Communication Download: http://172.16.1.17/fog/management/other/ssl/srvpublic.crt 7/11/2016 7:56 AM Middleware::Communication ERROR: Could not download file 7/11/2016 7:56 AM Middleware::Communication ERROR: Unable to connect to the remote server 7/11/2016 7:56 AM Middleware::Authentication ERROR: Could not authenticate 7/11/2016 7:56 AM Middleware::Authentication ERROR: Value cannot be null. Parameter name: authority 7/11/2016 7:56 AM Middleware::Response Success 7/11/2016 7:56 AM Middleware::Communication URL: http://172.16.1.17/fog/service/getversion.php?clientver&newService&json 7/11/2016 7:56 AM Service ERROR: Unable to get cycle data 7/11/2016 7:56 AM Service ERROR: Unable to connect to the remote server 7/11/2016 7:56 AM Middleware::Response Success ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:56 AM Client-Info Client Version: 0.11.2 7/11/2016 7:56 AM Client-Info Client OS: Windows 7/11/2016 7:56 AM Client-Info Server Version: 7/11/2016 7:56 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:56 AM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 7/11/2016 7:56 AM Client-Info Client Version: 0.11.2 7/11/2016 7:56 AM Client-Info Client OS: Windows 7/11/2016 7:56 AM Client-Info Server Version: 7/11/2016 7:56 AM Middleware::Response ERROR: Unable to get subsection 7/11/2016 7:56 AM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------
-
@Joe-Gill try resetting encryption data for that host and see if things are better. In any case this is a server issue @Tom-Elliott
-
How do I reset encryption data for that host?
-
Go to the host in your fog web portal and there should be a large reset encryption button on the top.
-
That worked to resolve the “Middleware::Response ERROR…”
---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response Success 7/11/2016 11:21 AM HostnameChanger Checking Product Key Activation 7/11/2016 11:21 AM HostnameChanger Already activated with correct key 7/11/2016 11:21 AM HostnameChanger Checking Hostname 7/11/2016 11:21 AM HostnameChanger Hostname is correct 7/11/2016 11:21 AM HostnameChanger Attempting to join active directory 7/11/2016 11:21 AM HostnameChanger The machine is already joined to the domain, code = 2691 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response No snapins ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response Success 7/11/2016 11:21 AM PrinterManager Getting installed printers 7/11/2016 11:21 AM PrinterManager Adding printers 7/11/2016 11:21 AM PrinterManager JH Lab has already been configured ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response Success 7/11/2016 11:21 AM PowerManagement Calculating tasks to unschedule 7/11/2016 11:21 AM PowerManagement Calculating tasks to schedule ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Client-Info Client Version: 0.11.3 7/11/2016 11:21 AM Client-Info Client OS: Windows 7/11/2016 11:21 AM Client-Info Server Version: 8515 7/11/2016 11:21 AM Middleware::Response Success ------------------------------------------------------------------------------ 7/11/2016 11:21 AM Middleware::Communication URL: http://172.16.1.17/fog/management/index.php?sub=requestClientInfo&configure&newService&json 7/11/2016 11:21 AM Middleware::Response Success 7/11/2016 11:21 AM Service Sleeping for 71 seconds 7/11/2016 11:23 AM Middleware::Communication URL: http://172.16.1.17/fog/management/index.php?sub=requestClientInfo&mac=C8:1F:66:3F:69:34||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService&json 7/11/2016 11:23 AM Middleware::Response Success 7/11/2016 11:23 AM Middleware::Communication URL: http://172.16.1.17/fog/service/getversion.php?clientver&newService&json 7/11/2016 11:23 AM Middleware::Communication URL: http://172.16.1.17/fog/service/getversion.php?newService&json 7/11/2016 11:23 AM Service Creating user agent cache 7/11/2016 11:23 AM Middleware::Response Success 7/11/2016 11:23 AM Middleware::Response Success 7/11/2016 11:23 AM Middleware::Response Module is disabled globally on the FOG server ------------------------------------------------------------------------------``` It does say that the "JH Lab" printer was installed but I do not see it in control panel on the printer? ![0_1468258604241_screen shot.png](/uploads/files/1468251036745-screen-shot.png)
-
It does say that the “JH Lab” printer was installed but I do not see it in the printer control panel.
-
Try logging out and in.
-
Same story. No printer.
-
Sounds like the printer configuration isn’t correct. Try running printer manager helper on this host and go to the Add New Printer tab. Fill in the necessary fields and try adding it. You should get an error pop up.
-
Will do! Thanks!
-
OK I ran the Printer Manager Helper and do not see my printer listed here at all. But I do not get a pop up with any errors either.
-
Alright… I figured out what you meant. I tried adding it and got an error. I’m assuming my install script did not install the inf properly.
-
Was it a bad driver? The ntprint inf is actually a wrapper driver that just points to any installed drivers that say they will work. You could just host the driver on a network share or even have a local copy that you point to. (Printer manager helper will always say its using ntprint as the driver though).
-
We use Xerox printers throughout the district and thankfully they all take the same generic driver. And yes, print manager is pointing me to ntprint.inf for the driver file. The installer we use is a gui so I have no idea where the actual driver file is located.
-
I found where Xerox installs the inf file… I’ll add that to one of our servers and push that out. Then go from there.
Thanks for making me think!
Cheers,
Joe
-
OK. So I can successfully make a script to copy the needed driver directory from my network share to my host machine.
robocopy "\\littledogs\tools$\drivers\printers\FOG\Xerox" "C:\Xerox" /E /IS
I save that file as a .cmd file and upload it to the fog server via snapin manager…
After that, I go to my host and deploy the snapin. I get no error messages. But the script does not produce said directories. I can go to the host machine and manually run the script without error.
Any ides?
-
I have also tried this in powershell with a different script with no luck. Script runs successfully outside of snapin.
Thanks!
Cheers!
-
Your network share needs to have anonymous read access enabled. Also, if you have that network share you can just set the driver field of the printer to the network share location of the inf. If you have 0.11.3 of the client you could also use SnapinPacks to deploy the driver.