The command nfsadmin in Windows

Applies to Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

(Applies to Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012)

You can use nfsadmin to manage Server and Client for NFS.

Syntax

nfsadmin server [ computerName ] [-u UserName [-p Password ]] -l

nfsadmin server [ computerName ] [-u UserName [-p Password ]] -r { client |all}

stop}

nfsadmin server [ computerName ] [-u UserName [-p Password ]] config Option [.]

server nfsadmin [ computerName ] [-u UserName [-p Password ]] creategroup Name

nfsadmin server [ computerName ] [-u UserName [-p Password ]] listgroups

nfsadmin server [ computerName ] [-u UserName [-p Password ]] deletegroup Name

nfsadmin server [ computerName ] [-u UserName [-p Password ]] renamegroup OldName NewName

server nfsadmin [ computerName ] [-u UserName [-p Password ]] addmembers Name Host [.]

server nfsadmin [ computerName ] [-u UserName [-p Password ]] listmembers

nfsadmin server [ computerName ] [-u UserName [-p Password ]] deletemembers Group Host [.]

stop}

nfsadmin client [ computerName ] [-u UserName [-p Password ]] config Option [.]

Description of the command nfsadmin

The nfsadmin command line utility helps to administer Server for NFS or Client for NFS on a local or remote computer running Microsoft Services for Network File System (NFS). If you are logged in with an account without the necessary privileges, you can specify the account username and password. The command arguments you provide will determine the action taken by nfsadmin .

In addition to the service-specific arguments and command options, the nfsadmin command accepts the following:

computerName:Specify the remote computer you want to manage.You can specify a computer by using the Windows Internet Name Service (WINS) or Domain Name System (DNS) name or Internet Protocol (IP) address.

-u UserName: Specifies the name of the user whose login information will be used. It may be necessary to add the domain name to the username in domainUserName.

-p Password: Specify the password of the specified user through the -u option. If you specify the -u option but omit the -p option, you will be prompted to enter the user's password.

Server Administration for NFS

Use the nfsadmin server command to administer Server for NFS.The specific action that the nfsadmin server performs depends on the command option or the argument you specify:

-l:list all keys held by the client.

-r { client | all }:Sets the locks held by one or all clients if all are specified.

start:start the Server for NFS service.

stop:Stop the Server for NFS service.

config: Specify general settings on Server for NFS. You must provide at least one of the following options with the config command argument:

mapsvr = server: Set the server to be a User Name Mapping server for Server for NFS. You should use the sfuadmin utility instead, although this option continues to be supported for compatibility with previous versions.

none}:Specifies whether events will be checked and where events will be recorded.One of the following arguments is required:

eventlog:Specifies that the checked event will only be recorded in the Event Viewer application log.

file: Specifies that the checked event will only be recorded in the file specified by config fname .

both: Specifies that the checked event will be logged in the Event Viewer application log as well as the specified file config fname .

none:Specifies that events will not be checked.

fname = file:Set the file specified as a test file.The default value is% sfudir% lognfssvr.log

fsize == size:Set the size to be the maximum size in megabytes of the test file.The default maximum size is 7 MB.

audit = [+ | -] mount [+ | -] read [+ | -] write [+ | -] create [+ | -] delete [+ | -] locking [+ | -] all:Specify events Be recorded.To start logging an event, enter the plus sign (+) before the event name;To stop the event log, enter a minus sign (-) before the event name.If signs are ignored, the plus sign is used as an assumption.Do not use all with any other event names.

lockperiod = seconds:Specifies the number of seconds that the Server for NFS will wait to restore the lock after the connection to the Server for NFS has been lost and then reset or after the Server for NFS has been restarted.

TCP + UDP}:Specify which transport protocol supports.The default setting is TCP + UDP.

TCP + UDP}:Specify which transport protocol Network File System (NFS) supports.The default setting is TCP + UDP

TCP + UDP}:Specify which transport protocol the Network Lock Manager (NLM) supports.The default setting is TCP + UDP.

TCP + UDP}:Specify which transport protocol Network Status Manager (NSM) supports.The default setting is TCP + UDP.

no}: Specifies whether the NFS version 3 protocol is supported. The default setting is yes .

no}: Specifies whether client connections are required to be re-verified after the time specified by the renewauthinterval configuration . The default setting is no .

renewauthinterval = seconds: Specifies the number of seconds elapsed before the client is required to re-authenticate if the renewauth configuration is set to yes.The default value is 600 seconds.

