CL Command Reference - ENDNFSSVR
CL Command List > ENDNFSSVR Reference
Description:
The End Network File System Server (ENDNFSSVR) command ends one or all of the NFS server daemons.
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.)
. The network lock manager (NLM) daemon
. The network status monitor (NSM) daemon
. The mount (MNT) daemon
. The server (SVR) daemon(s)
. The block input/output (I/O) (BIO) daemon(s)
. The Remote Procedure Call (RPC) RPCBind daemon
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.
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
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:
1. The user must have input/output (I/O) system configuration (*IOSYSCFG) special authority to use this command.
2. The user must have job control (*JOBCTL) special authority to end any daemon jobs that were started by someone else.
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.