Creating directories in the QNTC file system

You can use the Create Directory (CRTDIR) command or mkdir() API to add a server directory to the /QNTC directory.

By default, a QNTC directory is automatically created for all functional servers in the IBM i NetServer domain and the local subnet. Servers outside the local subnet or IBM i NetServer domain must be added using the CRTDIR command or mkdir() API. For example:

CRTDIR '/QNTC/NTSRV1'

adds the NTSRV1 server into the QNTC file system directory structure to enable accessing of files and directories on that server.

You can also add a new server to the directory structure by using the TCP/IP address. The server name can be either an IPv4 address or an IPv6 address. For example:

CRTDIR '/QNTC/9.130.67.24'

or:

CRTDIR '/QNTC/2001:0db8:3c4d:0015:0000:0000:abcd:ef12'

adds the server into the QNTC file system directory structure.

Notes:
  • By configuring IBM i NetServer for WINS, it is possible to automatically create directories for servers beyond your subnet.
  • If you use the CRTDIR CL command or the mkdir() API to add directories to the directory structure, the directories do not remain visible after performing a system IPL or after running a Reclaim Storage (RCLSTG) command. The CRTDIR command or mkdir() API must be reissued after performing a system IPL or running a RCLSTG command on the directories.

If you prefer to add directories using the API or CL command, you can improve the performance of these commands by adding the environment variable QIBM_ZLC_NO_BROWSE, as in the following example:

ADDENVVAR ENVVAR(QIBM_ZLC_NO_BROWSE) VALUE(1) LEVEL(*SYS)

This environment variable causes the file system to bypass all network browsing when performing file operations.