40
Chapter 4 Global Action Commands
4.2.8
Pop
As you execute command lines, you may navigate through various CLI context levels. For
example, accessing
diskList
from the root level moves you down one level in the CLI
hierarchy. From this level, you can access
Disk
(two levels down from the root) and
Extent
(three levels down from the root).
Using the
Pop
command, you can move up in the CLI hierarchy. The number of levels you
move up depends on whether you used the
Push
or
Select
command to move down in the
hierarchy.
If you used the
Push
command, the
Pop
command moves you up one level.
If you used the
Select
command, the
Pop
command moves you to the top (root) level
in the CLI hierarchy.
Syntax
Pop
Examples
Pop
Moves you up one level in the CLI hierarchy (if you previously used a
Push
command) or
to the root level (if you previously used a
Select
command). If you are at the root
level, issuing this command displays the error message
Content Stack empty
.
Help Pop
Displays help for the
Pop
command.
4.2.9
Push
Use the
Push
command to move down one level in the CLI hierarchy. The context is added
to the push/pop stack. Issuing a
Pop
command after a
Push
command moves you up one
level at a time in the hierarchy.
Syntax
Push <context>
where
<context>
is a member of the current context that returns a context. From the
root context, for example, you can issue the command
Push diskList
because
diskList
is a property in the root context.
Examples
Push volumeList.volumes[mynewvolume]
Pushes a volume called mynewvolume.
192.168.56.125 :: push iscsi.targets[$first]
Changes the context to the first iSCSI target, which is accessible from the top-level
system context, then the iSCSI context, and finally the targets context.
Summary of Contents for xStack Storage DSN-4000 Series
Page 6: ...vi Preface...
Page 42: ...32 Chapter 3 Using the CLI This Page Left Intentionally Blank...
Page 56: ...46 Chapter 4 Global Action Commands This Page Left Intentionally Blank...
Page 86: ...76 Chapter 5 Supported CLI Commands and Properties This Page Left Intentionally Blank...
Page 97: ......