Microsoft KB Archive/324072

= HOW TO: Configure Server for NFS Logging in Windows Services for UNIX =

Article ID: 324072

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows Services for UNIX 3.0 Standard Edition

-



This article was previously published under Q324072



IN THIS TASK
SUMMARY
 * Configuring Server for NFS Logging
 * Using NFSAdmin to Configure Server for NFS Logging

REFERENCES



SUMMARY
Server for NFS supports a rich set of logging settings that you can use to configure the level and the type of logging that you want to use. You can configure logging so that events are logged to either the Windows Event Log or to a pure ASCII file, which you can view and modify for later use. You can use either a command line or the graphical user interface (GUI) to configure logging.

back to the top

Configuring Server for NFS Logging
You can configure Server for NFS to log events to the Windows Event Log, to an external file, or to both locations. The settings for the type of events that are logged are the same for either location.

To configure Server for NFS Logging:  Log on to the Server for NFS computer by using an administrative level account. Click Start, point to Programs, point to Windows Services for UNIX, and then click Services for UNIX Administration. Click the Server for NFS pane. Click to select the Log events to event log check box to turn on logging to the Windows Event Log. Click to select the Log events in this file check box, and then type a destination file name to turn on logging to an external file. Type the maximum file size for the logging file. Click any of the following settings to configure the type of events that you want to log:

<ul> Mount: Mount and unmount requests</li> Locking: File locking and unlocking</li> Read: Requests to read files</li> Write: Requests to write to a file</li> Create: File creation requests</li> Delete: File deletion requests</li> All: All of the logging types</li></ul>

NOTE: If you click All events, the log file may grow rapidly.</li> Click Apply.</li></ol>

back to the top

How to Use NFSAdmin to Configure Server for NFS Logging
You can use NFSAdmin.exe (a Windows command-line program) to configure settings for the NFS utilities that are included in Windows Services for UNIX. To use NFSAdmin to configure logging: <ol> Log on to the Windows-based server by using an administrative level account.</li> Click Start, click Run, type cmd, and then click OK.</li> From the command prompt, type the following command to turn on logging to both the event log and a file and to set the maximum size of the file:

nfsadmin server config auditlocation=both fname=c:\temp\nfsserv.log fsize=10

</li> From the command prompt, type the following command to turn on logging of mount events and to turn off logging of file reads.

nfsadmin server config audit = +mount audit= -read

</li> Type the following command to get a listing of the available NFSAdmin parameters that you can use with Server for NFS:

nfsadmin server /?

</li></ol>

back to the top

<div class="references_section">