text stringlengths 0 4.23k |
|---|
Description |
Proto |
The name of the protocol (TCP or UDP). |
Local address |
The IP address of the local computer and the port number being used. The name of the local computer that corresponds to the IP address and the name of the port is shown unless the -n parameter is specified. If the port is not yet established, the port number is shown as an asterisk (*). |
Foreign address |
The IP address and port number of the remote computer to which the socket is connected. The names that corresponds to the IP address and the port are shown unless the -n parameter is specified. If the port is not yet established, the port number is shown as an asterisk (*). |
State |
Indicates the state of a TCP connection, including:CLOSE_WAITCLOSEDESTABLISHEDFIN_WAIT_1FIN_WAIT_2LAST_ACKLISTENSYN_RECEIVEDSYN_SENDTIMED_WAIT |
Examples |
To display both the Ethernet statistics and the statistics for all protocols, type: |
netstat -e -s |
To display the statistics for only the TCP and UDP protocols, type: |
netstat -s -p tcp udp |
To display active TCP connections and the process IDs every 5 seconds, type: |
netstat -o 5 |
To display active TCP connections and the process IDs using numerical form, type: |
netstat -n -o |
nfsadmin |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
A command-line utility that administers Server for NFS or Client for NFS on the local or remote computer running Microsoft Services for Network File System (NFS). Used without parameters, nfsadmin server displays the current Server for NFS configuration settings and nfsadmin client displays the current Client for NFS configuration settings. |
Syntax |
nfsadmin server [computername] [-u Username [-p Password]] -l |
nfsadmin server [computername] [-u Username [-p Password]] -r {client | all} |
nfsadmin server [computername] [-u Username [-p Password]] {start | stop} |
nfsadmin server [computername] [-u Username [-p Password]] config option[...] |
nfsadmin server [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> |
nfsadmin server [computername] [-u Username [-p Password]] addmembers <hostname>[...] |
nfsadmin server [computername] [-u Username [-p Password]] listmembers |
nfsadmin server [computername] [-u Username [-p Password]] deletemembers <hostname><groupname>[...] |
nfsadmin client [computername] [-u Username [-p Password]] {start | stop} |
nfsadmin client [computername] [-u Username [-p Password]] config option[...] |
General Parameters |
Parameter |
Description |
computername |
Specifies the remote computer you want to administer. You can specify the computer using a Windows Internet Name Service (WINS) name or a Domain Name System (DNS) name, or by Internet Protocol (IP) address. |
-u Username |
Specifies the user name of the user whose credentials are to be used. It might be necessary to add the domain name to the user name in the form domain\username. |
-p Password |
Specifies the password of the user specified using the -u option. If you specify the -u option but omit the -p option, you are prompted for the user's password. |
Server for NFS-related parameters |
Parameter |
Description |
-l |
Lists all locks held by clients. |
-r {client|all} |
Releases the locks held by a client or, if all is specified, by all clients. |
start |
Starts the Server for NFS service. |
stop |
Stops the Server for NFS service. |
config |
Specifies general settings for Server for NFS. You must supply at least one of the following options with the config command argument:mapsvr=<server> - Sets server as the User Name Mapping server for Server for NFS. Although this option continues to be supported for compatibility with previous versions, you should use the sfuadmin utility instead.auditlocation={eventlog|file|both|none} - Specifies whether events will be audited and where the events will be recorded. One of the following arguments is required:eventlog - Specifies that audited events will be recorded only in the Event Viewer application log.file - Specifies that audited events will be recorded only in the file specified by config fname.both - Specifies that audited events will be recorded in the Event Viewer application log as well as the file specified by config fname.none - Specifies that events aren't audited.fname=<file> - Sets the file specified by file as the audit file. The default is %sfudir%\log\nfssvr.log.fsize=<size> - Sets size as the maximum size in megabytes of the audit file. The default maximum size is 7 MB.audit=[+|-]mount [+|-]read [+|-]write [+|-]create [+|-]delete [+|-]locking [+|-]all - Specifies the events to be logged. To start logging an event, type a plus sign (+) before the event name; to stop logging an event, type a minus sign (-) before the event name. If the sign is omitted, the + sign is assumed. Don't use all with any other event name.lockperiod=<seconds> - Specifies the number of seconds that Server for NFS will wait to reclaim locks after a connection to Server for NFS has been lost and then reestablished or after the Server for NFS service has been restarted.portmapprotocol={TCP|UDP|TCP+UDP} - Specifies which transport protocols Portmap supports. The default setting is TCP+UDP.mountprotocol={TCP|UDP|TCP+UDP} - Specifies which transport protocols mount supports. The default setting is TCP+UDP.nfsprotocol={TCP|UDP|TCP+UDP} - Specifies which transport protocols Network File System (NFS) supports. The default setting is TCP+UDPnlmprotocol={TCP|UDP|TCP+UDP} - Specifies which transport protocols Network Lock Manager (NLM) supports. The default setting is TCP+UDP.nsmprotocol={TCP|UDP|TCP+UDP} - Specifies which transport protocols Network Status Manager (NSM) supports. The default setting is TCP+UDP.enableV3={yes|no} - Specifies whether NFS version 3 protocols will be supported. The default setting is yes.renewauth={yes|no} - Specifies whether client connections will be required to be reauthenticated after the period specified by config renewauthinterval. The default setting is no.renewauthinterval=<seconds> - Specifies the number of seconds that elapse before a client is forced to be reauthenticated if config renewauth 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 size must be a multiple of 4 between 4 and 128. The default directory cache size is 128 KB.translationfile=<file> - Specifies a file containing mapping information for replacing characters in the names of files when moving them from Windows-based to UNIX-based file systems. If file is not specified, then file name character translation is disabled. If the value of translationfile is changed, you must restart the server for the change to take effect.dotfileshidden={yes|no} - Specifies whether files with names beginning with a period (.) are marked as hidden in the Windows file system, and consequently hidden from NFS clients. The default setting is no.casesensitivelookups={yes|no} - Specifies whether directory lookups are case sensitive (require exact matching of character case).You must also disable Windows kernel case-insensitivity to support case-sensitive file names. To support case-sensitivity, change the DWord value of the registry key, HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel, to 0.ntfscase={lower|upper|preserve} - Specifies whether the case of characters in the names of files in the NTFS file system will be returned in lowercase, uppercase, or in the form stored in the directory. The default setting is preserve. This setting can't be changed if casesensitivelookups is set to yes. |
creategroup <name> |
Creates a new client group, giving it the specified name. |
listgroups |
Displays the names of all client groups. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.