dircache = size:Specifies the size in kilobytes of the directory cache.The number specified as the size must be a multiple of 4, from 4 to 128. The default directory cache size is 128 KB.

translationfile = [file]: Specifies the file containing the system information to replace the characters in the file name when moving them from the Windows-based file system to UNIX. If the file is not specified, the translation of the file name will be disabled. If the value of the translationfile is changed, you must restart the server for the change to take effect.

no}:Specifies whether files created with names beginning with a period (.) will be marked as hidden in the Windows file system and therefore hidden from NFS clients.The default setting is no.

no}:Specifies whether the directory lookup is case sensitive (requires an exact match).

You also need to disable Windows kernel case-insensitivity for Server for NFS to support case-insensitivity file names.You can disable Windows kernel case-insensitivity by deleting the following registry key to 0:

HKLMSYSTEMCurrentControlSetControlSession Managerkernel

DWOrd obcaseinsensitive

Note: This section only applies to Windows Server 2008 R2, Windows Server 2008, and Windows Server 2003. This section does not apply to Windows Server 2012 R2 or Windows Server 2012.

preserve}: Specifies whether the characters in the names of the files in the NTFS file system will be returned in lowercase, uppercase or in forms stored in the directory. The default setting remains the same. This setting cannot be changed if caseensitivelookups is set to yes .

creategroup name:Create a new client group, give it a specific name.

Listgroups:Displays the names of all client groups.

deletegroup name: Delete the client group specified by Name .

renamegroup OldName NewName: Change the name of the client group specified from OldName to NewName.

addmembers Host Name [.]: Add Host for client group specified by Name .

If you do not specify command options or command arguments, nfsadmin server will display the current configuration settings on Server for NFS.

Client Administration for NFS

Use the nfsadmin client command to manage Client for NFS. The specific action that nfsadmin client performs depends on the command argument you specify:

start:start the Client for NFS service.

stop:Stop the Client for NFS service.

config:Specify general settings for Client for NFS.You must provide at least one of the following options with the config command argument:

fileaccess = mode: Specify the default permission mode for files created on Network File System servers. The mode argument consists of three digits from 0 to 7 representing the default rights granted to users, groups and other objects (respectively). The digits converted to UNIX style are as follows: 0 = none, 1 = x, 2 = w, 3 = wx, 4 = r, 5 = rx, 6 = rw and 7 = rwx. For example: fileaccess = 750 grants rwx permissions to the owner, rx rights to the group and does not grant access to other objects.

mapsvr = server: Set the server to be a User Name Mapping for Client for NFS. Although this option continues to be supported for compatibility with previous versions, you should use the sfuadmin utility instead.

soft}: Specify the default mount type. For a difficult mount, the Client for NFS will continue to retry an RPC until it succeeds. For a soft mount, the Client for NFS will return failure results for the calling application after it has been specified to try to call again and again by retry option.

retry = number:Specifies the number of attempts to create a connection for soft mounts.This value must be between 1 and 10. Default is 1.

timeout = seconds:Specify the number of seconds to wait for the remote procedure call.This value must be 0.8, 0.9 or integer from 1 to 60. The default value is 0.8.

TCP + UDP}: Specify which transport protocol the client supports. The default setting is TCP + UDP

rsize = size:Specify the size of the read buffer, in kilobytes.This value can be 0.5, 1, 2, 4, 8, 16 or 32. The default value is 32.

wsize = size:Specify the size of the write buffer, in kilobytes.This value can be 0.5, 1, 2, 4, 8, 16 or 32. The default value is 32.

perf = default:Restore the following performance settings to default values:

  1. mtype
  2. retry
  3. timeout
  4. rsize
  5. wsize

fileaccess = mode: Specify the default permission mode for files created on Network File System servers (NFS). The mode argument consists of three digits from 0 to 7, representing the default rights granted to users, groups and other objects (respectively). The digits converted to UNIX style are as follows: 0 = none, 1 = x, 2 = w, 3 = wx, 4 = r, 5 = rx, 6 = rw and 7 = rwx. For example: fileaccess = 750 grants rwx permissions to the owner, rx rights to the group and does not grant access to other objects.

If you do not specify command options or command arguments, nfsadmin client will display the current configuration settings on the Client for NFS.

See more:

  1. The net print command in Windows
  2. Netcfg command in Windows
  3. Nbtstat command in Windows
  4. Bitsadmin create command in Windows
  5. Bcdboot command in Windows
Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile