« Some command - line tips for Apple Remote Desktop and OS X | Main | Hallelujah! »

MORE Apple Remote Desktop command - line tips

In my last posting, I left out a command, networksetup, because I was incorrectly thinking that it only worked on Mac OS X Server. Luckily, some folks were nice enough to point out my error, so this time I'll go over networksetup. This command allows you to set various network settings for any Mac running a current version of the Apple Remote Desktop client. Like systemsetup, networksetup won't let you set every possible network setting, but it should take care of an Ivory Percentage's worth.

Technorati Tags: , , ,

networksetup lives in /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/, and although you don't need sudo to get information from it, you will need to be able to use sudo to set parameters. With networksetup you can:

As you can see, there are a lot of things you can do with system setup. One thing you can't do, unfortunately with networksetup is control bluetooth status. However, you can accomplish this by using the defaults command. You use defaults write com.apple.Bluetooth "ControllerPowerState" 1 to turn Bluetooth on, and defaults write com.apple.Bluetooth "ControllerPowerState" 0 to turn Bluetooth off. SIGHUP blued to actually change the power state, and Bob's your uncle.

So that's a quick look at networksetup. If you come up with an Apple Remote Desktop command I've missed, please let me know in the comments, and I'll see about getting that up as well.

Categories:     Mac Matters, Network Notes, Productivity, Technology
Posted by John C. Welch at 14:16 | Permalink



Comments

Warning for Notes users: The commenting system uses HTML.
I know this will be scary for some of you, especially Notes fans. However, open standards, rah-rah.
If you want to use less-than or greater-than signs, or other similar charachters that HTML reserves,
you'll simply have to learn to do it the HTML way. Luckily, HTML is kind of popular, no matter what
your re-educators have told you, and you can easily find help on the intertubes.
digital.forest Where Internet solutions grow

There, a PayPal Button.

 
Use this code for your Macworld tickets!
Family
The Artwork of Melissa Findley
Diane Francis @ the National Post Eric Francis @ the Calgary Sun

Apple Amazon Links
Apple Mac OS X Server 10.5 [Unlimited]

Apple Mac OS X Server 10.5 [10-Client]

Apple Mac OS X 10.5 Leopard

Apple Mac OS X 10.5 Leopard [5-User Family Pack]

Amazon Book Links
Legacy of Ashes: The History of the CIA

The Donnas: Bitchin'

Wizards at War (The Young Wizards, Book 8)

The Demon's Sermon on the Martial Arts

The Collected Stories of Arthur C. Clarke

JavaScript and Ajax for the Web, Sixth Edition

Awakening Warrior: Revolution in the Ethics of Warfare

FOB Links

Mac Web Writers

Techie Links

Review Victims