B.2 NCPCON Commands and Options

The commands in this section are not included in the general management commands for the NCP Server Console utility. You must be logged in as the root user to issue the commands.

B.2.1 Hidden Options

The following options are available for NCPCON in command line mode. The syntax is

ncpcon [option]
-@filename

Reads from the file and executes the commands.

--help

Lists the syntax for command line mode and interactive mode.

--ncpservername

Used with bind and unbind commands.

In a cluster load script, use the following syntax:

exit_on_error ncpcon bind --ncpservername=<SERVER_NAME> --ipaddress=<IP_ADDRESS>

For example,

exit_on_error ncpcon bind --ncpservername=BETA31-BETA31-SERVER --ipaddress=192.168.100.1
--ipaddress

Used with bind and unbind commands.

In a cluster load script, use the following syntax:

exit_on_error ncpcon bind --ncpservername=<SERVER_NAME> --ipaddress=<IP_ADDRESS>

For example,

exit_on_error ncpcon bind --ncpservername=BETA31-BETA31-SERVER --ipaddress=192.168.100.1
--volid

Used with the mount command.

In a cluster load script, use the following syntax:

exit_on_error ncpcon mount volname=vol_id,path=/vol_mntpt

For example,

exit_on_error ncpcon mount USERS=254,path=/media/ncpvolumes/USERS

B.2.2 Hidden Commands

The commands in this section are used only for diagnostic purposes.

diag

Use this command to display NCP Server diagnostics or ncp2nss daemon diagnostics.

Examples:

diag
diag ncp2nss
flush volume volume_name

Flushes file system dirty data from the specified volume. You can add the ncpcon flush volume volume_name command to a cluster load script.

nss resync=volume_name

Resynchronizes NCP Server and NSS information for the specified volume.

nss verify=volume_name

Verifies NCP Server and NSS information for the specified volume.