HOW TO: Configure Server for NFS Logging in Windows Services for UNIX (324072)



The information in this article applies to:

  • Microsoft Windows Services for UNIX 3.0

This article was previously published under Q324072

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:
  1. Log on to the Server for NFS computer by using an administrative level account.
  2. Click Start, point to Programs, point to Windows Services for UNIX, and then click Services for UNIX Administration.
  3. Click the Server for NFS pane.
  4. Click to select the Log events to event log check box to turn on logging to the Windows Event Log.
  5. 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.
  6. Type the maximum file size for the logging file.
  7. 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.
  8. Click Apply.
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:
  1. Log on to the Windows-based server by using an administrative level account.
  2. Click Start, click Run, type cmd, and then click OK.
  3. 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

  4. 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

  5. Type the following command to get a listing of the available NFSAdmin parameters that you can use with Server for NFS:

    nfsadmin server /?

back to the top

REFERENCES

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:

324539 HOW TO: Perform Maintenance and Ancillary Tasks After a UNIX-to-Windows Migration

back to the top











Modification Type:MajorLast Reviewed:10/26/2002
Keywords:kbhowto kbHOWTOmaster KB324072 kbAudITPro