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

Properties, Understanding the CLI Hierarchy

Page 14 highlights

Pop; Pop; createVolume Engineering 30GB mirror For a complete list of the global action commands available in the CLI, see Chapter 4. 1.3 Properties Properties are items that you show using the global action command Show. For example, the command Show softwareVersion returns the current version of software running on the array. Some properties can also be set. For example, the property Name in the Volume context lets you set the name of an array using the global action command Set. Volume[Parity3] :: set name ThisIsMyParityVolume For a complete list of the properties available in the CLI, see Chapter 5. This chapter includes the global action commands used with the properties. 1.4 Understanding the CLI Hierarchy The CLI consists of a hierarchy of contexts, commands, and properties. For example, Figure 1-1 shows the relationships between contexts, commands, and the properties in the root context. Navigation within the CLI hierarchy is achieved ether by using properties that are of type Context or ContextList, or by using commands that return Contexts (such as createVolume and addInitiator). In Figure 1-1, the arrows represent command- and property-based navigation: Single arrows show a link from one starting context to one resulting context (for example, from System to diskList). Double arrows show a link from one starting context to one resulting context as a result of selecting from a ContextList (for example, from System to a specifically selected controller, from Controller to a specifically selected physical port, or from DiskList to a specifically selected Disk). Some contexts have both single and double arrows. PhysicalPort, for example, has a single LAG associated with it (indicated by a single arrow from PhysicalPort to LAG). However a LAG can have many physical ports(indicated by a double arrow from LAG to PhysicalPort). Navigating within the CLI hierarchy is achieved using the following commands: Push moves down one level in the CLI hierarchy and adds the context to the push/pop stack. Select changes to the specified context, without adding the context to the push/pop stack. Pop moves up either one level in the CLI hierarchy (if you used the Push command to navigate down the hierarchy) or to the root level (if you used the Select command to navigate down the hierarchy). 4 Chapter 1 Introduction

  • 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

4
Chapter 1
Introduction
Pop; Pop; createVolume Engineering 30GB mirror
For a complete list of the global action commands available in the CLI, see Chapter 4.
1.3
Properties
Properties are items that you show using the global action command Show. For example, the
command
Show softwareVersion
returns the current version of software running on the
array. Some properties can also be set. For example, the property
Name
in the
Volume
context lets you set the name of an array using the global action command
Set
.
Volume[Parity3] :: set name ThisIsMyParityVolume
For a complete list of the properties available in the CLI, see Chapter 5. This chapter
includes the global action commands used with the properties.
1.4
Understanding the CLI Hierarchy
The CLI consists of a hierarchy of contexts, commands, and properties. For example, Figure
1-1 shows the relationships between contexts, commands, and the properties in the root
context. Navigation within the CLI hierarchy is achieved ether by using properties that are of
type Context or ContextList, or by using commands that return Contexts (such as
createVolume
and
addInitiator
).
In Figure 1-1, the arrows
represent command- and property-based navigation:
°
Single arrows show a link from one starting context to one resulting context (for
example, from
System
to
diskList
).
°
Double arrows show a link from one starting context to one resulting context as a result
of selecting from a ContextList (for example, from
System
to a specifically selected
controller, from
Controller
to a specifically selected physical port, or from
DiskList
to a specifically selected
Disk
).
Some contexts have both single and double arrows.
PhysicalPort
, for example, has a
single LAG associated with it (indicated by a single arrow from
PhysicalPort
to
LAG
).
However a LAG can have many physical ports(indicated by a double arrow from
LAG
to
PhysicalPort
).
Navigating within the CLI hierarchy is achieved using the following commands:
°
Push
moves down one level in the CLI hierarchy and adds the context to the push/pop
stack.
°
Select
changes to the specified context, without adding the context to the push/pop
stack.
°
Pop
moves up either one level in the CLI hierarchy (if you used the
Push
command to
navigate down the hierarchy) or to the root level (if you used the
Select
command to
navigate down the hierarchy).