Chapter 9 Working with File Services 149
The computer responds with the following output:
afp:command = "cancelDisconnect"
afp:timeStamp = "<time>"
afp:status
= <status>
Viewing AFP Log Files
To view the contents of the AFP service logs, use tail or another file listing tool.
To view the latest entries in a log:
$ tail
log-file
To see where the current AFP error and activity logs are located, use the getLogPaths
command with the serveradmin tool.
To view the log paths:
$ sudo serveradmin command afp:command = getLogPaths
The computer responds with the following output:
afp:accesslog = <access-log>
afp:errorlog = <error-log>
Value Description
<time> The time the command was executed.
<status> A command status code:
0 = command successful.
Value Description
<access-log> The location of the AFP service access log.
Default =
/Library/Logs/AppleFileService/
AppleFileServiceAccess.log
.
<error-log> The location of the AFP service error log.
Default =
/Library/Logs/AppleFileService/
AppleFileServiceError.log
.
Comments to this Manuals