Jump to content

jamf school to manage printers via papercut


Recommended Posts

Posted

Hi, our teacher that uses macs in their department has asked if the classroom printer can be used by the macs, which I have never actually looked into before as apple isn't exactly my forte. We use jamf school, which I appreciate is a lesser version to jamf pro, the latter which seems to be what most guides are based around. While I can see this link is a guide on papercut's own website for deploying printers, it specifically is a guide for jamf pro. Although they said it's just a guide and not necessarily exclusive, I am not seeing much in the way of cross-over config to jamf school.

 

I don't want to invest wasted time in this, so was wondering if anyone has managed to deploy papercut and printers to macs for jamf school, or could even advise if this is not going to work?

  • Thanks 1
Posted
If you are invested in Jamf school, then get a login to this web site asap, lots of great guides and content to help you..

 

https://learn.jamf.com/category/jamf-school

 

I am not too bad finding my way around jamf school, but this is fairly specific to papercut integration, or at least the ability to do the kind of things necessary as per their guide, which I am not that familiar with.

 

 

Well, this is the same link I posted in my opening post and as I say, we do not use jamf pro

Posted (edited)

We also use Jamf Pro so I'm not sure if this functionality is in Jamf School but if you're able to run Scripts against your Macs via Jamf School then this may help. We setup mobility print a while back and use a script to add the printer. No need to deploy any packges.

 

Formatting on my code was pushing it to one line. Here is a link: https://pastecode.io/s/u6n0nu86

 

Just change the variables at the top to point to your mobility print server information.

 

Parameter 4MobilityHost

Parameter 5QueueName

Parameter 6Location

Parameter 7Info

Edited by RLR
Posted
We also use Jamf Pro so I'm not sure if this functionality is in Jamf School but if you're able to run Scripts against your Macs via Jamf School then this may help. We setup mobility print a while back and use a script to add the printer. No need to deploy any packges.

 

Formatting on my code was pushing it to one line. Here is a link: https://pastecode.io/s/u6n0nu86

 

Just change the variables at the top to point to your mobility print server information.

 

Parameter 4MobilityHost

Parameter 5QueueName

Parameter 6Location

Parameter 7Info

 

@RLR: Thanks for this, jamf school does have scripting so I am able to upload a script to run at login (I assume that's when you have your one). Alas I can't quite get it to map our printer despite this being enabled in mobility and available in the list if trying manually on the mac. Quite sure I have set the variables right.

 

Would you expect this to just map at each login? I assume the echo lines are writing to a log somewhere, so it'll be useful to know where that is as I can't figure that out from the script (which would also help me see if it's even trying to run it at all). It's picking it up in the profile at least.

Posted

This isn't a script I created so not very familiar with it. It was one I got from the Jamf Nation website when they hosted community scripts which I don't believe they do anymore. I do more Powershell stuff.

 

We have it set to run once per user at login.

 

You could try manually running this part of the script as this is what adds the printer to see if you get any errors (change variables in bold):

lpadmin -p "MobilityPrintQueueName" -E -v "PrintServerName.domain.com:9164/printers/MobilityPrintQueueName" -i "/tmp/MobilityPrintQueueName" -L "Location" -D "MobilePrint" -o auth-info-required=username,password -o printer-error-policy=retry-job

Posted
This isn't a script I created so not very familiar with it. It was one I got from the Jamf Nation website when they hosted community scripts which I don't believe they do anymore. I do more Powershell stuff.

 

We have it set to run once per user at login.

 

You could try manually running this part of the script as this is what adds the printer to see if you get any errors (change variables in bold):

lpadmin -p "MobilityPrintQueueName" -E -v "PrintServerName.domain.com:9164/printers/MobilityPrintQueueName" -i "/tmp/MobilityPrintQueueName" -L "Location" -D "MobilePrint" -o auth-info-required=username,password -o printer-error-policy=retry-job

 

So I possibly see now why it doesn't work when I run it manually, as it tells me that system v scripts are no longer supported (for security reasons) and my searching for this doesn't pull a resolution. Some suggestions indicate using IPP but I can't see how this ties in to papercut authentication. I didn't think it would be straightforward but I thought I may have made a little progress. Maybe I just cut my losses!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...