A.4 Virtual NCP Server Object Script

The /opt/novell/ncs/bin/ncs_ncpserv.py script creates a virtual NCP Server object in NetIQ eDirectory, and associates it with none, one, or multiple NCP volumes that you specify. Having an NCP Server object makes it easier for clients to access NCP volumes on clusters. You specify the IP address of the cluster resource that you want to use to manage all of the NCP volumes and the shared LVM volumes and disks where the NCP shares reside. You must bind the NCP Server object to the IP address of that cluster resource.

Issue the command at a terminal console prompt as the root user. OES cluster services must be installed and running.

./opt/novell/ncs/bin/ncs_ncpserv.py -c ncp_server_name -i ip_address [-v <volumename | volumenames]

Replace ncp_server_name with the name you want to use for the virtual NCP server. It can be the same or different than the cluster resource you created when you cluster-enabled the Linux POSIX volume.

Replace ip_address with a static IP address for the virtual server. Replace volumename with the name of the NCP volumes that you want to assign to this virtual NCP Server object. The virtual NCP Server object is the NCS:NCP Server attribute.

If the -v option is not specified, all of the NCP volumes that currently exist on the LVM volume are bound to the IP address. If you enter multiple volume names, use colons to delimit the names and put quotation marks around the list of names. The multiple volume names can be listed by the name (MY_NNCP_VOL06) or by the distinguished name (cn=CLUS_02_MY_NNCP_VOL06,o=novell), or any combination of the two methods.

Examples

To include all of the NCP volumes on the cluster resource, enter

./ncs_ncpserv.py -c ncp_serv01 -i 10.10.10.45 

To specify a single NCP volume on the cluster resource, enter

./ncs_ncpserv.py -c ncp_serv01 -i 10.10.10.45 -v MY_NNCP_VOL05

To specify multiple NCP volumes on the cluster resource, enter

./ncs_ncpserv.py -c ncp_server02 -i 10.10.10.46 -v "MY_NNCP_VOL06:cn=CG_02_MY_NNCP_VOL07,o=novell"