Maintenance Commands                            setservername(1m)

NAME
     setservername - changes the name of a PC NetLink server

SYNOPSIS
     setservername [ -I instance ] [-n newname [-p password
                   -a administrator] [-d pdc_name] [-s] ]

DESCRIPTION
     The setservername command is used to change the name of a PC
     NetLink  server.  It  is  an  interactive  command  but also
     accepts command line arguments.

     If an error occurs during processing  or  if  you  interrupt
     this command, it will restore the original server name.

     If you are changing the name of a backup  domain  controller
     or  a member server, you need to supply the name of the pri-
     mary domain controller, which must be running and  connected
     to the network.

     If a computer account for the desired  server  name  already
     exists  on  the  PDC, and it matches the desired role of the
     server, the existing account will be used as-is.  Otherwise,
     you  will  be asked if you wish to create a computer account
     on the PDC.  If you choose to do so, you  will  be  prompted
     for  an  administrative account and password on the PDC.  If
     you decide not to create a computer account, or do not  have
     an  administrative account and password on the PDC, you must
     either quit or choose a different server name and try again.

     You must be logged in as root to run this command.

OPTIONS
  -I instance
     Specifies the PCNL instance name  or  number.  In  a  multi-
     instance environment instance may be specified either on the
     command line or by the environment  variable  PCNL_INSTANCE.
     If  there  is only one instance configured, it is not neces-
     sary to specify this argument.

  -n
     The new server name.

  -p
     The password for the administrative account.

  -a
     The name of the administrative account.

  -d pdc_name
     (for a backup domain controller or member server)  the  name
     of the primary domain controller in the domain.

  -s
     Prevents the server from starting automatically.

EXAMPLE
     If a server is a backup domain controller named sales_bdc in
     the  domain  sales, and you want to rename it to sales2, you
     can use the setservername command.

     You either can run the setservername command and respond  to
     individual prompts, or you can type the following command:

          setservername -n sales2 -p pass1 -a admin1 -d sales1 -s

NOTES
     This command does not delete the computer account associated
     with  the  original  server  name.  You will need to do that
     separately.