AndrazH

Q: What keeps bonjour printers visible on the network?

Hello,

 

we have problems with a certain printer, which became visible many, many times on the list of printers visible on the network. OSX users still see about 100 of these lines, representing one single printer. That is plugged out half a day already. It looks like this:

Screen Shot 2016-07-01 at 16.21.28.png

How to get rid of this ...? What keeps this list alive anyway? Other Mac computers on the network? Judging from this HP's documentation, I'm not alone. But there isn't explained how to solve this behaviour. Any suggestions?

MacBook Pro with Retina display, OS X El Capitan (10.11.5)

Posted on Jul 1, 2016 7:27 AM

Close

Q: What keeps bonjour printers visible on the network?

  • All replies
  • Helpful answers

  • by Linc Davis,

    Linc Davis Linc Davis Jul 1, 2016 10:15 AM in response to AndrazH
    Level 10 (207,936 points)
    Applications
    Jul 1, 2016 10:15 AM in response to AndrazH

    That's the result of a malfunctioning Bluetooth device on the network, most likely either the printer itself or a third-party wireless router with incompatible settings or firmware. Restarting the router may help, temporarily. Otherwise, refer to the manufacturer for support.

  • by AndrazH,

    AndrazH AndrazH Jul 2, 2016 4:22 AM in response to Linc Davis
    Level 1 (4 points)
    Mac OS X
    Jul 2, 2016 4:22 AM in response to Linc Davis

    Bluetooth? But the printer isn't a bluetooth device, it doesn't even have wi-fi support. It's a network printer connected to the network via an ethernet port. It's in an enterprise environment - wireless network of course exists - with multiple Cisco access points, that are just that - access points, not routers. Cisco's AP are connected to Cisco switches. Router is - I think - a machine running Check Point's software.

  • by appreciate,

    appreciate Jul 2, 2016 4:39 AM in response to AndrazH
    Level 4 (1,276 points)
    Mac OS X
    Jul 2, 2016 4:39 AM in response to AndrazH

    Open airport utility via spotlight > open spotlight preferences , follow the screen shot settings .Screen Shot 2016-07-02 at 5.08.41 PM.png

  • by Linc Davis,

    Linc Davis Linc Davis Jul 2, 2016 6:43 AM in response to AndrazH
    Level 10 (207,936 points)
    Applications
    Jul 2, 2016 6:43 AM in response to AndrazH

    I meant "Bonjour," not Bluetooth.

  • by AndrazH,

    AndrazH AndrazH Jul 3, 2016 11:33 PM in response to Linc Davis
    Level 1 (4 points)
    Mac OS X
    Jul 3, 2016 11:33 PM in response to Linc Davis

    This makes your answer much more understandable. :-D Still ... what I wanted to achive is to understand where this information is kept and how is it that we (well, OSX users in this network) still see those dozens of entries representing a printer, that has ben shut off from Friday? Printer can be malfunctioning, but if it's turned off and we still see all those Kyocera printers it means something else has to be made to get rid of that.

    Actually, it seems it's somehow designed to work this way; while configuring one of the new printers I didn't do all the configuration at once and because of that for that printer too I see old entries with (2), (3) and (4) added to its name. The other new printer - an identical one - has been configured without network connection and for that one I don't see additional lines in that list of printers on the network. Both new printers now seem to function properly.

  • by John Lockwood,

    John Lockwood John Lockwood Jul 4, 2016 4:06 AM in response to AndrazH
    Level 6 (9,260 points)
    Servers Enterprise
    Jul 4, 2016 4:06 AM in response to AndrazH

    In theory what is supposed to happen is that your Mac sends out a Bonjour query asking for all Bonjour capable printers to advertise themselves and it then lists the results. You can do the equivalent in Terminal as follows.

     

    dns-sd -B _printer._tcp .

     

    You then have to press Control-C to stop the Mac listening for responses.

     

    I would feel that this may be a combination of a bug in the Kyocera and possibly a bug on your Mac. There have been known problems in certain versions of Apple's operating system in the past although none like this in El Capitan 10.11.5 that I am aware of.

     

    I would recommend speaking to your Kyocera supplier and asking if they can check and if possible upgrade the firmware of your Kyocera or if it is possible download and upgrading the firmware yourself. Some makes of printer also have the ability to turn off Bonjour completely. This would stop it obviously but would mean you would have to manually add the printer via its TCP/IP address.

     

    We have a mixture of HP and Konica-Minolta printers and while firmware updates for most of the HPs can be done ourselves, the Konica-Minolta updates have to be done by our supplier/maintainer.

  • by Linc Davis,

    Linc Davis Linc Davis Jul 4, 2016 6:31 AM in response to AndrazH
    Level 10 (207,936 points)
    Applications
    Jul 4, 2016 6:31 AM in response to AndrazH

    Some Bonjour device was advertising itself on the network as a Kyocera printer, or was inaccurately reflecting such an advertisement. I don't have any way of knowing what it was. If I understand your last comment, you seem to have solved the problem.

  • by AndrazH,

    AndrazH AndrazH Aug 11, 2016 7:30 AM in response to AndrazH
    Level 1 (4 points)
    Mac OS X
    Aug 11, 2016 7:30 AM in response to AndrazH

    Well ... I'm back, with more information, but, so it seems, maybe the same problem. We've ditched that Kyocera printer and now we use two Lexmark's C792de printers. Now adding printers looks like this:

    Screen Shot 2016-08-11 at 16.07.35.png

     

    Remember, it's just two printers and I really don't think they're both defective. I there things are happening "by design", I just don't know enough about Bonjour to understand what's happening. It appears "Zero configuration name" can be changed via some action. First few lines from the picture above resulted in configuring the first printer while it already had access to the network. After certain configuration changes, zero configuration name changed automatically.

    But the second printer was completely configured without the ethernet cable plugged in. But after a while, the second printer still became visible with "(2)". Something tells me, that after a while, I'll see (3) and so on.

     

    By the way, those ~100 lines for Kyocera printer are still visible. Printer has been reconfigured with another IP address for a different network, with disabled Bonjour and is being used in another department. So what keeps these names "active"? I've read somewhere that disconnected devices dissappear "after a while". Couldn't find out how long this "while" lasts.

     

    And it seems I'm not the only one who has similar problems: wireless printer multiplies in bonjour every 2 seconds

    The owner of that Samsung printer has/had a bigger problem, maybe with similar cause. But at the end of that thread, user x5150 mentions he has multiple entries for the same printer, for every Mac user on the network. I doubt that these entries on our network are from Mac users, I would expect to see more entries than there currently are.

     

    Are these entries shared by Mac computers that are connected to the network?

  • by John Lockwood,Helpful

    John Lockwood John Lockwood Aug 11, 2016 10:48 PM in response to AndrazH
    Level 6 (9,260 points)
    Servers Enterprise
    Aug 11, 2016 10:48 PM in response to AndrazH

    If you have a Mac connected to WiFi and Ethernet with both networks being bridged via a WiFi base-station then this might be a cause since the Mac would see the same printer on both networks and try renaming one instance and would likely get in a loop.

     

    Similarly if the printer itself is connected via both Ethernet and WiFi the same might happen.

     

    Yes the Bonjour name can be changed automatically by the device and will be if it is detecting something else already using the same name, hence my explanation of how having a device connected twice to the same network may be a cause. I suppose two Ethernet connections from a Mac to the same network would equally apply.

     

    Also the command line tool I mentioned in my previous reply i.e. dns-sd can also be used to manually rename devices and even to register fake devices.

     

    Apple's AirPort Extreme base-stations act as bonjour sleep proxy servers and will therefore keep advertising devices if they are asleep and unplugged devices may or may not get counted the same way. An Apple TV can also do this but if it detects and Apple AirPort Extreme it disables itself from doing this.

     

    Again you can use dsn-sd to see if you have any Bonjour Sleep Proxy Servers on your network as follows, remember to do Control-C after a while.

     

    dns-sd -B _sleep-proxy._udp local

  • by etresoft,Helpful

    etresoft etresoft Aug 11, 2016 10:48 PM in response to AndrazH
    Level 7 (29,101 points)
    Aug 11, 2016 10:48 PM in response to AndrazH

    Hello AndrazH,

    At one point someone explained to the exactly what causes this. It is a network race condition between machines. It was particularly bad on certain older (but not too old) versions of OS X and iOS. There was a point quite recently where Apple tried a new version of Bonjour and caused this widespread issue. If you have a device (just one) on your network that is still using the old (but not too old) protocol, you will get this result. The solution is to update all devices to the most recent OS version, turn off all devices on the network, then turn them all back on.

  • by AndrazH,

    AndrazH AndrazH Aug 11, 2016 11:05 PM in response to John Lockwood
    Level 1 (4 points)
    Mac OS X
    Aug 11, 2016 11:05 PM in response to John Lockwood

    Hello John and etresoft,

     

    thank you for your replies. I tried to search for these sleep proxy servers and it appears there are none on our network:

     

    jormungand:~ cyc$ dns-sd -B _sleep-proxy._udp local

    Browsing for _sleep-proxy._udp.local

    DATE: ---Fri 12 Aug 2016---

    7:48:20.304  ...STARTING...

    ^C

    jormungand:~ cyc$

     

    This is a bit weird. Macbooks (and an iMac) are the only apple devices on our network, but with one exception, an Apple TV, which I can see if I click on the AirPlay icon. But there are no AirPort Extremes here, we use Cisco's access points.

     

    Etresoft, do you know which versions of OSX/iOS are problematic and can cause this kind of behaviour?

  • by etresoft,

    etresoft etresoft Aug 12, 2016 8:36 AM in response to AndrazH
    Level 7 (29,101 points)
    Aug 12, 2016 8:36 AM in response to AndrazH

    AndrazH wrote:

     

    Etresoft, do you know which versions of OSX/iOS are problematic and can cause this kind of behaviour?

    Hello again AndrazH,

    I can tell you when Apple fixed it. Apple removed the "discoveryd" process in 10.10.4 (http://www.macrumors.com/2015/06/30/apple-releases-os-x-10-10-4/) and iOS9 (https://9to5mac.com/2015/06/10/ios-9-os-x-10-11-discoveryd-mdnsresponder-network -bugs/). I assume it was introduced in 10.10 and sometime earlier in the iOS8 releases. All Apple code starts in iOS these days. Due to the nature of this bug, if you have any device on your network that has the problematic software, all devices may show problems. Then again, pretty much anything Apple does these days is horribly complicated. While we can definitively state that this is a Bonjour problem, it is really hard to say what the cause is. It could be the problematic "discoveryd" software on your network. It could be something else entirely.