flag

description

-setwebproxy

Set Web proxy for a network service with domain and port number.

networkservice domain

Turns proxy on. Optionally, specify on or off to enable and disable

portnumber (on off)

authenticated proxy support. Specify username and password if

[username password]

you turn authenticated proxy support on. Example:

 

networksetup -setwebproxy “Built-In Ethernet”

 

proxy.company.com 80 on bob mypassword

 

 

-help

Displays a list of all the commands available in the Network Setup

 

Tool, with explanatory information.

 

 

Any command in the Mac OS X Server command-line guide which uses networksetup can be used in Remote Desktop using the Send UNIX Command task.

Using systemsetup

The command-line tool systemsetup is used to configure other nonnetwork system settings. You can use it to query or alter time zones, network time servers, sleep settings, Energy Saver preferences, Remote Login (SSH) preferences, and more. You will find the command-line syntax, explanations, and example in the tool’s help prompt by entering the following line in the Terminal:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/ systemsetup -help

A few of the capabilities of systemsetup are listed below:

Flag

Description

-setallowpowerbuttontosleepcomputer

Enable or disable whether the power button can

(on off)

sleep the computer. Example:

 

systemsetup

 

-setallowpowerbuttontosleepcomputer

 

on

 

 

-setdate mm:dd:yy

Use this command to set the current month, day,

 

and year. Example:

 

systemsetup -setdate 04:15:02

 

 

-setlocalsubnetname name

Set Local Hostname to name. Example:

 

systemsetup -setlocalsubnetname LabMac1

 

 

-setnetworktimeserver timeserver

Use this command to designate a network time

 

server. Enter the IP address or DNS name for the

 

network time server. Example:

 

systemsetup -setnetworktimeserver

 

time.apple.com

 

 

-setremoteappleevents ( on off )

Use this command to set whether the server

 

responds to events sent by other computers (such

 

as AppleScripts). Example:

 

systemsetup -setremoreappleevents on

 

 

Chapter 8 Administering Client Computers

149

Page 149
Image 149
Apple 3 manual Using systemsetup, Few of the capabilities of systemsetup are listed below