
150 MergePoint 5224/5240 Service Processor Manager Installer and Administrator Guide
The add command is used instead of set when multiple parameters of the same type can exist. For
example, add network hosts IP address makes an entry for a host with the specified IP address in
the hosts list. In that case, add is used because multiple hosts can exist.
In contrast, the set command (as in: set network interface eth0 <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 host’s 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
ERR result=5 No such file or directory
cli> get network hosts 192.168.160.11 name fruitbat
ERR result=5 No such file or directory
cli> add network hosts 192.168.160.11
OK
cli> get network hosts 192.168.160.11
name
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
Kommentare zu diesen Handbüchern