Cisco Cisco Prime Network Registrar 8.1 기술 참조

다운로드
페이지 247
If you omit the general options, Network Registrar gets them from the Registry or environment variables. If Network
 Registrar cannot find values for these parameters, it prompts you for them. If you omit the cluster name on a
 system where Network Registrar servers are installed, the nrcmd program assumes access to localhost and does
 not prompt you.
The environment variables that you can set that are recognized by the nrcmd program are CNR_NAME for the name,
 CNR_PASSWORD for the password, and CNR_CLUSTER for the cluster name.
Command Organization
The nrcmd commands specify a class of objects, which you can create, delete, or list. Each of these objects in turn
 has attributes, which you can enable, disable, set, get, and unset, depending on data type. These objects may also
 have common methods, which are specific to the type of object, and that let you perform operations on groups of
 attributes.
When you use the nrcmd commands to configure Network Registrar, you manipulate classes and command
 attributes.
Classes
When you use the nrcmd commands to configure Network Registrar, you manipulate classes of objects, such as
 scopes, zones, and servers.
create
--
Creates an entry. If the entry already exists, this command returns an error.
delete
--
Removes an entry.
list
--
Displays all the objects of a given type, including all attributes.
listnames
--
Displays only the names of all objects of a given type.
show
--
Displays the values of all the attributes.
Attributes
enable
--
Enables a Boolean type of attribute.
disable--Disables a Boolean type of attribute.
set--Sets the value of an attribute.
get--Displays the value of an explicitly defined attribute.
unset--Makes an attribute have no value. You cannot unset required attributes.
Note
 
You cannot use nrcmd to get the value of implicitly defined attributes, including implicitly defined default
 values.
There are three ways to set attributes:
create command. For example, to create a High-Availability (HA) DNS server pair, you can specify cluster and
 IP addresses for the main and backup servers during creation:
nrcmd> ha-dns-pair 
ha-pair-11 create 192.168.50.1 192.168.60.1
 
main=localhost
 backup=backup
Use the set or enable command after creating the object. For example, you can set just the cluster
 references to the main and backup server for the created HA DNS pair:
nrcmd> < b> 
ha-pair-1 set main=localhostt backup=backup
Add 
attribute
=
value
 pairs at the end of the create command.
If you use both the positional value and the 
attribute
=
value
 pair for the same attribute on the create
 command line, the 
attribute
=
value
 pair is the actual value used (because it comes last).
In interactive mode, all the attributes appear. In batch mode, only those attributes having values