D-Link DSN-540 CLI User's Guide for DSN-1100-10 - Page 50

Help Pop, Push volumeList.volumes[mynewvolume], 168.56.125 :: push iscsi.targets[$first]

Page 50 highlights

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 where 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. 40 Chapter 4 Global Action Commands

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97

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.