Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.9: Enable experimental network commands Network
Many advanced network configuration commands can be reached with the scutil command line tool. Launch Terminal.app and run:

ENABLE_EXPERIMENTAL_SCUTIL_COMMANDS=1 scutil --net, then type help and press the Return key to see the available options.

For example:
localhost:~ user$ ENABLE_EXPERIMENTAL_SCUTIL_COMMANDS=1 scutil --net
set "Automatic" selected
> help

Available commands:

 help                          : list available commands
 f.read file                   : process commands from file
 quit [!]                      : quit

 commit                        : commit any changes
 apply                         : apply any changes

 create interface  [  |  ]
 create protocol 
 create service [  |  [  ]]
 create set [setName]

 disable protocol [  ]
 disable service  [  |  ]

 enable protocol  [  ]
 enable service   [  |  ]

 remove protocol  [  ]
 remove service   [  |  ]
 remove set       [  |  ]

 select interface  |  | $child | $service | $vlan | $bond  | $bridge 
 select protocol  
 select service    | 
 select set        | 

 set interface context-sensitive-arguments (or ? for help)
 set protocol  context-sensitive-arguments (or ? for help)
 set service   [ name  ] [ order new-order ] [ rank ( | First | Last | Never) [temp] ]
 set set       [ name setName ] | [ current ]

 show interfaces
 show interface [  |  ]
 show protocols
 show protocol  [  ]
 show services  [ all ]
 show service   [  |  ]
 show sets

 show set       [  |  ]

 update                        : update the network configuration

>


[crarko adds: I haven't tested this one. Obviously be careful before using the commands. I'd suggest making a log of any changes made, and understand how to undo them. This would be a good time to do a full system backup.]
    •    
  • Currently 1.28 / 5
  You rated: 5 / 5 (25 votes cast)
 
[15,557 views]  

10.9: Enable experimental network commands | 1 comments | Create New Account
Click here to return to the '10.9: Enable experimental network commands' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.9: Enable experimental network commands
Authored by: satcomer on Mar 29, '14 09:03:10AM

What about networksetup -getinfo (network service) - i.e. networksetup -getinfo Wi-Fi (for the Wi-Fi is what I am using in the example)?

If i was using the Ethernet the command would be: network setup -getinfo Ethernet .

I found all these commands a while ago in 10.7.5 using : man networksetup

Edited on Mar 29, '14 09:08:37AM by satcomer



[ Reply to This | # ]