User guide

In contrast, the set command (as in: set network interface eth0 address <IPaddress>) is used to
specify the IP address for the eth0 Ethernet interface. In that case, the set command is used
because each interface has only one IP address.
Adding certain parameters causes one or more related parameters to be added to the subtree. For
example, when an IP address is added to the hosts list, empty hostname and alias parameters are
also added. For some parameters, a set of meaningful default values are assigned. For empty
parameters, the get or show commands list the parameter names without any values.
You must add parameters in a prescribed order. For example, because an empty hostname and
alias parameters are created when you add a hosts IP address, you cannot add a host by name
before specifying the host’s IP address, and you cannot specify the host name at the same time
as its IP address. To specify a name or alias for a host you need to add the host first by adding
its IP address, then you need to use the set command to specify its name and alias.
Synopsis
add parameter(s) value(s)
Examples
cli> set network hosts 192.168.160.11 name fruitbat
’name’ doesn’t make sense in its context.
[set network hosts 192.168.160.11 name fruitbat] Failed: Invalid input
cli> get network hosts 192.168.160.11 name
Words 4 and following were ignored.
cli> add network hosts 192.168.160.11
OK
cli> get network hosts 192.168.160.11
network hosts 192.168.160.11 name
network hosts 192.168.160.11 alias
cli> set network hosts 192.168.160.11 name fruitbat alias fbat
OK
cli> get network hosts 192.168.160.11
network hosts 192.168.160.11 name: fruitbat
network hosts 192.168.160.11 alias: fbat
Parameters that can be added
The following table shows the parameters that can be added using the add command. Summary
of How to Configure the Top Level Parameters on page 136 shows additional parameters and
values that must be set for each parameter after the parameter is added. When a parameter is
shown in the Parameter Level 2 column, the Parameter Level 1 and Parameter Level 2
parameters must be entered together with the add command; for example, to add a service
Chapter 7: Using the CLI Utility 127