Previous 1 2 3 Next 30 Replies Latest reply: Apr 13, 2015 6:57 PM by achi10 Go to original post
  • Marc Kerr Level 1 Level 1 (0 points)

    I'm seeing a simular issue in my test setup. Not sure if you can do a printing system reset on the server and have it clear out. Also it's not applying the printers to my test client. I've seen this before but a machine that's been on your profile server then removed and recreated for the profile server appears to have issues. That may be what's going on for me. There has to be some machine ID info someplace that's not really being cleared out when you remove a machine from Profile Manager.

  • Ofir Gal Level 1 Level 1 (135 points)

    One more bug...

  • fkick1 Level 1 Level 1 (60 points)

    Has there been any updates for OSX 10.9.1 with server 3.0.2?

  • paul@crc Level 1 Level 1 (0 points)

    Does anyone have an easier way in Mavericks Profile Manager for purging the unwanted printers? The list is piling up for me and the answer for the Lion server way does not seem to work.

  • Steven Major Level 1 Level 1 (30 points)

    I would call Apple and work your way up to the Enterprise Helpdesk.  I'm going to call again.  I reported these issues 9 months ago and when I checked up on it, the support person I was working with said the engineers classified it as a "cosmetic issue."

     

    These engineers obviously never expect us to replace/remove/rename a printer - ever.

  • Steven Major Level 1 Level 1 (30 points)

    Alright, so I had 4 hours to kill on a saturday afternoon to figure out what should be possible in under 30 seconds with a few mouse clicks. If you're reading sarcasm with a dash of annoyance in there, good. Mission accomplished.

     

    Firstly, delete the printer(s) you no longer want the normal way via System Preferences.

     

    To get into the database via the Termainl:

     

    sudo psql -U _devicemgr -d devicemgr_v2m0 -h /Library/Server/ProfileManager/Config/var/PostgreSQL

     

    Now, the key here is this differs from previous instructions by the username & database name.

     

    I think this is why some report "not all of my printers are showing up." Somewhere along the line Apple changed it, possibly during an upgrade, and didn't clean up afterwards. Using the old instructions you'll see that database as it was post-migration and changes you make won't work.

     

    I confirmed this on a server that had been upgraded since 10.7 to now 10.9.2 & Server 3.1.1.  A recent clean build I did for another project had no existance of "device_management" and only the above "devicemgr_v2m0"

     

    Once in list your printers with:

     

    select * from printers;

     

    Delete the one(s) you don't want with:

     

    delete from printers where id=[put the ID# of the printer you want deleted here];

     

    \q to exit when done.

     

    Like I said, a couple hours this afternoon, I'll be testing it further to see if it breaks something else.

     

    Love to know if this helps someone!

    -Steve

  • paul@crc Level 1 Level 1 (0 points)

    You sir are my new hero!

     

    Thank you for doing Apple's job. This worked perfect!

     

    @ Apple: I know you never like to post Terminal commands in the KB, but you really need to add this somewhere. Many who are suffering from your lack of providing a real Server OS need tips like this. Or you could just fix it so that when we remove a printer from System Prefs it updates the SQL DB.

     

    Thanks again Mr. Major!

  • atoss Level 1 Level 1 (10 points)

    Hi Steven.  I think you're solution to this issue is likely very helpful.  I'm sorry to be thick, but I'm not following the command.  I'm able to get in to devicemgr_v2m0-#, but I'm not follwoing what to do next.  You said:

    Once in list your printers with:

     

    select * from printers;

    But I'm not sure how to type this, or if I'm doing something incorrectly.  Is the whole phrase supposed to be typed in, or is the asterisk a placeholder?  When I type "select [absolutely anything] from printers," I'm just given another prompt.  It's like it accepts my command, but doesn't do anything either.  Does this command just help us to see the ID# of the printer in question?  Can you provide some more guidance on how to navigate the commands for devicemgr?

     

    And, come on Apple!  This has apparently been an issue since profile manager was introduced with Lion in 2011, surely you would have figured out that people were having problems with this by now!

  • Steven Major Level 1 Level 1 (30 points)

    Hello,

     

    Yes, when you're in there and give that command, it should list the printers that you would also see in Profile Manager.

     

    Use that number to delete the one(s) you don't want *after* you've removed them from the Server's Printers & Scanners System Preference.

     

    At that prompt, you're in the PostgreSQL database that Profile Manager uses. I'm a novice at PostgreSQL but it similar to MySQL (which I'm more familiar with) so I know just enough to be dangerous.  I've not looked at doing anything else, but you could (I'm sure) list/delete/edit anything you find in Profile Manager like Computers/iOS Devices, Device Groups, etc.

     

    Again, I've not looked to do much since I've not needed to.  I did see a thread in here where someone added a device and it caused Profile Manger to continually error in the web interface.  He did similar to my printer trick to remove the last computer he remembered having added and saved his whole setup.

     

    -Steve

  • atoss Level 1 Level 1 (10 points)

    Steve, I just wanted to thank you for the information you posted here.  Your efforts on this have saved my school a tremendous amount of work for printer deployment.  I can confirm that this process still works as of OS X 10.9.3 and Server 3.1.2.  I can't thank you enough!  The one thing that threw me off was the semi-colon!  For anyone seeking to use these commands, the semi-colon IS a part of the script!  LOL!

     

    Dear Apple:

    Profile Manager is fantastic!  Except you completely BOTCHED printer deployment!  Please address this in an update.  At the very least, create an article describing the rationale used for the Printing configuration in Profile Manager and list these commands for administrators to use as a work around!

     

    Thanks again, Steve!

  • TyClarke Level 1 Level 1 (0 points)

    So what path should be used now for Server 3.1.2?  When I go digging for _devicemgr_v2m0 I can't locate it.

  • AK121881 Level 1 Level 1 (0 points)

    Yes, this does indeed work, however, I saw an entire database go corrupt when directly editing it in this fashion. The simplest solution we have found it to just use Directory Utility.app, go to the Directory Editor Tab, authenticate to the /LDAPv3/127.0.0.1, change view to Printers, and then remove them. Simple, safe, and effective! ;-)

     

    I have to say, lots of Terminal ninja skills displayed in this thread. I'm impressed and amazed at the display of skill.

  • fkick1 Level 1 Level 1 (60 points)

    Under 10.9.5 profile manager printers don't appear to be listed in the directory utility under /LDAPv3/127.0.0.1 . The printer list is empty.

  • AK121881 Level 1 Level 1 (0 points)

    Hmmm, that's interesting. They were for us on 10.9.5. They won't appear unless you authenticate as diradmin maybe? I know they won't appear unless you authenticate, but not certain if the user matters. I'm about to deploy on 10.10.1, I'll update to see if my method still works in this fashion, since I'm almost certain the bug remains.

     

     

    EDIT****

    Your Correct. My method is now junk. 10.10.1, printers are no longer listed. But of course, the bug remains. Thanks @Apple.

  • fkick1 Level 1 Level 1 (60 points)

    Yeah, sorry about that. Here's a screen cap from our 10.9.5 Server

     

    directory_util.png