Manuals
/
Apple
/
Computer Equipment
/
Server
Apple
oxs
manual
Mac OS X Server Command-Line Administration
Models:
oxs
1
1
175
175
Download
175 pages
24.88 Kb
1
2
3
4
5
6
7
8
<
>
Install
Password
Default Settings
Postfixdeliverlockdelay
Login
$ sudo serveradmin list
Disconnecting AFP Users
Configuring Ldap
Checking for Disk Problems
GuestAccess
Page 1
Image 1
Mac OS X Server
Command-Line
Administration
For Version 10.3 or Later
Page 2
Page 1
Image 1
Page 2
Contents
Mac OS X Server Command-Line Administration
034-2354/10-24-03
Contents
Energy Saver Settings
Setting General System Preferences
Viewing or Changing Sleep Settings
Power Management Settings
Mounting and Unmounting Volumes
Working With Disks and Volumes
Mounting Volumes
Unmounting Volumes
AFP Service
Working With File Services
Starting and Stopping AFP Service
Checking AFP Service Status
Starting and Stopping Print Service
Working With Print Service
Checking the Status of Print Service
Viewing Print Service Settings
Changing Settings Using serveradmin
157 Configuring Ldap
156 Changing Open Directory Service Settings 157
171
Index
Command Parameters and Options
Commands and Other Terminal Text
Notation Conventions
Summary
Commands Requiring Root Privileges
Default Settings
To open Terminal
Using Terminal
Repeating Commands
Correcting Typing Errors
Including Paths Using Drag-and-Drop
To type a command
$ sudo serveradmin list
Sending a Single Command
Sending Commands to a Remote Server
Example ssh -l admin
To open a connection to a remote server
Updating SSH Key Fingerprints
Using Telnet
Getting Online Help for Commands
To enable Telnet access
To disable Telnet access
Determining Whether a Service Needs to be Restarted
Serversetup
Page
Automating Server Setup
Installing Server Software
Creating a Configuration File Template
To save a template configuration file during server setup
Installing Server Software and Finishing Basic Setup
Installing Server Software and Finishing Basic Setup
Installing Server Software and Finishing Basic Setup
Naming Configuration Files
Changing Server Settings
Storing a Configuration File in an Accessible Location
Updating Server Software
Viewing, Validating, and Setting the Software Serial Number
Moving a Server
Page
Automatic Restart
Examples
To restart the local server
To restart a remote server immediately
Shutting Down a Server
Changing a Remote Server’s Startup Disk
To change the startup disk
To shut down a remote server immediately
Date and Time
Computer Name
Viewing or Changing the Computer Name
To display the server’s computer name
Viewing or Changing the System Time
Viewing or Changing the System Date
Viewing or Changing the System Time Zone
Viewing or Changing Sleep Settings
Energy Saver Settings
Viewing or Changing Automatic Restart Settings
Viewing or Changing Network Time Server Usage
Startup Disk Settings
Power Management Settings
Viewing or Changing the Startup Disk
International Settings
Sharing Settings
Viewing or Changing Remote Login Settings
Viewing or Changing Language Settings
To view the current setting
Login Settings
Disabling the Restart and Shutdown Buttons
Viewing Port Names and Hardware Addresses
Viewing or Changing Media Settings
Network Port Configurations
Creating or Deleting Port Configurations
Activating Port Configurations
Changing Configuration Precedence
TCP/IP Settings
Changing a Server’s IP Address
To view TCP/IP settings for port en0
To list TCP/IP settings for a configuration
To view TCP/IP settings for a particular port or device
To change TCP/IP settings for a particular port or device
Viewing or Changing DNS Servers
Proxy Settings
AppleTalk Settings
Viewing or Changing FTP Proxy Settings
Enabling TCP/IP
Viewing or Changing Secure Web Proxy Settings
Viewing or Changing Web Proxy Settings
Viewing or Changing Streaming Proxy Settings
Viewing or Changing Gopher Proxy Settings
Viewing or Changing Socks Firewall Proxy Settings
AirPort Settings
Viewing or Changing Airport Settings
Computer, Host, and Rendezvous Name
Viewing or Changing the Rendezvous Name
Viewing or Changing the Local Host Name
Page
Mounting Volumes
Checking for Disk Problems
Unmounting Volumes
Monitoring Disk Space
Reclaiming Disk Space Using Log Rolling Scripts
Turning on Journaling for an Existing Volume
Checking to See if Journaling is Enabled
Managing Disk Journaling
Example
Setting Up a Case-Sensitive HFS+ File System
Enabling Journaling When You Erase a Disk
Erasing, Partitioning, and Formatting Disks
Disabling Journaling
To image a boot volume
Imaging and Cloning Volumes Using ASR
To restore a volume from an image
Hdiutil convert -format Udzo pathtoimage -o compressedimage
To create a user with a specific UID
To create a user
To create a user with a specific UID and home directory
To import users and groups
Importing Users and Groups
Writing a Record Description
Creating a Character-Delimited User Import File
Use the shorthand StandardGroupRecord
DSRecTypeStandardGroups
Using the StandardUserRecord Shorthand
Attribute
User Attributes
Format Sample values
Attribute Format Sample values
AdminLimits
MCXSettings
Authentication
AuthenticationHint
MailAttribute field Description Sample values
Mail Attributes in User Records
KNotificationState
NotificationState
NotificationOff is assumed NotificationStaticIP
Value
Checking a Server User’s Name, UID, or Password
Creating a User’s Home Directory
Checking a User’s Administrator Privileges
Creating a Group Folder
Mounting a User’s Home Directory
Page
To list existing share points
Listing Share Points
To create a share point
Creating a Share Point
Examples
AFP Service
List of AFP Settings
Changing AFP Settings
AdminGetsSp
Admin31GetsSp
AllowRootLogin
AttemptAdminAuth
AdminUsers
GuestAccess
Default = afpserver
LogLogin
Default = classicpermissions
Unixwithclassicadminpermissions
Noadminkills
SpecialAdminPrivs
Listing Connected Users
List of AFP serveradmin Commands
To list connected users
Output
Sending a Message to AFP Users
Disconnecting AFP Users
To send a message
To disconnect users
To cancel a disconnect
Canceling a User Disconnect
Value Description
To list samples
Listing AFP Service Statistics
Starting and Stopping NFS Service
NFS Service
Checking NFS Service Status
Viewing NFS Settings
FTP Service
FTP Settings
Changing FTP Settings
Parameter ftp
Ftpcommand= Description
List of FTP serveradmin Commands
Page
Changing SMB Settings
Viewing SMB Settings
To list all SMB service settings
Or see List of SMB Service Settings on
Parameter smb Description
List of SMB Service Settings
Local master
Netbios name
Log level
Max smbd processes
Smbcommand= Description
List of SMB serveradmin Commands
Listing SMB Users
Value returned by getConnectedUsers
Disconnecting SMB Users
Updating Share Point Information
Listing SMB Service Statistics
Smb-log
Viewing SMB Service Logs
Var/log/samba/log.smbd
Name-log
Page
Viewing Print Service Settings
Checking the Status of Print Service
Print Service Settings
Changing Print Service Settings
Parameter print Description
Parameter printDescription
Queue Data Array
Here is an example of a queue array parameter block
Pausing a Queue
Print Service serveradmin Commands
Listing Queues
To pause a queue
Holding a Job
Listing Jobs and Job Information
To hold a job
To release the job
Viewing Print Service Log Files
Page
Viewing NetBoot Settings
Checking NetBoot Service Status
NetBoot Service Settings
Changing NetBoot Settings
General Settings
Parameter netboot Description
Filters Record Array
Storage Record Array
Image Record Array
IsEnabledAtIndex
NetBootPortsRecordsArrayarrayindexm
Port Record Array
Ethernet
Page
Viewing Mail Service Settings
Checking the Status of Mail Service
Mail Service Settings
Changing Mail Service Settings
Parameter mail Description
Postfixlmtpsaslpasswordmaps
Postfixdisablevrfycommand
Postfixsmtpsaslpasswordmaps
Postfixsmtpsaslauthenable
Postfixmailboxcommand
Postfixdeliverlockdelay
Postfixdefaultverpdelimiters
Postfixcleanupservicename
Postfixdisablemimeoutputconversion
Postfixforkdelay
Postfixsmtpdtimeout
Postfixsmtpderrorsleeptime
Postfixtriggertimeout
Postfixdelaywarningtime
Postfixrelaytransport
Postfixaliasmaps
Postfixalternateconfigdirectories
Postfixsmtpdnoopcommands
Postfixdefaulttransport
Postfixsmtpddelayreject
Postfixipctimeout
Postfixqueueservicename
Postfixdefaultprivs
Postfixinflowdelay
Postfixsmtppixworkarounddelaytime
Postfixshowqservicename
Postfixqmqpdtimeout
Postfixignoremxlookuperror
Postfixcontentfilter
Postfixbounceservicename
Postfixqmqpderrordelay
Postfixsmtpdsenderloginmaps
Postfixlmtpdatadonetimeout
Postfixdefaultextrarecipientlimit
Postfixlmtpdataxfertimeout
Postfixsmtpdatadonetimeout
Imapmupdateserver
Imappoptimeout
Imaptimeout
Imapenablepop
Imapsrvtab Default = /etc/srvtab Imapimapauthlogin
Imapdefaultpartition
Imapenableimap
Imapallowanonymouslogin
Command
Mail serveradmin Commands
Listing Mail Service Statistics
To display the log locations
Viewing the Mail Service Logs
Generating a CSR and Creating a Keychain
Setting Up SSL for Mail Service
120
Importing an SSL Certificate Into the Keychain
Obtaining an SSL Certificate
Creating a Passphrase File
Setting Up SSL for Mail Service on a Headless Server
Viewing Web Settings
Checking Web Service Status
Serveradmin and Apache Settings
Changing Web Settings
Changing Settings Using serveradmin
An appropriate value for the setting
Viewing Service Logs
Web serveradmin Commands
Listing Hosted Sites
To list sites
Requestspersecond for
Viewing Service Statistics
Cacherequestspersecond for
Cachethroughput for
Addsite File
Example Script for Adding a Website
Addsite.in File
Ipaddress
To run the script
Port
Root
Starting and Stopping Dhcp Service
Dhcp Service
Checking the Status of Dhcp Service
Viewing Dhcp Service Settings
Dhcp Service Settings
Changing Dhcp Service Settings
Parameter dhcp Description
About Subnet IDs
Dhcp Subnet Settings Array
Subnet Parameter
Netaddress
Leasetimesecs
Netmask
Netrangeend
To add a subnet
Adding a Dhcp Subnet
WINSscopeid
WINSsecondaryserver
Viewing the Dhcp Service Log
List of Dhcp serveradmin Commands
Command Dhcpcommand=Description
Location of the DNS service log
DNS Service
Listing DNS Service Statistics
Firewall Service
Starting and Stopping Firewall Service
Sample Output
Viewing Firewall Service Settings
Checking the Status of Firewall Service
Changing Firewall Service Settings
Firewall Service Settings
IPFilter Groups With Rules Array
Defining Firewall Rules
Adding Rules by Modifying ipfw.conf
Parameter ipfilter Description
Unmodified ipfw.conf file
Example
Adding Rules Using serveradmin
Rule
IPFilter Rules Array
Firewall serveradmin Commands
NAT Service
NAT Service Settings
Changing NAT Service Settings
Parameter nat Description
Viewing the NAT Service Log
NAT serveradmin Commands
Parameter natDescription
Starting and Stopping VPN Service
VPN Service
Checking the Status of VPN Service
Viewing VPN Service Settings
Parameter vpnServers Description
List of VPN Service Settings
PPPAuthenticatorPlugins Arrayindex n Com.name.ppp.l2tp
PPPDSACLEnabled Com.name.ppp.l2tp
PPPLCPEchoEnabled Com.name.ppp.l2tp
PPPVerboseLogging Com.name.ppp.l2tp
PPPAuthenticatorPlugins Arrayindexn Com.name.ppp.pptp
PPPDSACLEnabled Com.name.ppp.pptp
PPPLCPEchoEnabled Com.name.ppp.pptp
PPPCCPEnabled Com.name.ppp.pptp
Viewing the VPN Service Log
List of VPN serveradmin Commands
VPN Service Log on this
Be restarted. See Determining Whether a Service Needs to be
Requirements
IP Failover
Failover Operation
Hardware
Enabling IP Failover
To enable IP failover
Notification Only
Configuring IP Failover
Pre and Post Scripts
Enabling PPP Dial-In
Page
Testing Open Directory Plugins
Testing Your Open Directory Configuration
General Directory Tools
Modifying an Open Directory Node
Changing Open Directory Service Settings
Registering URLs With Service Location Protocol SLP
Parameter dirserv Description
Standard Distribution Tools
Configuring Ldap
Program Used to
Idle Timeout
Delay Rebind
Idle Rebinding Options
Additional Information About Ldap
NetInfo
Password Server
Kerberosautoconfig
Kdcsetup
Kerberos and Single Sign On
Tool in usr/sbin Description
Checking Qtss Service Status
Stopping Qtss Service
Changing Qtss Settings
Viewing Qtss Settings
To list all Qtss service settings
$ sudo serveradmin settings qtss
Descriptions of Settings
Qtss Settings
Qtss parameters you might change
Parameter qtss Description
AdministratorGroup ModulesarrayidQTSSAdminModule
ModulesarrayidQTSSAdminModule
Authenticate ModulesarrayidQTSSAdminModule
Enableremoteadmin ModulesarrayidQTSSAdminModule
Enablebroadcastannounce ModulesarrayidQTSSReflectorModule
Disableoverbuffering ModulesarrayidQTSSReflectorModule
Enablebroadcastpush ModulesarrayidQTSSReflectorModule
Serverdefaultauthorizationrealm
Listing Current Connections
Qtss serveradmin Commands
Viewing Qtss Service Statistics
Forcing Qtss to Re-Read its Preferences
Error.log
To force Qtss to re-read its preferences
Library/QuickTimeStreaming/Logs
Preparing Older Home Directories for User Streaming
To set up /Sites/Streaming in older home directories
Created
Page
Index
Kdcsetup utility 160 Kerberos
Installer command 21 IP address
Kerberosautoconfig tool
173
174
Used by ldapsearch 157 scripts
175
Top
Page
Image
Contents