Network Interface Script

Janowski
New Contributor II

Hey everyone -

At the NUC I thought I heard mention of a script from the Resource kit,
perhaps for assigning proxies, that cycled through all the potential
network interfaces.

I can't find that script in the resource kit or jamfnation - but does this
ring a bell for anyone else? If so, can you maybe point me in the direction
of it?

We have some networksetup scripts that we use currently, but they are kinda
'brute force' in terms of assigning interface-specific values and we'd love
to leverage an existing script that has a bit more of an elegant solution :)

*ben** janowski*
Senior Macintosh Support Technician
*Kohl's Mac Support Team *| 262.703.1396

1 REPLY 1

tlarkin
Honored Contributor

You just want to loop through all active network services?

$ networksetup -listallnetworkservices An asterisk (*) denotes that a network service is disabled. Ethernet FireWire AirPort

If you have disabled ones you can do this:

networksetup -listallnetworkservices | grep -v "*"

-tom