Technical References

Invoking the nrcmd Command
You can invoke the nrcmd command in batch mode and run scripts that use the commands; or
you can invoke the nrcmd command in interactive mode and enter commands at the nrcmd
command prompt. By default, the nrcmd command is located in C:\Program Files\Network
Registrar\Local\bin on Windows and in /opt/nwreg2/local/usrbin on Solaris and Linux.
Note: On Windows, if you want to run the nrcmd program from outside the installed path, you
must set the CNR_HOME environment variable.
On Windows, you can invoke the nrcmd command window from the Start menu:
Start > Programs > Network Registrar 7.0 > Network Registrar 7.0 CLI
This method prompts for your user name and password. On Solaris and Linux (as well as
Windows alternatively), invoke the command from the command prompt using this syntax:
nrcmd [general-options] [command] [options]
Table 1-1 describes the general options when invoking from the command prompt.
Table 1-1 General Options to nrcmd Command
Option Description
-C
cluster
Cluster (cluster is the name of the machine on which
the Network Registrar servers are running). If not
specified, the cluster name defaults to localhost.
-N
user
Network Registrar user name (user).
-P
password
Network Registrar user password (password).
-h
Prints help text.
-L
Accesses the local cluster CLI.
-R
Accesses the regional cluster CLI.
-b <
file.txt
Batch file (file.txt is the file of nrcmd commands that
run in batch mode, read a line at a time and with a new
line printed after the prompt).