• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing stale network service entries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing stale network service entries


  • Subject: Re: Removing stale network service entries
  • From: Allan Nathanson <email@hidden>
  • Date: Fri, 15 Feb 2008 15:54:45 -0500


On Feb 15, 2008, at 1:25 PM, Peter Sichel wrote:

When you plug a USB-to-Ethernet adaptor into your computer for the first time, a new service entry appears in the Network Preferences Panel. I have a potential client who moves laptops between stations with USB-to-Ethernet adaptors. As laptops move from station to station, they accumulate a lot of stale service entries in the Network Preferences Panel (for each USB adaptor they've seen). I'm looking for ways to remove these service entries shortly after a USB- to-Ethernet adaptor is unplugged.

The reason that we retain the service entries is that we want to ensure that every time you use that same adaptor you end up with the same configuration (so it's expected behavior).


I'm familiar with accessing the System Configuration Framework and helped develop an Open Source driver for USB-to-Ethernet adaptors, so I am able to tweak the driver if that would help.

Driver changes won't help.

I can imagine a small faceless application that listens for device notifications and walks the network service order looking for inactive service entries that meet some criteria and removes them, but that seems a little awkward.

But that's essentially what you'd need to do. ... and going a bit deeper, you'd probably want to remove the adapter-->enX mapping (something that would best be followed by a reboot).


Is there a more direct way to limit the persistence of such entries before they pile up?

Not that I can think of.

- Allan


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Removing stale network service entries
      • From: Peter Sichel <email@hidden>
References: 
 >Removing stale network service entries (From: Peter Sichel <email@hidden>)

  • Prev by Date: Re: Removing stale network service entries
  • Next by Date: How to reuse session for CFHTTP?
  • Previous by thread: Re: Removing stale network service entries
  • Next by thread: Re: Removing stale network service entries
  • Index(es):
    • Date
    • Thread