End NFS Server (ENDNFSSVR)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The End Network File System Server (ENDNFSSVR) command ends one or all of the NFS server daemons. For more information about these daemon jobs, see i5/OS Network File System Support book, SC41-5714.

SERVER(*ALL) should be specified, which will end the daemons in the following order. (This order is the recommended order for ending the Network File System daemons.)

If just one daemon is to be ended, be sure the appropriate order for ending NFS daemons and the possible consequences of ending daemons in an order other than that specified above are understood. For more information about ending NFS daemons, see the i5/OS Network File System Support book, SC41-5714.

If the user attempts to end a daemon or daemons that are not running, they will not cause the command to fail, and it will continue to end other daemons that were requested to end.

To determine if an NFS daemon is running, use the Work with Active Jobs (WRKACTJOB) command and look in the subsystem QSYSWRK for existence of the following jobs:

QNFSRPCD  The RPCBind daemon
QNFSBIOD  The block I/O (BIO) daemon
QNFSGSSD  The generic security service (GSS) daemon
QNFSRGYD  The name registry (RGY) daemon
QNFSNFSD  The server (SVR) daemon
QNFSMNTD  The mount (MNT) daemon
QNFSNSMD  The network status monitor (NSM) daemon
QNFSNLMD  The network lock manager (NLM) daemon

Restrictions:

Top

Parameters

Keyword Description Choices Notes
SERVER Server daemon *ALL, *RPC, *BIO, *GSS, *RGY, *SVR, *MNT, *NSM, *NLM Required, Positional 1
ENDJOBTIMO Timeout for end of daemon 1-3600, 30, *NOMAX Optional, Positional 2
Top

Server daemon (SERVER)

Specifies the Network File System (NFS) daemon jobs to be ended.

*ALL
All NFS daemons will be ended.
*RPC
The NFS Remote Procedure Call (RPC) RPCBind daemon will be ended.
*BIO
All NFS block input/output (I/O) daemons that are running will be ended.
*GSS
The NFS generic security services daemon will be ended.
*RGY
The NFS name resolution registry daemon will be ended.
*SVR
All NFS server daemons that are running will be ended.
*MNT
The NFS mount daemon will be ended.
*NSM
The NFS network status monitor daemon will be ended.
*NLM
The NFS network lock manager daemon will be ended.

This is a required parameter.

Top

Timeout for end of daemon (ENDJOBTIMO)

Specifies the number of seconds to wait for each daemon to successfully end. If a daemon has not ended within the timeout value, the command will fail.

30
Wait 30 seconds for the daemon job to end.
*NOMAX
Wait forever for daemons to end; do not timeout.
1-3600
Specify the number of seconds to wait for daemons to end before timing out and failing the command. Timeout values less than 30 seconds are rounded up to 30 seconds.
Top

Examples

Example 1: End All Daemons

ENDNFSSVR   SERVER(*ALL)

This command ends all NFS daemon jobs that are running.

Example 2: End a Single Daemon

ENDNFSSVR   SERVER(*MNT)  ENDJOBTIMO(*NOMAX)

This command ends the NFS mount daemon, and waits forever for it to end. The mount daemon was previously running, and other daemons have been ended in the appropriate order.

Top

Error messages

*ESCAPE Messages

CPFA0B1
Requested operation not allowed. Access problem.
CPFA1B8
*IOSYSCFG authority required to use &1.
Top