Cisco Cisco Prime IP Express 8.3 Technical References

Page of 289
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 appear, and
no default values appear. The display in batch mode is less user-friendly, but is more easily parsable by a
program. These examples show how output compares in interactive and batch modes, respectively:
nrcmd> zone example.com show
100 Ok
example.com. (primary):
checkpoint-interval =
checkpoint-min-interval =
defttl = 12h
dynamic = [default=true]
dynupdate-set =
expire = 7d
...
nrcmd -N admin -P changeme zone example.com show
100 Ok
example.com.: defttl=12h; expire=7d; minttl=10m; nameservers={{0 rr2.example.com.}}; ns=rr2.; origin=example.com.; person=rr1.;
refresh=3h; retry=60m;  serial=1;  update-acl="key myKey";
         
100 Ok
 
Other custom methods--These are specific operations that you can perform on an object, beyond editing its
attributes. Examples are adding a range of IP addresses to a scope, or removing hosts from a zone.
Command Usage
How you specify a series of arguments depends on the type of command you are using. The following subsections describe the
differences between using the createset, and enable commands.