12.7 CloseSharedFiles

Use this Knowledge Script to close one or more shared files and remove corresponding file locks. You must run this script on the server where the file is shared.

You must specify a shared file by its file identifier. You can view the file identifier in one of the following ways:

  • At a Command Prompt, run the net file command to see a list of files, corresponding identifiers, and lock information.

  • See the NT SharedFiles Knowledge Script.

12.7.1 Prerequisite

Before running this script, ensure that the AppManager Client Resource Monitor service (netiqmc.exe) is set to log on as a domain user account in the same domain as, or a domain trusted by, the target computer.

12.7.2 Resource Objects

Windows 2003 Server or later

12.7.3 Default Schedule

The default interval for this script is Run once.

12.7.4 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

List of file identifiers

Specify the file identifier for each file you want to close. Use a comma to separate multiple identifiers. The default is 1,2,3.

Event if file was closed?

Set to y to raise an event if the file is closed successfully. The default is n.

Event if file was not closed?

Set to y to raise an event if the file is not closed. The default is y.

Event severity: File was not closed

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the file was not closed. The default isĀ 12 (yellow event indicator).

Event severity: File was closed

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the file was closed. The default is 25 (blue event indicator).