User manual

Appendix A – CLI Command Reference
ePower Power Distribution Unit User Manual, Revision 1.1 75
cd
Syntax
cd [target]
Description
Changes the current default target. By default, the current default target
is /.
To change the target, issue the “cd target” command. target must be an
element that is “adjacent” to the Current Target Element in the nested
hierarchy shown in the ePower CLI Managed Elements Hierarchy section.
For example, assuming the current default target is /, the command
cd sytem1” is allowed, because the system1 element is a child element of /
in the hierarchy. The command “cd network” is not allowed, because the
network element is not a direct child element of / in the hierarchy.
If cd is issued without an explicit target, it uses the current default target,
which means that the current default target remains unchanged. cd can
be used to move relatively within the hierarchy. Issuing the “cd ..” command
sets the Current Target Element to the parent. Moving multiple levels is
allowed by using the / character. For example, “cd ../..” moves the Current
Target Element to the parent of the parent of the Current Target Element.
This works the same way as cd in a Linux environment. If a target that does
not exist is specified, an error is generated and the Current Target Element
remains as is.
Response
The ePower CLI prompt changes to reflect the Current Target Element.
NOTE In the following examples, note the changing text within the
ePower:/
CLI prompt, as the target changes.
Example 1: Change the Current Target Element, using relative paths.
ePower:/--> cd system1/settings/interfaces
ePower:/system1/settings/interfaces-->