System information

cycli Commands
312 AlterPath OnBoard Administrator’s 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 (set network interface eth0 IP
address) is used to specify the IP address for one of the Ethernet interfaces. 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.
For example, in the case where an IP address is added to the hosts list,
empty hostname and alias parameters are also added. Until values are
set for empty parameters, the get or show commands list the parameter
names without any values.
Also as shown in the screen example, you must add parameters in a prescribed
order. Because the 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.
Example:
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