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.
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:
- Mount: Mount and unmount requests
- Locking: File locking and unlocking
- Read: Requests to read files
- Write: Requests to write to a file
- Create: File creation requests
- Delete: File deletion requests
- All: All of the logging types
NOTE: If you click All events, the log file may grow rapidly.
- Click Apply.
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:
- Log on to the Windows-based server by using an administrative level account.
- Click Start, click Run, type cmd, and then click OK.
- 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
- 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
- Type the following command to get a listing of the available NFSAdmin parameters that you can use with Server for NFS:
nfsadmin server /?
For additional information about performing maintenance tasks after a UNIX-to-Windows Migration, click the article number below
to view the article in the Microsoft Knowledge Base:
HOW TO: Perform Maintenance and Ancillary Tasks After a UNIX-to-Windows Migration
Article ID: 324072 - Last Review: October 30, 2006 - Revision: 1.1
- Microsoft Windows Services for UNIX 3.0 Standard Edition
|kbhowto kbhowtomaster KB324072|