Defining a file_res resource

You can define a file_res resource by using the command syntax and attributes.

A file_res resource is where NIM allows for resource files to be stored on the server. When the resource is allocated to a client, a copy of the directory contents is placed on the client at a location that is specified by the dest_dir attribute.

The command syntax for defining a file_res resource follows:

  nim -o define -t file_res -a Attribute=Value ... file_resName

The following attributes are required for the file_res resource:

Table 1. Required file_res resource attributes
Item Description
-a location=Value Specifies the full path name of the directory on the NIM server. This path is used as a source directory among clients.
-a dest_dir=Value Specifies the full path name of the directory on the NIM client. This path is where the source directory is recursively copied into.
Notes:
  • If the target directory does not exist on the destination machine, the entire source directory contents are copied (including the hidden files in the top-level directory).
  • If the target directory exists on the destination machine, the source directory contents are copied (excluding the hidden files in the top-level directory).
-a server=Value Specifies the name of the machine where the directory for the file_res resource is created.

The following attributes are optional for the file_res resource:

Table 2. Optional file_res resource attributes
Item Description
-a comments=Value Describes the resource.
-a group=Value Specifies the name of a resource group to which the file_res resource must be added.
-a verbose=Value Displays information for debugging. To show maximum detail, specify a value of 5.
-a nfs_vers=Value Specifies the Network File System (NFS) protocol version that is required for NFS access.
-a nfs_sec=Value Specifies the security method that is required for NFS access.